gtr/go.sh

52 lines
914 B
Bash
Executable File

#! /bin/bash
BTDEV=/dev/rfcomm0;
# kill any exsisting jack ghosts
#killall -9 jackd qjackctl
# turn on bluetooth device
blueman-manager;
## bind bluetooth to /dev/rfcomm0
## requires password / sudo
if test -e $BTDEV ; then
echo "BLUETOOTH ALREADY BOUND!"
else gnome-terminal --title=BLUDETOOTHBIND -- ./bind_bluetooth.sh;
fi;
# start jackd
if [ $(pidof jackd) ] ; then
echo "jackd ALREADY RUNNING"
else echo "starting jackd"; gnome-terminal --title=JACKD SERVER -- ./start_jackd.sh;
fi;
sleep 2;
# start node server
gnome-terminal --title=NODE SERVER -- node wavey-wind/server.js /dev/rfcomm0 &&
# start supercollider
#scide gtr.scd &
# start guitarix
if [ $(pidof guitarix) ] ; then
echo "GUITARIX ALREADY RUNNING"
else echo "starting guitarix"; guitarix;
fi;
sleep 4;
jack_connect system:capture_1 gx_head_amp:in_0 &&
jack_connect gx_head_fx:out_0 SuperCollider:in_1