Raspberry Pi synthesizer
- Clone this repository to the home directory (~) with:
git clone https://github.com/JunShern/pi-synth ~/pi-synth
- Run the install script (make sure you follow the prompts carefully, in particular for the read-only mode prompts - refer to this to learn about what it entails):
sudo bash ~/pi-synth/install.sh
- Reboot your Pi:
sudo reboot
## Basic test with ALSA and Fluidsynth
aplay -l # List soundcards, take note of 'card {cardnum}' for USB audio interface
fluidsynth -is -o audio.alsa.device=hw:{cardnum} --audio-driver=alsa --gain 3 /usr/share/sounds/sf2/FluidR3_GM.sf2 & # Start fluidsynth
acconect -o # Look for Fluidsynth's client number {out}
acconect -i # Look for MIDI keyboard's client number {in}
aconnect {in} {out} # Connect input to output
aseqdump -p {in} # For debugging (should print message events to console)
## Find and kill fluidsynth
ps -a
kill {PID}
For example, boot read-only mode with options:
GPIO for r/w jumper: 21
GPIO for halt button: 16
NO watchdog
-
Headless auto-login: Enter the command
sudo raspi-config
. Scroll down toBoot Options
and selectConsole Autologin
. Then exit the configuration menu and reboot