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

Julius Smith jos at ccrma.Stanford.EDU
Sun May 10 22:16:00 PDT 2009

I had some good luck using timidity for this purpose some years ago, 
but I wasn't using soundfonts, so I don't know how that goes:

man timidity
man timidity.cfg

-- jos

At 01:29 PM 5/10/2009, Thomas Baruchel wrote:
>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: 
>but didn't find what I am looking for. How would you do that?
>Best regards,
>Thomas Baruchel
>PlanetCCRMA mailing list
>PlanetCCRMA at ccrma.stanford.edu

Julius O. Smith III <jos at ccrma.stanford.edu>
Prof. of Music and Assoc. Prof. (by courtesy) of Electrical Engineering
CCRMA, Stanford University

More information about the PlanetCCRMA mailing list