How much RAM does AMY really need?
bwhitman opened this issue · comments
I was able to boot AMY on a Teensy 3.2, which has 64KB RAM. We say it needs "around 100KB" on the webpage, but I bet if you decrease AMY_OSCS
to like 8 or 16 you could make it much smaller. Let's find out
back of the envelope is at 120 oscs and reverb and chorus on, on an arm64 machine, we alloc a total of 117KB.
the sizeof(synthinfo) is 437 bytes.
setting AMY_OSCS to 240, we alloc 177KB instead of 117KB. So 60KB for 120 oscillators, so 0.5 KB / oscillator.