Skip to content

Instantly share code, notes, and snippets.

@vinc
Created June 29, 2014 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinc/2e69d194cad80240149a to your computer and use it in GitHub Desktop.
Save vinc/2e69d194cad80240149a to your computer and use it in GitHub Desktop.
MIDI USB keyboard to USB DAC via jack and fluidsynth
# cat /proc/asound/cards
# aconnect -i
# aconnect -o
rate="96000"
soundfont="piano.sf2"
killall fluidsynth
jack_control stop
sleep 5
jack_control start
jack_control eps realtime true
jack_control dps device hw:Audio
jack_control dps rate $rate
jack_control dps nperiods 2
jack_control dps period 128
sleep 5
fluidsynth -ijs -a jack -g 1 -r $rate $soundfont &
sleep 5
aconnect "USB Keystation 88es" "FLUID Synth"
sleep 5
sudo schedtool -R -p 20 $(pidof jackdbus)
sudo schedtool -R -p 20 $(pidof fluidsynth)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment