Questions tagged [fluidsynth]

FluidSynth is a software MIDI synthesizer based on the SoundFont 2 specifications

FluidSynth is a is a cross-platform, real-time and open source software MIDI synthesizer based on the SoundFont 2 specifications. Official website: http://www.fluidsynth.org

It is licensed under the GNU Lesser General Public License v2.1; the main usage documentation is in the project's wiki and the API documentation for developers can be found at http://www.fluidsynth.org/api/

50 questions
0
votes
0 answers

Library to export a subset of sound fonts from sf2 to a new sf2 file

I am building a Python library where in one component I want play certain instrument sounds with FluidSynth. My goal is to bundle an sf2 file with my library to make it self contained. I am currently using the sf2 sound font file from the Debian…
Peanut
  • 803
  • 1
  • 11
  • 24
0
votes
3 answers

FluidSynth() output volume is too low

in my python script i am using fluidSynth to convert .mid files to .wav files fs = FluidSynth() fs.midi_to_audio('myfile.mid', 'myfile.wav') fluidSynth successfully converts myfile.mid to myfile.wav and saves the output, everything goes well. the…
mohamed mostapha
  • 161
  • 4
  • 16
0
votes
1 answer

Can you export a .midi file with a sf2 sound font file in python using fluid synth?

Using fluidsynth, can you open a midi file with a soundfont (sf2) and export the file into a .wav or a mp3 or some sort of flattened audio file? I know you can use the -T flag which seems to export into a specified type of file but when I run…
0
votes
2 answers

How to change the bit rate of audio while converting from midi file to mp3 using ffmpeg/fluidsynth

I am trying to convert midi file to mp3 using fluidsynth and ffmpeg on Windows 10 OS. fluidsynth -a alsa -T raw -F - "FluidR3Mono_GM.sf3" simple.mid | ffmpeg -ab 192k -f s32le -i simple.mp3 The audio bit rate specification : -ab 192k or -b:a…
Vinod
  • 4,138
  • 11
  • 49
  • 65
0
votes
0 answers

ctypes.util find_library() couldn't find the .dylib

I want to use a python package called mingus, but it couldn't find the FluidSynth library. However, I have already installed fluidsynth using homebrew (I'm using macOS Catalina), and it sits in the directory…
0
votes
2 answers

PyGame change preset soundfont

How do I change the preset soundfonts for pygame or fluidsynth? Im using Python 3.7.3, pygame 2.0.1, fluidsynth 1.1.11 to play Midi files. When I call pygame.mixer.music.load(), I receive a few fluidsynth errors: fluidsynth: error:…
Aaron Elliot
  • 155
  • 9
0
votes
1 answer

How to export a single midi channel to wav with fluidsynth?

I'm very new to the music tech so bear with me. There 16 channels in a midi file. I'm trying to convert only 1 channel from a midi file to wav. Here is how it works now: extern "C" JNIEXPORT void JNICALL…
ryzhak
  • 395
  • 5
  • 13
0
votes
2 answers

Does anyone know how to install fluidsynth or pyfluidsynth on windows 10? AttributeError: module 'fluidsynth' has no attribute 'Synth'

I've tried to install fluidsynth and pyfluidsynth on windows 10 so many times in order to let magenta.music function play_sequence(note_seq,synth=mm.fluidsynth) play a note sequence and show it on my jupyter notebook. I tried to clone the github…
0
votes
1 answer

WinError 2: The system cannot find the file specified with FluidSynth in Python?

Trying to make a part of a program where a MIDI file is converted to a different file type. Here's an example of code that doesn't work: from midi2audio import FluidSynth midfile = "F:\\ai nea\\Actual Project\\"+input() output = "F:\\ai nea\\Actual…
Will
  • 25
  • 6
0
votes
1 answer

How to generate sound from a soundfont in C# with fluidsynth

I have a list of variables [bank number, patch number, note number, length and velocity] for every note extracted from a MIDI beforehand and I want to use a SoundFont to generate the correct sample from each note based on those variables, so a…
0
votes
0 answers

Command line reverb parameters for FluidSynth

The command below renders an audio file using FluidSynth: fluidsynth -a jack -o synth.gain=.8 \ -C0 -R1 -T wav -F test.wav mypiano.sf2 test.midi The -R1 parameter activates the reverb. So far so good. I wonder how I can set the reverb level,…
iep
  • 601
  • 1
  • 8
  • 23
0
votes
0 answers

Fluidsynth not working the first time in Raspbian Lite 4.18

I'm trying to set up a little soundfont player for my usb MIDI keyboard with my Raspberry Pi 3B+ (Raspbian Lite 4.18). I'm using Fluidsynth for that. At startup this script is ran via cronjob: #!/bin/bash echo "Starting" /usr/bin/fluidsynth -is -a…
0
votes
1 answer

midi2audio/FluidSynth: [WinError 2] The system cannot find the file

I get a FileNotFoundError error while trying to call midi2audio. I am working with Python 3.6 - Anaconda - Windows 10. My .py file is in the same folder, together with the .sf2 and the .mid files. My code is: from midiutil.MidiFile import…
Stammeo
  • 17
  • 5
0
votes
1 answer

FluidSynth no sound (pyFluidSynth) on MacOS except in shell

I'm using pyfluidSynth on MacOS. I have FluidSynth working with sound using the shell, but in my python program there is no sound (and no error). Any special configuration needed in FluidSynth configuration or in my MacOS? Thanks!
david
  • 61
  • 1
  • 4
0
votes
1 answer

Stop the reading of notes created with fluidsynth with a button in tkinter

I'm on python2-7 I want to get a button in tkinter which stop the reading of the notes created with fluidsynth. I found that the common solution is to use time.after like here: How do you create a Tkinter GUI stop button to break an infinite…