Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- # switch patchbay connections
- #
- set -x
- if [ "$1" = "start" ]; then
- aj-snapshot -rjx allout
- elif [ "$1" = "quiet" ]; then
- disco_left="sooperlooper:common_in_1"
- disco_right="sooperlooper:common_in_2"
- conn_left="system:playback_1"
- conn_right="system:playback_2"
- elif [ "$1" == "allout" ]; then
- disco_left="system:playback_1"
- disco_right="system:playback_2"
- conn_left="sooperlooper:common_in_1"
- conn_right="sooperlooper:common_in_2"
- else
- echo "invalid keyword"
- exit 1
- fi
- flag="L"
- # first zyn, then vox, then guitar
- for i in "zynaddsubfx:out_1" "zynaddsubfx:out_2" "Calf Studio Gear:Reverb Out #1" "Calf Studio Gear:Reverb Out #2" "gx_head_fx:out_0" "gx_head_fx:out_1"; do
- # use this flag to do the L-R association
- if [ "$flag" = "L" ]; then
- jack_disconnect "$i" "$disco_left" &
- jack_connect "$i" "$conn_left" &
- flag="R"
- elif [ "$flag" = "R" ]; then
- jack_disconnect "$i" "$disco_right" &
- jack_connect "$i" "$conn_right" &
- flag="L"
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement