Support for ES-9

This commit is contained in:
Christian Colglazier 2020-01-18 20:07:25 -05:00
parent 580740dbd0
commit 58c0118724
2 changed files with 19 additions and 0 deletions

18
scripts/start-es-9.sh Normal file
View File

@ -0,0 +1,18 @@
#!/bin/bash
# Script to add another audio interface if available.
DEVICENAME='ES-9'
DEVICENUM="$(cat /proc/asound/cards | grep -m 1 $DEVICENAME | grep -o '[0-9]' | head -1)"
if test -z "$DEVICENUM"
then
echo $DEVICENAME not connected
exit 1
else
echo $DEVICENAME found at hw:$DEVICENUM
fi
# Start up audio interface
alsa_in -d hw:$DEVICENUM -j "$DEVICENAME In" &
alsa_out -d hw:$DEVICENUM -j "$DEVICENAME Out" &

View File

@ -31,6 +31,7 @@ done
# Eurorack audio interface
sh ~/.config/scripts/start-es-8.sh
sh ~/.config/scripts/start-es-9.sh
# Start up programs that use audio
if [ -z "$skipi3" ]; then