pyFluidSynth
Python bindings for FluidSynth to render MIDI notes through SoundFont instruments.
| Language | Python |
|---|---|
| Category | MIDI tools |
| License | LGPL-2.1-or-later |
| Platforms | macOS Windows Linux Android |
| Install | pip install pyfluidsynth |
| First released | 2008 |
| Maintained | Yes |
| Links | Website · Source |
Strengths
- Turns MIDI events into audio via SoundFonts
- Simple noteon/noteoff API
- Maintained (v1.4.0, 2025)
Limitations
- Requires the native FluidSynth library installed
- Thin wrapper; limited high-level abstractions
Best for
Programmatically playing MIDI/notes through SoundFont software synthesis.
Minimal example
import fluidsynth
fs = fluidsynth.Synth()
fs.start()
sfid = fs.sfload('example.sf2')
fs.program_select(0, sfid, 0, 0)
fs.noteon(0, 60, 100)