I have a USB Piano Keyboard that i want to use with my Pi. I have gt it working using Fluidsynth and then connecting the ports using aconnect is a separate terminal widow.
I now want to automate the setup so that my children can just switch it on.
To do this I have added script to the global autostart file.
Code: Select all
#!/bin/bash/sh fluidsynth -is --audio-driver-alsa --gain 3 /usr/share/sounds/sf2/FluidR3_GM.sf2 wait(30) aconnect 20:0 128:0