Hey everyone,
I am working on a Modal Synthesis VST and am hoping I can reduce its cpu usage. Currently the synth is very basic, and allows the user to tune 20 resonz filters to create metal timbres that can be transposed through keyboard input. Right now to generate the filter bank I am passing few arrays into a recursive opcode which sets the filter parameters and sends a signal to all of the filters.
modalSynth.csd (6.4 KB)
This ended up being more CPU intensive than I anticipated and I am wondering if anyone has any advise on the best way to modify my code to improve the efficiency. Also, in general is is better to pass a function table reference rather than an array?