Skip to content

Instantly share code, notes, and snippets.

@monkut
Created January 4, 2021 05:09
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 monkut/eb2017170b51b991be6617006aa9f7e3 to your computer and use it in GitHub Desktop.
Save monkut/eb2017170b51b991be6617006aa9f7e3 to your computer and use it in GitHub Desktop.
an fluidsynth autostart script for raspberrypi
#! /bin/sh
# rasbian
# add the following line to /etc/rc.local above the "exit 0" line to start on boot
# /home/pi/autostartsynth.sh &
killall fluidsynth
# set sound
export DESIRED_SOUNDFONT=/usr/share/sounds/sf2/FluidR3_GM.sf2
# start fluidsynth with desired sound
fluidsynth -si -p "fluid" --audio-driver=alsa --gain 5 ${DESIRED_SOUNDFONT} &
sleep 10
# auto-connect midi
python /home/pi/scripts/connectmidicontroller.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment