On Sat, 2009-07-04 at 19:12 -0400, Mark Vitek wrote:
Hello,
I am new to audio/midi programming, but in my experience Jack is the
easier API to learn/use.
If you download midimon from sourceforce, and look in mm_jack.cc /
mm_jack.h you can see the basic usage.
Basically, you pass a callback function to jack, which allows you to
pull available MIDI events from the jack API.
I just queued those up using a Glib queue, and pull the events off in
the user interface thread. Very straightforward.
http://sourceforge.net/projects/midimon/
Thank you, I'll have a look in this.
What I can't understand is if it is possible, with the jack API, to
actually *create* midi note on/off messages. The examples I've seen
(like midimon too, it seems to me) only handle (reroute etc.) midi
coming from other sources, like an external keyboard or another program.
In my case instead I'll have to actually create those messages, as for
example midi sequencers do.
May this is the reason why programs that generate midi (seq24 for
example) use alsa? (see my confusion in point 1) in first message)
Renato