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

Replace TARGET_* with ControlCoeffs and ENVELOPE_*. #120

Closed dpwe closed 2 months ago

dpwe commented 2 months ago

This removes the TARGET_* defines in amy.h, and the Amy wire protocol commands that use the TARGET bit sets (bp?_target, mod_target). We don't need these because the functions that are affected by the EGs and the mod input are now set by coefficient values in the ControlCoefficient vectors for amp, freq, filter_freq, duty, and pan.

There were a few places (in fm.py and examples.c) where we were still using the TARGET pattern; these have been converted.

I also undid fixing midi note not clearing logfreq_coefs for PCM as has long been my secret goal.

bwhitman commented 2 months ago

Thank you dan!!!!!!!