add connect script
authorrekado <rekado@elephly.net>
Sun, 28 Jul 2013 05:37:29 +0000 (13:37 +0800)
committerrekado <rekado@elephly.net>
Sun, 28 Jul 2013 05:37:29 +0000 (13:37 +0800)
connect.sh [new file with mode: 0755]

diff --git a/connect.sh b/connect.sh
new file mode 100755 (executable)
index 0000000..89fe201
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+TYPE=${1:-mdaPiano}
+
+# connect MIDI mate II to MIDI through (Alsa MIDI)
+aconnect 24:0 14:0
+
+# connect to JACK
+jack_connect $TYPE:midi "a2j:Midi Through [14] (capture): Midi Through Port-0"
+
+jack_connect system:playback_1 $TYPE:left
+jack_connect system:playback_2 $TYPE:right