Add audiolib fmsynthesizer
Summary
Add FM synthesizer library as one of audio utility libraries and an example using it.
Impact
Just add a new additonal library and an example.
Testing
Test if keyboard and mmlplayer examples works well on sprsense board.
Hi @takayoshik, does it work on other boards that have audio support like stm32f4discovery and raspberrypi pico? Or is it Spresense board only?
Hi @acassis , I belive it works on other boards supporting audio, because no spresense specific code in it. But I didn't test it on them because I don't have. At least I did unit test on linux (those code is in this PR in audioutils/fmsynth/test) and it works well.
fmsynth is just making audio samples. So even if the board has no audio function, it works. nxaudio is an utility library for nuttx audio driver. So every boards supporting audio can works.
But, I dare say, it is depending on cpu performance. fmsynth is calculating every single sample. (It is the reason that I didn't use sinf() function of regular math library.)
@pkarashchenko Thank you for your review. I modified. Please check it again.
Hi @pkarashchenko I hadn't mension to you. I updated. Please check it again.
Hi @pkarashchenko Regarding floh_walzer_right and floh_walzer_left is used in mmlplayer_main.c around on line 407.
Few minor comments, but nothing that blocks from merging and can be fixed in follow-up PR
Thank you. I will remain them. And will be fix next time.
Few minor comments, but nothing that blocks from merging and can be fixed in follow-up PR
Let me merge this PR.