fluidLoad — Loads a SoundFont into a fluidEngine, optionally listing SoundFont contents.
Loads a SoundFont into an instance of a fluidEngine, optionally listing banks and presets for SoundFont.
isfnum -- number assigned to just-loaded soundfont.
soundfont -- string specifying a SoundFont filename. Note that any number of SoundFonts may be loaded (obviously, by different invocations of fluidLoad).
ienginenum -- engine number assigned from fluidEngine
ilistpresets -- optional, if specified, lists all Fluidsynth programs for the just-loaded SoundFont. A Fluidsynth program is a combination of SoundFont ID, bank number, and preset number that is assigned to a MIDI channel.
Invoke fluidLoad in the orchestra header, any number of times. The same SoundFont may be invoked to assign programs to MIDI channels any number of times; the SoundFont is only loaded the first time.
Here is an example of the fluidsynth opcodes. It uses the file fluid.orc.
sr = 44100 ksmps = 100 nchnls = 2 giengine fluidEngine isfnum fluidLoad "07AcousticGuitar.sf2", giengine, 1 fluidProgramSelect giengine, 1, isfnum, 0, 0 instr 1 mididefault 60, p3 midinoteonkey p4, p5 ikey init p4 ivel init p5 fluidNote giengine, 1, ikey, ivel endin instr 99 imvol init 70000 asigl, asigr fluidOut giengine outs asigl * imvol, asigr * imvol endin
See fluidEngine for more examples.