<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 28, 2012 at 10:03 AM, M Donalies <span dir="ltr"><<a href="mailto:ingeniousnebbish@cox.net" target="_blank">ingeniousnebbish@cox.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Monday 24 December 2012 05:52:41 Pedro Lopez-Cabanillas wrote:<br>
> I think that you are not getting more help here because a terminology<br>
> confusion. This is only a guess, but I think that by "jack connections" you<br>
> mean the lines that can be created in the "ALSA" tab of qjackctl. In that<br>
> case, you are using the wrong name because those lines have nothing to do<br>
> with jack. They are ALSA sequencer connections that can be made using<br>
> other programs as well, like "aconnect". There is an ALSA API to create<br>
> connections; look for "subscription" here:<br>
> <a href="http://www.alsa-project.org/alsa-doc/alsa-lib/seq.html" target="_blank">http://www.alsa-project.org/alsa-doc/alsa-lib/seq.html</a><br>
><br>
> If you want to use jack midi instead, please clarify (and don't expect<br>
> answers or interest from me.)<br>
<br>
Well, that explains why there's a separate ALSA tab in QJackCtl. And, yes, I'm<br>
using the ALSA tab to make my connections. So, at this point, it seems I don't<br>
really need jack.<br></blockquote><div><br>JACK is (a) sample accurate when delivering MIDI between applications (b) very lightweight (c) the same API can be used to deliver audio and MIDI to other applications and/or hardware.<br>
<br>ALSA is not sample accurate and not very lightweight, but at least the API for delivery to other apps is the same as when delivering MIDI to hardware. <br></div><div> <br>finally, for sequencing synthesis purposes, JACK MIDI is much easier from a thread perspective. for non-sequencing (i.e. MIDI control), ALSA MIDI is much easier.<br>
<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Just a side question: if I had an application that uses audio and midi (like<br>
Sonar), who keeps them in sync? Is this ALSA or Jack?<br></blockquote><div><br>between applications: with ALSA, absolutely nothing keeps them in sync. With JACK, there is no choice but to be in sync. <br>within an application: neither ALSA nor JACK really play any role in this.<br>
<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> Assuming that you want to use the ALSA Sequencer, and not jack midi, I can<br>
> provide some working examples.<br>
><br>
> As per your request, a simple metronome program in C<br>
> <a href="http://lalists.stanford.edu/lau/2009/08/att-0005/ametro.c" target="_blank">http://lalists.stanford.edu/lau/2009/08/att-0005/ametro.c</a><br></blockquote><div><br>similar examples are provided for JACK MIDI too. <br>
<br>I'm not really advocating ALSA over JACK for MIDI, but you need to be aware of the fact that you do have a choice, and the choice is not *simple*.<br></div></div></div>