[PlanetCCRMA] [Fluidsynth] How to select some arbitrary instrument in a soundfont?

Thomas Baruchel baruchel at zenbe.com
Sun May 10 12:29:53 PDT 2009


Hi,

Assuming I have a MIDI file that I want to convert to WAV with a soundfont FROM THE COMMAND LINE (for batch processing). Say for instance a MIDI file with one channel (channel 0); and a soundfont containing only one instrument at location 45. If I read the manual page, I see a "router" section, which can probably do that, BUT it looks like I can use these functions only when using fluidsynth interactively.
I don't want to use fluidsynth interactively; I have to use it for converting a file to another file in a batch process.
The single way I see (not tried but should probably work) is to use the -K switch in order to use 64 MIDI channels, and pipe the MIDI file to fluidsynth from some (perl or python or whatever) utility for remapping my channel 0 to channel 45. But I think that fluidsynth may be able to do that.

Since some settings may be reached with the -o switch, I read carefully the following page: http://fluidsynth.resonance.org/trac/wiki/FluidSettings
but didn't find what I am looking for. How would you do that?

Best regards,

-- 
Thomas Baruchel



More information about the PlanetCCRMA mailing list