To play with fluidsynth without GUI (works on Linux Mint. Maybe you need to adjust certain things on other distro):
Turn on the midi keyboard.
Copy script below, adjust it to your situation*, save it somewhere in your home folder. Call it fluid.sh. Right-click, tick allow running as executable. Right-click containing folder: open in terminal. Run
Now you should be able to play. Now, in terminal, with command aseqdump -p mn:k, with mn:k the actual port of your midi keyboard (again find out with aconnect -o), like 24:0 or something, you can see all midi commands sent by your keyboard.
*Do change path-to-your-soundfont.sf2 to your actual path, and change keyboard-identifier to a string which identifies with your midi keyboard (you can find out in a terminal with the command "aconnect -o", maybe something like novation or impulse?).
SCRIPT:
Code: Select all
#!/bin/bash
fluidsynth --server --no-shell --audio-driver=pulseaudio -o audio.period-size=512 -r 48000 -g 1.0 path-to-your-soundfont.sf2 &>/tmp/fluidsynth.out &
sleep 2
keyboard=$(aconnect -i | grep -i "keyboard-identifier" | head -1 | cut -d ' ' -f 2)0
fluidsynth=$(aconnect -o | grep -i "fluid" | head -1 | cut -d ' ' -f 2)0
aconnect $keyboard $fluidsynth
Edit: removed the killswitch which isn't necessary for you.