summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-09-13 02:46:31 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-09-13 02:46:31 +0200
commit03a9bb847317d91bb120d6dbdb434d2e95ec2131 (patch)
tree96473a4adc9be0eaccc83bb5b8c4b26d881dc063
parenta029d5e89345709a9ffe49c4168ea3a45317fec2 (diff)
downloaddigitale-debutanten-03a9bb847317d91bb120d6dbdb434d2e95ec2131.tar.gz
minor startup script change
-rwxr-xr-xstart_chuck14
1 files changed, 9 insertions, 5 deletions
diff --git a/start_chuck b/start_chuck
index d7a8410..e87fb5c 100755
--- a/start_chuck
+++ b/start_chuck
@@ -1,9 +1,13 @@
-#!/bin/sh
+#!/bin/bash
+
+set -e
+
+test -n "$CHUCK" || CHUCK=chuck
# kill possibly running stuff
-pkill alsa_in
-pkill alsa_out
-pkill jack.scope
+pkill alsa_in || true
+pkill alsa_out || true
+pkill jack.scope || true
# USB sound card JACK ports
alsa_in -d hw:default -c 1 -q 0 >/dev/null &
@@ -16,7 +20,7 @@ jack.scope -n 3 -w 512 -b 96512 >/dev/null &
# ChucK server
# NOTE: Last three output ports are for jack.scope
-${CHUCK:-chuck} $* \
+$CHUCK $* \
--srate:44100 --in:3 --out:7 \
--chugin-path:chugins \
--loop lib.ck