#!/bin/bash clientNumOxygen=$(aconnect -i | grep client | grep -i Oxygen | cut -d" " -f2 | tr -d ":") clientNumBristol=0 bristolCount=0 bristolString= # Start Jack audio server /usr/bin/qjackctl -s & sleep 8 # Launch & connect Bristol Organ (Hammond B3) /usr/bin/startBristol -b3 -jack -midi seq & sleep 8 clientNumBristol=$(aconnect -o | grep client | grep -i bristol | cut -d" " -f2 | tr -d ":") aconnect $clientNumOxygen:0 $clientNumBristol:0 sleep 6 jack_connect bristol${bristolString}:out_left system:playback_1 jack_connect bristol${bristolString}:out_right system:playback_2 ((bristolCount++)) bristolString="-0$bristolCount" ((clientNumBristol++)) # Launch & connect Rhodes Bass Piano /usr/bin/startBristol -rhodesbass -jack -midi seq & sleep 8 aconnect $clientNumOxygen:0 $clientNumBristol:0 sleep 6 jack_connect bristol${bristolString}:out_left system:playback_1 jack_connect bristol${bristolString}:out_right system:playback_2 ((bristolCount++)) bristolString="-0$bristolCount" ((clientNumBristol++)) # Launch the monobristol GUI in case you want to use any other instruments # You still need to connect these manually in Jack Audio! /usr/bin/monobristol