fluidEngineSignal Generators:Sample PlaybackfluidEnginefluidEngine
Instantiates a fluidsynth engine.
Syntaxienginenum fluidEngine [iChorusEnabled] [, iRevervEnabled] [, iNumChannels] [, iPolyphony] 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/pluginsInstantiates a fluidsynth engine, and returns ienginenum to identify the
engine. ienginenum is passed to other other opcodes for loading
and playing SoundFonts and gathering the generated sound.
Initializationienginenum -- engine number assigned from fluidEngine.iChorusEnabled -- optionally set to 0 to disable any chorus effect in the loaded SoundFonts.iReverbEnabled -- optionally set to 0 to disable any reverb effect in the loaded SoundFonts.iNumChannels -- number of channels to use; range is 16-256 and Csound default is 256 (Fluidsynth's default is 16).iPolyphony -- number of voices to be played in parallel; range is 16-4096 and Csound default is 4096 (Fluidsynth's default is 256).
Note: this is not the number of notes played at the same time as a single note may use create multiple voices depending on instrument zones
and velocity/key of played note.
Examples
Here is example of the fluidsynth opcodes using 2 engines. It uses the file fluidEngine.csd and midichn_advanced.mid.
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.Optional iNumChannels and
iPolyphony parameters added in 5.07Order of arguments corrected in manual August 2019.