fluidLoadSignal Generators:Sample PlaybackfluidLoadfluidLoad
Loads a SoundFont into a fluidEngine, optionally listing SoundFont contents.
Syntaxisfnum fluidLoad soundfont, ienginenum[, ilistpresets]Description
Plugin opcode in fluidOpcodes. This opcode is part of the plugin repository and has to be installed separately.
The plugin repository can be found here: https://github.com/csound/pluginsLoads a SoundFont into an instance of a fluidEngine, optionally
listing banks and presets for SoundFont.
Initializationisfnum -- 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
fluidEngineilistpresets -- 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.
PerformanceInvoke 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.Examples
Here is an example of the fluidLoad opcode. It uses the file fluidLoad.csd and 07AcousticGuitar.sf2.
Example of the fluidLoad opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
The output should include a line like this:
SoundFont: 1 Bank: 0 Preset: 0 Seagul Acoustic Git
See alsoSoundfonts More information on soundfonts is in the Floss Manuals: https://flossmanual.csound.com/midi/reading-midi-files For other information on soundfonts look in the Wikipedia: http://en.wikipedia.org/wiki/SoundfontCreditsMichael Gogins (gogins at pipeline dot
com), Steven Yi. Thanks to Peter Hanappe for Fluidsynth.
New in Csound5.00