The proper solution is to use the soundfont loader API, as pointed out by jjc:
http://www.fluidsynth.org/api/sfont_8h.html That way you are in full control of what preset, instruments... are contained in your "virtual soundfont" and how they trigger a noteon. For a usage example, see SWAMI: https://sourceforge.net/projects/swami/ It still uses fluidsynth 1.x API though. Find a bunch of patches attached that port SWAMI to fluidsynth 2.0 API (untested, probably buggy and for demonstration only). Also note that fluidsynth provides functions for allocating and manipulating single voices, mentioned by jjc in 1.2). Tom
swami.tar.gz
Description: application/compressed-tar
_______________________________________________ fluid-dev mailing list fluid-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/fluid-dev