schellingb / TinySoundFont

SoundFont2 synthesizer library in a single C/C++ file
MIT License
623 stars 72 forks source link

Effects per preset #48

Open WindowsNT opened 4 years ago

WindowsNT commented 4 years ago

Hello again. So I want to apply e. g. a compressor to a single instrument (preset) in a sound font. I can't do it at the tsf_render_float level because that would have a mix of many instruments at that point.

It would be nice if tsf would have a callback that allows the source sound to be modified before mixing it to the float buffer.

Until then, which function can be hooked?

Best,