aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2014-09-28 04:37:27 +0200
committerDavid Runge <david.runge@frqrec.com>2014-09-28 04:37:27 +0200
commit08484395f10d4c8b354f2ec09daa388095931cc3 (patch)
tree36aee9e7faa198a3a38785620f57ee9767094e08
parent4e29fb858bfbd5ff030af7e4e45403dfda6d617f (diff)
downloaddotfiles-08484395f10d4c8b354f2ec09daa388095931cc3.tar.gz
dotfiles-08484395f10d4c8b354f2ec09daa388095931cc3.tar.bz2
dotfiles-08484395f10d4c8b354f2ec09daa388095931cc3.tar.xz
dotfiles-08484395f10d4c8b354f2ec09daa388095931cc3.zip
Adding correct echo output to updated script.
-rwxr-xr-xbin/start_jack36
-rwxr-xr-xbin/stop_jack7
2 files changed, 39 insertions, 4 deletions
diff --git a/bin/start_jack b/bin/start_jack
index 48e97ed..735d5fa 100755
--- a/bin/start_jack
+++ b/bin/start_jack
@@ -1,7 +1,9 @@
#!/bin/sh
+export DISPLAY=:0.0
#jackd -P70 -p16 -t2000 -dalsa -dhw:0,0 -p128 -n3 -r44100 -s > .log/jackd.log 2>&1 &
+echo $HOSTNAME
case "$HOSTNAME" in
"pitheunlord")
jackd -P95 -p32 -ddummy -C1 &> .log/jackd.log &
@@ -22,11 +24,39 @@ case "$HOSTNAME" in
"dvzrv")
DEVICE="/dev/fw1"
if [[ -e $DEVICE && -r $DEVICE && -w $DEVICE ]]; then
- echo "Setting up Motu Traveler with JACK"
+ echo "Setting up "$DEVICE" with JACK."
+ jack_control start
+ sudo schedtool -R -p 20 `pidof jackdbus`
+ jack_control eps realtime true
+ jack_control ds firewire
+ jack_control dps device $DEVICE
+ jack_control dps rate 48000
+ #jack_control dps rate 44100
+ jack_control dps nperiods 2
+ #jack_control dps period 64
+ jack_control dps period 256
+ sleep 3
+ a2jmidid -e &
+ sudo schedtool -R -p 20 `pidof a2jmidid`
+ rm ~/.config/SuperCollider/startup.scd
+ ln -s ~/.config/SuperCollider/startupfiles/electronicStudio.scd ~/.config/SuperCollider/startup.scd -v
else
- echo "Setting up internal JACK server"
+ echo "Setting up ALSA with JACK."
+ jack_control start
+ sudo schedtool -R -p 20 `pidof jackdbus`
+ jack_control eps realtime true
+ jack_control ds alsa
+ jack_control dps device hw:PCH
+ jack_control dps rate 48000
+ jack_control dps nperiods 2
+ jack_control dps period 256
+ sleep 4
+ a2jmidid -e &
+ sudo schedtool -R -p 20 `pidof a2jmidid`
+ rm ~/.config/SuperCollider/startup.scd
+ ln -s ~/.config/SuperCollider/startupfiles/startupSystem.scd ~/.config/SuperCollider/startup.scd -v
+
fi
-# jack_control start
;;
esac
diff --git a/bin/stop_jack b/bin/stop_jack
index ab49fa9..9c47548 100755
--- a/bin/stop_jack
+++ b/bin/stop_jack
@@ -1,6 +1,11 @@
#!/bin/sh
-kill $(pidof jackd)
+jack_control stop
+sleep 3
+jack_control exit
+exit 0
+
+#kill $(pidof jackd)
#case "$HOSTNAME" in
# "beagleclone")
# kill $(pidof jackd)