Linux command
fluidsynth 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Play a MIDI file with a SoundFont
fluidsynth [/usr/share/soundfonts/soundfont.sf2] [path/to/file.mid]
Specify the audio driver
fluidsynth -a [pipewire|pulseaudio|alsa|jack] [soundfont.sf2] [file.mid]
Render a MIDI file to a WAV audio file (no real-time playback)
fluidsynth -T wav -F [output.wav] [soundfont.sf2] [file.mid]
Run as a MIDI server accepting external MIDI input
fluidsynth -s [soundfont.sf2]
Batch process multiple MIDI files without interactive shell
fluidsynth -ni [soundfont.sf2] [file1.mid] [file2.mid]
Set sample rate and master gain
fluidsynth -r [44100] -g [1.0] [soundfont.sf2] [file.mid]
Disable reverb and chorus effects
fluidsynth -R 0 -C 0 [soundfont.sf2] [file.mid]
说明
FluidSynth is a real-time software MIDI synthesizer implementing the SoundFont 2 specifications. It synthesizes MIDI input or files into audio output using SoundFont instrument definitions. The synthesizer can operate in multiple modes: playing MIDI files directly, running as a server for external MIDI input (keyboards, sequencers), or fast-rendering to audio files. An interactive shell allows real-time control of synthesis parameters. FluidSynth supports various audio backends (PulseAudio, PipeWire, ALSA, JACK) and MIDI backends (ALSA sequencer, JACK MIDI), making it suitable for both standalone use and integration into larger audio setups.
参数
- -a, --audio-driver _driver_
- Audio output driver (pulseaudio, pipewire, alsa, jack, oss, etc.).
- -m, --midi-driver _driver_
- MIDI input driver (alsa_seq, alsa_raw, jack, oss, etc.).
- -F, --fast-render _file_
- Render to audio file as fast as possible (no real-time playback).
- -T, --audio-file-type _type_
- File type for fast-render output (wav, raw, aiff, au, flac, oga).
- -n, --no-midi-in
- Disable MIDI input.
- -i, --no-shell
- Disable interactive shell.
- -s, --server
- Run as background server process.
- -r, --sample-rate _rate_
- Set audio sample rate (default: 44100).
- -g, --gain _value_
- Set master gain (0.0-10.0, default: 0.2).
- -L, --audio-channels _num_
- Number of audio channel pairs.
- -R, --reverb _0|1_
- Enable or disable reverb effect.
- -C, --chorus _0|1_
- Enable or disable chorus effect.
- -o _setting=value_
- Set arbitrary synth setting (e.g., `synth.polyphony`).
- -c, --audio-bufcount _count_
- Number of audio buffers.
- -z, --audio-bufsize _size_
- Size of each audio buffer in frames.
- -V, --version
- Display version information.
- -h, --help
- Display help message.
FAQ
What is the fluidsynth command used for?
FluidSynth is a real-time software MIDI synthesizer implementing the SoundFont 2 specifications. It synthesizes MIDI input or files into audio output using SoundFont instrument definitions. The synthesizer can operate in multiple modes: playing MIDI files directly, running as a server for external MIDI input (keyboards, sequencers), or fast-rendering to audio files. An interactive shell allows real-time control of synthesis parameters. FluidSynth supports various audio backends (PulseAudio, PipeWire, ALSA, JACK) and MIDI backends (ALSA sequencer, JACK MIDI), making it suitable for both standalone use and integration into larger audio setups.
How do I run a basic fluidsynth example?
Run `fluidsynth [/usr/share/soundfonts/soundfont.sf2] [path/to/file.mid]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a, --audio-driver _driver_ do in fluidsynth?
Audio output driver (pulseaudio, pipewire, alsa, jack, oss, etc.).