Checkout https://github.com/BleepLabs/Nebulophone
It's not to hard to build and not a bad place to start. The code could be better, some variables are poorly named and has some minor bugs (off-by-one on the wave table lookup?). I did start to clean it up but never got to submitting a pull request before moving onto other projects.