-
Notifications
You must be signed in to change notification settings - Fork 260
UserManual
This document has the same layout as the manpage, but it contains links to other pages for more information: FluidFeatures and FluidSettings. It may however be not as up to date as the manpage shipped with FluidSynth.
FluidSynth - a SoundFont synthesizer
fluidsynth [options] [ SoundFonts ] [ midifiles ]
FluidSynth is a real-time MIDI synthesizer based on the SoundFont® 2 specifications. It can be used to render MIDI input or MIDI files to audio. The MIDI events are read from a MIDI device. The sound is rendered in real-time to the sound output device. See FluidFeatures for a comprehensive list of features implemented and working.
The easiest way to start the synthesizer is to give it a SoundFont on the command line: fluidsynth output.sf2
. FluidSynth will load the SoundFont and read MIDI events from the default MIDI device using the default MIDI driver. Once FluidSynth is running, it reads commands from stdin. There are commands to send MIDI events manually, to load or unload SoundFonts, and so forth. Available commands are discussed below.
FluidSynth can also be used to play a list of MIDI files. Simply run FluidSynth with the SoundFont and the list of MIDI files to play. In this case you might not want to open the MIDI device to read external events. Use the -n
option to deactivate MIDI input. You may also want to deactivate the shell causing FluidSynth to quit as soon as all MIDI files have been played. Start FluidSynth with the -i
option to do so:
fluidsynth -ni soundfont.sf2 midifile1.mid midifile2.mid
Run FluidSynth with the --help option to check for changes in the list of options.
FluidSynth accepts the following options (call FluidSynth with the --help option to get most up-to-date information):
-a, --audio-driver=[label]
The audio driver to use. "-a help" to list valid options
-C, --chorus
Turn the chorus on or off [0|1|yes|no, default = on]
-c, --audio-bufcount=[count]
Number of audio buffers
-d, --dump
Dump incoming and outgoing MIDI events to stdout
-E, --audio-file-endian
Audio file endian for fast rendering or aufile driver ("-E help" for list)
-f, --load-config
Load command configuration file (shell commands)
-F, --fast-render=[file]
Render MIDI file to raw audio data and store in [file]
-G, --audio-groups
Defines the number of LADSPA audio nodes
-g, --gain
Set the master gain [0 < gain < 10, default = 0.2]
-h, --help
Print out this help summary
-i, --no-shell
Don't read commands from the shell [default = yes]
-j, --connect-jack-outputs
Attempt to connect the jack outputs to the physical ports
-K, --midi-channels=[num]
The number of midi channels [default = 16]
-L, --audio-channels=[num]
The number of stereo audio channels [default = 1]
-l, --disable-lash
Don't connect to LASH server
-m, --midi-driver=[label]
The name of the midi driver to use [oss,alsa,alsa_seq,...]
-n, --no-midi-in
Don't create a midi driver to read MIDI input events [default = yes]
-O, --audio-file-format
Audio file format for fast rendering or aufile driver ("-O help" for list)
-o
Define a setting, -o name=value ("-o help" to dump current values). See FluidSettings for details
-p, --portname=[label]
Set MIDI port name (alsa_seq, coremidi drivers)
-R, --reverb
Turn the reverb on or off [0|1|yes|no, default = on]
-r, --sample-rate
Set the sample rate
-s, --server
Start FluidSynth as a server process
-T, --audio-file-type
Audio file type for fast rendering or aufile driver ("-T help" for list)
-v, --verbose
Print out verbose messages about midi events
-V, --version
Show version of program
-z, --audio-bufsize=[size]
Size of each audio buffer
All the settings that can be passed with the -o
flag to FluidSynth are known as FluidSettings. Refer to the wiki page for more details.
When starting FluidSynth an interactive shell opens. This section describes most common commands.
help
Prints out a summary of the main commands
help help
Prints out list of other help topics (type "help <topic>")
quit
Quit the synthesizer
load filename
Load a SoundFont
unload number
Unload a SoundFont. The number is the index of the SoundFont on the stack.
fonts
Lists the current SoundFonts on the stack
inst number
Print out the available instruments for the SoundFont.
noteon channel key velocity
Send a note-on event
noteoff channel key
Send a note-off event
cc channel ctrl value
Send a control change event
prog chan num
Send program-change message
select chan sfont bank prog
Combination of bank-select and program-change
channels
Print out the presets of all channels.
gain value
Set the master gain (0 < gain < 5)
interp num
Choose interpolation method for all channels
interpc chan num
Choose interpolation method for one channel
reverb [0|1|on|off]
Turn the reverb on or off
rev_preset num
Load preset num into the reverb unit
- num:0 roomsize:0.2 damp:0.0 width:0.5 level:0.9
- num:1 roomsize:0.4 damp:0.2 width:0.5 level:0.8
- num:2 roomsize:0.6 damp:0.4 width:0.5 level:0.7
- num:3 roomsize:0.8 damp:0.7 width:0.5 level:0.6
- num:4 roomsize:0.8 damp:1.0 width:0.5 level:0.5
rev_setroomsize num
Change reverb room size (i.e the reverb time) in the range [0 to 1.0] (default: 0.2)
rev_setdamp num
Change reverb damping in the range [0.0 to 1.0] (default: 0.0)
- When 0.0, no damping.
- Between 0.0 and 1.0, higher frequencies have less reverb time than lower frequencies.
- When 1.0, all frequencies are damped even if room size is at maximum value.
rev_setwidth num
Change reverb width in the range [0.0 to 100.0] (default: 0.5)
num value defines how much the right channel output is separated of the left channel output.
- When 0.0, there is no separation (i.e the output is mono).
- When 100.0, the stereo effect is maximum.
rev_setlevel num
Change reverb output level in the range [0.0 to 1.0] (default: 0.9)
chorus [0|1|on|off]
Turn the chorus on or off
cho_set_nr n
Use n delay lines (default 3)
cho_set_level num
Set output level of each chorus line to num
cho_set_speed num
Set mod speed of chorus to num (Hz)
cho_set_depth num
Set chorus modulation depth to num (ms)
router_default
Reloads the default MIDI routing rules (input channels are mapped 1:1 to the synth)
router_clear
Deletes all MIDI routing rules.
router_begin [note|cc|prog|pbend|cpress|kpress]
Starts a new routing rule for events of the given type.
router_chan min max mul add
Limits the rule for events on min <= chan <= max. If the channel falls into the window, it is multiplied by 'mul', then 'add' is added.
router_par1 min max mul add
Limits parameter 1 (for example note number in a note events). Similar to router_chan.
router_par2 min max mul add
Limits parameter 2 (for example velocity in a note event). Similar to router_chan.
router_end
Finishes the current rule and adds it to the router.
router_clear
router_begin note
router_chan 0 7 0 15
router_end
Will accept only note events from the lower 8 MIDI channels. Regardless of the channel, the synthesizer plays the note on ch 15 (synthchannel=midichannel*0+15).
router_begin cc
router_chan 0 7 0 15
router_par1 1 1 0 64
router_end
Configures the modulation wheel to act as sustain pedal (transforms CC 1 to CC 64 on the lower 8 MIDI channels, routes to ch 15).
LADSPA must be enabled for these commands to work (-o synth.ladspa.active=1). Please also see the LADSPA documentation for more details on how to use these commands.
ladspa_effect
Create a new effect from a LADSPA plugin
ladspa_link
Connect an effect port to a host port or buffer
ladspa_buffer
Create a LADSPA buffer
ladspa_set
Set the value of an effect control port
ladspa_check
Check LADSPA configuration
ladspa_start
Start LADSPA effects
ladspa_stop
Stop LADSPA effect unit
ladspa_reset
Stop and reset LADSPA effects
Peter Hanappe
Markus Nentwig
Antoine Schmitt
Joshua "Element" Green
Stephane Letz
Please check the AUTHORS and THANKS files for all credits
SoundFont is a registered trademark of E-mu Systems, Inc.