sinshu / rustysynth

A SoundFont MIDI synthesizer written in pure Rust
Other
139 stars 22 forks source link

Mix individual instrument .sf2 files #15

Closed Tails closed 2 months ago

Tails commented 7 months ago

Hi, thank you for this great work! I have been waiting for a proper Rust SF2+MIDI synth. It will be perfect for parture.org

Would it be possible to assemble a synth from multiple individual instrument .sf2 files? That would allow only loading the neccessary instruments for a piece instead of a potentially large .sf2 that covers the complete General MIDI.

sinshu commented 7 months ago

Thanks for the comment 😊

Regarding the support for multiple SF2 files, I have no plans to implement this functionality, as I want to keep the API simple. However, it wouldn't be difficult to modify the library to add such functionality.

For instance:

I hope this is somewhat helpful.

Tails commented 7 months ago

That's great, thank you! I'll have a stab at it when I start integrating.