aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/start_jack62
1 files changed, 0 insertions, 62 deletions
diff --git a/bin/start_jack b/bin/start_jack
deleted file mode 100755
index b6c3660..0000000
--- a/bin/start_jack
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/bin/sh
-# Script to start JACK as a user with several settings setup
-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 &
- sleep 2
- alsa_out -d hw:0 -q1 &> .log/alsa_out.log &
- ;;
- "beagleclone")
- CARDS=$(aplay -l)
- EXTERNAL="card 1"
- if [[ "$CARDS" == *$EXTERNAL* ]];then
- echo "Starting with external USB card"
- /usr/bin/xvfb-run -s "-screen 0, 1280x800x24" -a -e ~/.log/xvfb-run-jack.error jackd -dalsa -dhw:1,0 -p2048 -n3 -s &> ~/.log/jackd.log &
- else
- echo "Starting with internal HDMI card"
- /usr/bin/xvfb-run -s "-screen 0, 1280x800x24" -a -e ~/.log/xvfb-run-jack.error jackd -dalsa -dhw:0,0 -p128 -n3 -s &> ~/.log/jackd.log &
- fi
- ;;
- "dvzrv")
- DEVICE="/dev/fw1"
- # TODO: Add settings from separate config file
- if [[ -e $DEVICE && -r $DEVICE && -w $DEVICE ]]; then
- echo "Stopping pulseaudio"
- echo "Setting up "$DEVICE" with JACK."
- jack_control start
-# sudo /usr/bin/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 nperiods 2
- jack_control dps period 256
- sleep 3
- a2jmidid -e &
-# sudo /usr/bin/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 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
- ;;
-esac
-