Last active
February 15, 2022 14:23
-
-
Save henriquegogo/5427798c6fe8e19d019b249b0ec302a5 to your computer and use it in GitHub Desktop.
Autoload fluidsynth. Copy to .bashrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Add these lines in .bashrc and set Raspberry Pi to auto login | |
if [ ! -f /tmp/fluidsynth-bootloaded ]; then | |
touch /tmp/fluidsynth-bootloaded | |
killall fluidsynth | |
fluidsynth -a alsa -g 1 /usr/share/sounds/sf2/default-GM.sf2 -o midi.autoconnect=1 -c 4 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Use this script to load soundfonts manually | |
select value in `ls -A /usr/share/sounds/sf2/` | |
do | |
killall fluidsynth | |
fluidsynth -a alsa -g 0.8 /usr/share/sounds/sf2/$value -o midi.autoconnect=1 -c 3 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment