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
1
vote
1 answer

Pygame keyboard event too slow

I've been trying to create a MIDI keyboard using my raspberry pi 4 and I'm trying to link my keyboard events with MIDI messages. The problem is the code runs very slowly on the raspberry pi and there is an input lag when the sound can be heard. It…
1
vote
0 answers

Python - OSError: [WinError 193] %1 is not a valid Win32 application when trying to use fluidsynth from mingus.midi

I am Working on Windows 10 with 64 Bit. I want to use the mingus package for python in my jupyter notebook. But i have problems running the fluidsynth library. I followed the instructions on this website to install…
Jakob
  • 11
  • 1
1
vote
0 answers

CMake : the c compiler is not able to compile a simple test program. it fails with the following output

I'm trying to build fluidsynth-2.1.1 in my windows 64 bit system using CMake and MinGw but the below error is encountered: The C compiler identification is unknown Check for working C compiler: C:/Program Files…
Keerthana D
  • 11
  • 1
  • 2
1
vote
0 answers

Fluidsynth - How to modulate/manipulate audio from separate midi channels

I am using the fluid_synth_process () function in my custom fx function to modulate audio according to the example in. But this seems to modulate audio from all midi channels globally. How do I modulate audio output from every midi channel…
1
vote
0 answers

Fluid-synth always ensure that the bank-number is present

Problem Summarization: I am currently analyzing instrument/note pair using pretty_midi and fluidsynth in python. Sometimes when I call fluidsynth on my instrument object, I get an error like: fluidsynth: error: There is no preset with bank number x…
1
vote
1 answer

fluidsynth soundfont selection not persisting

Fluidsynth sound font is reverting back to last loaded full font when midifile is played. In my case timidity-freepats.sf2 (sfont 2). fluidsynth version 1.1.10 Here are my steps. Contents of config file ./nylon-guitar.fs: load…
shoebox
  • 13
  • 1
  • 6
1
vote
0 answers

python mingus play xylophone notes

Am looking to emmulate xylophone notes in python , so I came across mingus library I have successfully emulated piano notes, NOTES = [62, 63, 64, 65, 66, 67, 68] and this is how I played…
U.Swap
  • 1,921
  • 4
  • 23
  • 41
1
vote
1 answer

pygame-drum example in mingus gives fluidsynth soundfont.sf2 load error

I have downloaded mingus and want to run the pygame-drum example. I have installed the various dependencies it requires such as pygame, fluidsynth etc. I get the following when I run: python pygame-drum.py fluidsynth: error: Unable to open file…
yankeemike
  • 451
  • 1
  • 3
  • 8
1
vote
1 answer

How to set more than one instrument by Python plus Mingus?

In the following example, A and B have the setados instruments, but both A and B using only the last object to be set, it is as if rewrite. from mingus.midi import fluidsynth as a from mingus.midi import fluidsynth as b from mingus.containers import…
user3033607
  • 15
  • 1
  • 4
1
vote
0 answers

Running pyfluidsynth + pyaudio demo, many problems with alsa and jack

I'm following the demo here. I'm very new to creating audio via python, so I'm not sure how to debug which errors I should consider, what naive things I might be doing wrong. Here are my python errors: >>> import time >>> import numpy >>> import…
Mittenchops
  • 18,633
  • 33
  • 128
  • 246
0
votes
0 answers

How to fix fluidsynth: error: Unknown integer parameter 'synth.sample-rate'

I am getting the (non-fatal) error on pm.fluidsynth(fs=16000) where pm is a pretty_midi.PrettyMIDI. I found https://github.com/nwhitehead/pyfluidsynth/issues/37 and applied the changes there to my fluidsynth.py file, but this didn't fix it. I am…
Natan
  • 728
  • 1
  • 7
  • 23
0
votes
1 answer

How to fix module 'fluidsynth' has no attribute 'Synth'

What I have tried I've installed pip install pyfluidsynth (installed 1.23.5) and pip install fluidsynth (0.2) I followed the solution here, but it didn't work for me. I also think that this wouldn't have been a real solution since it links an older…
Natan
  • 728
  • 1
  • 7
  • 23
0
votes
0 answers

Is there a way to synthesize the note with constant volume in Python with Mingus?

I'm making a little program to help me practice pitch matching. The idea is to present a note for 4 seconds and count the time until I sing it in pitch. I'm producing the note like this: from mingus.containers import Note, Bar from…
Rafael Beirigo
  • 1,552
  • 1
  • 13
  • 11
0
votes
0 answers

Convert midi to mp3 on Python : Permission Error

I have an error while using midi2audio and fluisynth library to convert my midi file into audio on Python. The first error was : FileNotFoundError: [Errno 2] No such file or directory: 'fluidsynth' So I went to the subprocess file and i putted the…
0
votes
1 answer

Why does autostart script on Linux not work

I got an auto start bash script, to start fluidsyth and aconnect command automatically after rebooting my linux system (RPI-3): #!/bin/bash (STOP=$((SECONDS+5)) until [[ $SECONDS -ge $STOP || $(ps -C fluidsynth -o stat=) =~ S ]]; do:; done…
Roho
  • 1