2022-09-12 08:46:12 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
BTDEV=/dev/rfcomm0;
|
2022-09-07 13:55:44 +02:00
|
|
|
|
|
|
|
# kill any exsisting jack ghosts
|
2022-09-12 08:46:12 +02:00
|
|
|
#killall -9 jackd qjackctl
|
2022-09-07 13:55:44 +02:00
|
|
|
|
|
|
|
# turn on bluetooth device
|
2022-10-19 10:21:17 +02:00
|
|
|
blueman-manager &
|
|
|
|
sleep 1;
|
|
|
|
killall blueman-manager;
|
2022-09-07 13:55:44 +02:00
|
|
|
|
|
|
|
## bind bluetooth to /dev/rfcomm0
|
|
|
|
## requires password / sudo
|
2022-09-12 08:46:12 +02:00
|
|
|
|
|
|
|
if test -e $BTDEV ; then
|
|
|
|
echo "BLUETOOTH ALREADY BOUND!"
|
2022-10-19 10:21:17 +02:00
|
|
|
else gnome-terminal --title=BLUDETOOTHBIND -- rfcomm bind 0 10:97:BD:36:D6:4E;
|
2022-09-12 08:46:12 +02:00
|
|
|
|
|
|
|
fi;
|
2022-09-07 13:55:44 +02:00
|
|
|
|
|
|
|
# start jackd
|
2022-09-12 08:46:12 +02:00
|
|
|
if [ $(pidof jackd) ] ; then
|
|
|
|
echo "jackd ALREADY RUNNING"
|
2022-10-19 10:21:17 +02:00
|
|
|
else echo "starting jackd"; gnome-terminal --title=JACKD SERVER -- su -c ./start_jackd.sh rob;
|
2022-09-12 08:46:12 +02:00
|
|
|
|
|
|
|
fi;
|
|
|
|
|
2022-10-19 10:21:17 +02:00
|
|
|
sleep 1;
|
2022-09-07 13:55:44 +02:00
|
|
|
|
|
|
|
# start node server
|
2022-10-19 10:21:17 +02:00
|
|
|
echo "starting wavey wind" ;
|
2022-09-07 13:55:44 +02:00
|
|
|
gnome-terminal --title=NODE SERVER -- node wavey-wind/server.js /dev/rfcomm0 &&
|
|
|
|
|
2022-10-19 10:21:17 +02:00
|
|
|
echo "starting supercollider" ;
|
|
|
|
sh -c 'su -c 'scide gtr.scd' rob &&' ;
|
2022-09-12 08:46:12 +02:00
|
|
|
|
|
|
|
# start guitarix
|
|
|
|
if [ $(pidof guitarix) ] ; then
|
|
|
|
echo "GUITARIX ALREADY RUNNING"
|
2022-10-19 10:21:17 +02:00
|
|
|
else echo "starting guitarix"; sh -c 'su -c "guitarix" rob' ;
|
2022-09-12 08:46:12 +02:00
|
|
|
fi;
|
|
|
|
|
2022-10-19 10:21:17 +02:00
|
|
|
echo "making jack connections" ;
|
|
|
|
su -c jack_connect system:capture_1 gx_head_amp:in_0 rob &&
|
|
|
|
su -c jack_connect gx_head_fx:out_0 SuperCollider:in_1 rob &&
|