shorepine / amy

AMY - A high-performance fixed-point Music synthesizer librarY for microcontrollers
https://shorepine.github.io/amy/
MIT License
184 stars 11 forks source link

Custom oscillator #102

Closed erkkah closed 6 months ago

erkkah commented 7 months ago

Hi.

I wanted to experiment with my own oscillator types without having to tweak the innards of amy, so I added support for a custom oscillator type.

This PR also makes it easier to pull in amy as a submodule and supplying a project-local "amy_config.h" by defining AMY_CONFIG_H. I also disabled the warning for building amy in "float" mode, since that is a valid use case. And - I split the status/wave "OFF" constant into STATUS_OFF and WAVE_OFF.

If this is too much for a single PR, just let me know, I'm happy to split it up. Just wanted to share!

bwhitman commented 7 months ago

Very cool. We'll take a look asap!!

bwhitman commented 6 months ago

Thanks for this @erkkah ! I had to make a few changes to keep it up to date with our more recent changes but everything looks good and i'll merge it in.

erkkah commented 6 months ago

Awesome, and thanks for this great library! 🎶