[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Om-synth] autoconnecting
From: |
Atte André Jensen |
Subject: |
Re: [Om-synth] autoconnecting |
Date: |
Tue, 02 Aug 2005 11:52:58 +0200 |
User-agent: |
Debian Thunderbird 1.0.2 (X11/20050331) |
Atte André Jensen wrote:
About autoconnecting to midi/audio...
To avoid the most horrible clicking, I threw together this very crude
bash-script that connects om to midi/audio. This is of course just a
temporary solution for me (maybe others could use it too?), so my
initial suggestion of having om_gtk making clever connections is still
valid...
--
peace, love & harmony
Atte
http://www.atte.dk
#!/bin/bash
om_midi_in=`aconnect -o | grep Om | sed s/client//g | sed -e s/:.*//g`:0
first_keyboard_midi_out=`aconnect -i | grep keyboard | head -n 1 | sed
s/client//g | sed -e s/:.*//g`:0
alsa_in_l=`jack_lsp | grep alsa_pcm: | grep _1`
alsa_in_r=`jack_lsp | grep alsa_pcm: | grep _2`
om_out_l=`jack_lsp | grep Om: | grep output_0`
om_out_r=`jack_lsp | grep Om: | grep output_1`
aconnect -x
aconnect $first_keyboard_midi_out $om_midi_in
jack_connect $om_out_l $alsa_in_l
jack_connect $om_out_r $alsa_in_r