accompy.synthesis.fluidsynth#
FluidSynth synthesis backend.
Uses FluidSynth with SoundFonts to render MIDI to high-quality audio. FluidSynth is the default and most widely-supported backend for accompy.
Functions
|
Convert audio between formats using ffmpeg or pydub. |
Find the default SoundFont file in standard locations. |
Classes
|
FluidSynth-based synthesis. |
- class accompy.synthesis.fluidsynth.FluidSynthBackend(soundfont_path=None)[source]#
Bases:
SynthesizerBackendFluidSynth-based synthesis.
Uses SoundFont files (.sf2) to render MIDI with realistic instrument sounds. Supports both Python wrapper (midi2audio) and command-line FluidSynth.
Example
>>> backend = FluidSynthBackend() >>> backend.render_to_file(midi_path, output_path)
- accompy.synthesis.fluidsynth.convert_audio(input_path, output_path)[source]#
Convert audio between formats using ffmpeg or pydub.
- Parameters:
- Raises:
RuntimeError – If neither ffmpeg nor pydub is available
- Return type: