Re: [LAD] Realtime MIDI programming?

From: Paul Davis <paul@email-addr-hidden>
Date: Thu Oct 08 2009 - 17:54:08 EEST

On Thu, Oct 8, 2009 at 12:03 AM, Albert Graef <Dr.Graef@email-addr-hidden-online.de> wrote:
> Arnout Engelen wrote:
>> There is some simple example code available at the jackaudio wiki though:
>> http://trac.jackaudio.org/wiki/WalkThrough/Dev/SimpleMidiClient
>
> Thanks, that looks pretty straightforward. I guess that to output MIDI
> from another thread one is supposed to use a ringbuffer which is read by
> the Jack callback, or is there a better solution for that?

thats the only solution :)

but keep in mind that, just as with audio, JACK is "encouraging" "RT
design" in which you do the work associated with a particular audible
time as close to that time as possible. of course, this doesn't apply
to playback of MIDI from disk, but if you're doing algorithmic
composition, the long term goal is to encourage people to write the
same that they do with audio synthesis: JACK says "its time to
generate data for the next block" and the app does it right there and
then. obviously, some mileage may vary :)

--p
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Thu Oct 8 20:15:02 2009

This archive was generated by hypermail 2.1.8 : Thu Oct 08 2009 - 20:15:02 EEST