I don’t claim to be an expert, but amended a script to my requirements. I finished with a script called ‘fluid’ which I installed in /usr/local/bin.
I also established a user called synth in the ‘audio’ group, to help with latency, and added a couple of lines to the end of /home/pi/.profile, consisting of first line 'sudo su synth’, and second line ‘fluid start’. Google Ted Felix MIDI for better info. In my case, I also needed to hold off on supplying MIDI until fluid synth was ready for it. You could probably extend the script to start the other application. Peter
#!/bin/bash # Script to launch fluidsynth server. # Put it in ~/bin/fluid. # To start âfluid startâ, to stop âfluid stopâ case $1 in start ) if ! pgrep fluidsynth then fluidsynth -is -d -r 44100 -c 2 -z 16 --audio-driver=alsa \ --reverb=0 --chorus=0 --gain=5.0 \ /usr/share/sounds/sf2/FluidR3_GM.sf2 \ &>/tmp/fluidsynth.out & sleep 5 echo fluidsynth started. fi if pgrep fluidsynth then echo fluidsynth running. # Use aconnect to get the ports myownport=$(aconnect -i | grep "Teensy MIDI" | cut -d ' ' -f 2)0 synthport=$(aconnect -o | grep "FLUID Synth" | cut -d ' ' -f 2)0 echo Arduino input port: $myownport echo fluidsynth output port: $synthport # Connect the ports aconnect $myownport $synthport else echo fluidsynth probable command line problem. fi ;; stop ) killall fluidsynth echo fluidsynth stopped. ;; * ) echo Please specify start or stop... ;; esac
> On 25 Oct 2017, at 11:24 am, H P Ladds <householdwo...@gmail.com> wrote: > > Anyone tried or had success starting Fluidsynth at boot on a Rasp Pi? > > I'm trying to create a RPi machine dedicated to playing Piano Booster (an > application that teaches piano playing.) Piano Booster depends upon a running > instance of Fluidsynth. > > Cheers, > Preston > _______________________________________________ > fluid-dev mailing list > fluid-dev@nongnu.org > https://lists.nongnu.org/mailman/listinfo/fluid-dev
_______________________________________________ fluid-dev mailing list fluid-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/fluid-dev