schellingb / TinySoundFont

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

[Question] Loading multiple SF2 files? #79

Open g40 opened 9 months ago

g40 commented 9 months ago

First off: Fantastic library. Thank you.

Is it possible to load a number of individual SF2 files and assign them to different MIDI channels?

Imagine a simple case (for example) where a piano is assigned to channel 1 and a drum soundfont is assigned to channel 10.

Or is the preferred way to do this to run multiple instances of TSF, one synth per channel?