<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 25, 2021 at 9:43 AM Ralf Mardorf <<a href="mailto:ralf.mardorf@alice-dsl.net">ralf.mardorf@alice-dsl.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, 25 Apr 2021 08:36:42 -1000, robertlazarski wrote:<br>
>it only showed midi connections in the qjackctl alsa pane, not the<br>
>midi pane<br>
<br>
Hi,<br>
<br>
the MIDI tab is for jack MIDI and the ALSA tab is for ALSA MIDI.<br>
Actually connecting to external MIDI hardware is done via ALSA MIDI.<br>
Depending on the used setup, you need to bridge jack and ALSA MIDI.<br>
Keyword "a2j_control", while it's not the one and only universal<br>
keyword. <br></blockquote><div><br></div><div>So I made some progress connecting jack_midi_clock to Rosegarden using 'a2jmidid -e' - I think that may be the equivalent of 'a2j_control start' . With the jack transport off in Rosegarden, it accepted midi start / stop though as expected it didn't sync BPM.  <br></div><div><br></div><div>I have two problems still: <br></div><div><br></div><div>1) I need to automate the jack "rolling feature" via command line execution, i.e. the play button in the qjackctl UI. That will start/stop the transport in Rosegarden via jack_midi_clock start / stop commands. I couldn't figure out how to automate the play button. Even without qjackctl I am not sure how to start/stop jackd rolling from the command line. Any pointers? <br></div><div><br></div><div>2) I am trying to do everything on the command line without qjackctl. I started jackd with my user account as "/usr/bin/jackd -dalsa -dhw:USBPre2 -r48000 -p1024 -n2 -Xseq " . Then I executed jack_mclk_dump, then "/usr/local/bin/jack_midi_clock --bpm 42 jack_mclk_dump:mclk_in" . Then 'a2jmidid -e' , then Rosegarden.   </div><div><br></div><div>Where I am stuck is on the right syntax for a2j_control to map jack_midi_clock:mclk_out to "rosegarden [131] (playback): record in". I think I need the mj2a flag? Please see my qjackctl session.xml file. I am about to buy a m-audio Uno midi interface and I am trying to figure out how to use a2j_control to connect jack_midi_clock to it as an ALSA device since I expect the Uno to connect to Linux over ALSA.  </div><div><br></div><div><!DOCTYPE qjackctlSession><br><session name="qq"><br> <client name="system"><br>  <port type="out" name="capture_1"><br>   <connect port="record in 1 L" client="rosegarden"/><br>  </port><br>  <port type="out" name="capture_2"><br>   <connect port="record in 1 R" client="rosegarden"/><br>  </port><br>  <port type="in" name="playback_1"><br>   <connect port="master out L" client="rosegarden"/><br>  </port><br>  <port type="in" name="playback_2"><br>   <connect port="master out R" client="rosegarden"/><br>  </port><br>  <port type="out" name="midi_capture_1"/><br>  <port type="in" name="midi_playback_1"/><br>  <port type="in" name="midi_playback_21"/><br>  <port type="out" name="midi_capture_34"/><br>  <port type="out" name="midi_capture_35"/><br> </client><br> <client name="rosegarden"><br>  <port type="out" name="master out L"><br>   <connect port="playback_1" client="system"/><br>  </port><br>  <port type="out" name="master out R"><br>   <connect port="playback_2" client="system"/><br>  </port><br>  <port type="out" name="record monitor out L"/><br>  <port type="out" name="record monitor out R"/><br>  <port type="in" name="record in 1 L"><br>   <connect port="capture_1" client="system"/><br>  </port><br>  <port type="in" name="record in 1 R"><br>   <connect port="capture_2" client="system"/><br>  </port><br>  <port type="in" name="record in 2 L"/><br>  <port type="in" name="record in 2 R"/><br> </client><br> <client name="jack_mclk_dump"><br>  <port type="in" name="mclk_in"><br>   <connect port="mclk_out" client="jack_midi_clock"/><br>  </port><br> </client><br> <client name="a2j"><br>  <port type="out" name="Midi Through [14] (capture): Midi Through Port-0"/><br>  <port type="in" name="Midi Through [14] (playback): Midi Through Port-0"/><br>  <port type="in" name="rosegarden [131] (playback): record in"><br>   <connect port="mclk_out" client="jack_midi_clock"/><br>  </port><br>  <port type="out" name="rosegarden [131] (capture): sync out"/><br>  <port type="out" name="rosegarden [131] (capture): out 1 - General MIDI Device"/><br> </client><br> <client name="jack_midi_clock"><br>  <port type="out" name="mclk_out"><br>   <connect port="mclk_in" client="jack_mclk_dump"/><br>   <connect port="rosegarden [131] (playback): record in" client="a2j"/><br>  </port><br> </client><br></session><br></div></div></div>