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
13
votes
3 answers

Convert MIDI file to WAV using fluidsynth on OS X

I'm trying to convert a MIDI file to a WAV file, on OS X. So far, I have this: fluidsynth -F output_sound soundfont.sf2 note.mid This creates an output_sound file, however, that file is not WAV, it seems to be in sint16 format given that I get this…
houbysoft
  • 32,532
  • 24
  • 103
  • 156
6
votes
2 answers

MacPorts- port: command not found?

I am a beginning programmer playing around with making fractal music in python. I am thinking of using the mingus module to play the notes, however mingus need to have fluidsynth installed. I am trying to install fluidsynth using MacPorts. I have…
Rudi Herrig
  • 103
  • 1
  • 7
6
votes
1 answer

No preset found on channel 9 when playing midi with newly created soundfont

I have created a soundfont with Polyphone to create a new instrument "bagana". It just has 1 instrument "Bagana", with 1 present "Bagana". I tried playing a midi file (just a piano piece) with FluidSynth, it worked. When I direct it through the…
dorien
  • 5,265
  • 10
  • 57
  • 116
5
votes
0 answers

How can I start fluidsynth playback with certain cc commands specified from the very start?

If I run fluidsynth from the terminal fluidsynth soundfont.sf2 midifile.midi I am then able to write control change commands in realtime to alter the playback. For example, cc 1 7 0 sends a CC#7 message (channel volume) to channel 1 with a value…
Speldosa
  • 1,900
  • 5
  • 21
  • 36
4
votes
2 answers

ImportError("Couldn't find the FluidSynth library.")

I have installed fluidsynth version 2.0.5 and am using it in mingus. However, when i ran the code from mingus.midi import fluidsynth It return this Traceback (most recent call last): File "/Users/rudiherrig 1 2/Desktop/pythonstuff/musicExp.py",…
Rudi Herrig
  • 103
  • 1
  • 7
4
votes
4 answers

Installing pyfluidsynth on windows

I'm trying to install pyfluidsynth on windows. I used pip install pyfluidsynth in the command prompt, but when I tried to import fluidsynth in my python code I get: ModuleNotFoundError: No module named 'FluidSynth' When I tried to install…
david
  • 61
  • 1
  • 4
4
votes
2 answers

MidiSystem.getMidiDevice(...) returns unexpected class

I'm trying to write a simple program using javax.sound.midi that reads, edits, and then plays midi files through FluidSynth. Here is a snippet of my code: Synthesizer synth; // Look through the available midi devices for a software synthesizer …
kroppian
  • 127
  • 1
  • 6
4
votes
2 answers

pyFluidsynth 'module' object has no attribute 'Synth'

I have both fluidsynth sudo apt-get install fluidsynth and pyfluidsynth sudo pip install pyfluidsynth installed. However, when I run the standard import commands, I get the following error: >>> import fluidsynth >>> fs =…
Mittenchops
  • 18,633
  • 33
  • 128
  • 246
3
votes
1 answer

What is the simplest way to get from MIDI to real audio coming out my speakers (sound synthesis) in Python?

I'm starting work on an app that will need to create sound from lots of pre-loaded ".mid" files. I'm using Python and Kivy to create an app, as I have made an app already with these tools and they are the only code I know. The other app I made…
bosky
  • 157
  • 3
  • 3
  • 7
2
votes
1 answer

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

I am using the python package midi2audio to translate a midi file into a WAV. Running: filepath = 'C:/Users/Jack/Documents/GaTech/Research/Code/Data/Midi/C4/test12.mid' soundfont = 'C:/Users/Jack/Downloads/weedsgm3.sf2' fs =…
J Houseman
  • 91
  • 2
  • 10
2
votes
1 answer

Soundfonts play MIDI file without decay

I've been building a music notation application in Flask. On the backend I'm using Midiutil to generate midi files and Midi.js on the front end to play the files. I recorded and built my soundfont using Polyphone and converted from sf2 to JS with…
Mark Berry
  • 91
  • 9
2
votes
1 answer

Cleaning up after foreign C pointers in Haskell

I wrote a set of utility functions around the bindings-fluidsynth library: module FSUtilities where import Control.Monad import System.Directory import Foreign.Ptr import Foreign.ForeignPtr import Foreign.C.Types import Foreign.C.String import…
aplainzetakind
  • 490
  • 2
  • 8
2
votes
1 answer

How to send blocks of audio to be processed by synthesizer -- without discontinuities

I am using the Juce framework to build a VST/AU audio plugin. The audio plugin accepts MIDI, and renders that MIDI as audio samples — by sending the MIDI messages to be processed by FluidSynth (a soundfont synthesizer). This is almost working. MIDI…
Birchlabs
  • 7,437
  • 5
  • 35
  • 54
1
vote
0 answers

How do you use midi2audio in Python with Windows?

I need to convert a midi file into .wav or .mp3 in Python to be able to play it in a Django web app. I came across midi2audio which seemed to solve just that, but it seems like it was made for Linux and MacOS, so it's a bit of a pain with Windows…
1
vote
1 answer

ImportError for FluidSynth library

The aim of this code was to create a button using QPushButton, which would then create a sound using the Pyfluidsynth library. I've imported time and pyfluidsynth but I have also tried to import fluidsynth (The option was there however I don't know…
1
2 3 4