[LAU] Why JACK MIDI rocks (was Re: perhaps why some of us have more trouble w/ pulseaudio than others (ICE1712/M-audio delta problem w/ pulseaudio))

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

On Wed, 12 May 2010, Paul Davis wrote:

>> I have to spend a bunch of time grepping through source code (because the

Ha! No, that's what I meant. :-)

For example, when implementing a MIDI CC the flow of my code
will be something like this:

[3 bytes MIDI] -----(ALSA)----> snd_seq_event_t
snd_seq_event_t ----(GABE)----> [3 bytes MIDI] + timestamp

I would say that this is undermining the ways it's trying to
help me.

I could drop the seq API and use the raw MIDI API, but then
I lose the time-stamp. (Unless I've misunderstood something
somewhere....)

In contrast, the JACK MIDI API is something like this:

[3 bytes MIDI] ----(JACK)----> [3 bytes MIDI] + timestamp

Which is beautiful. :-)

To further rant on the ALSA seq API.... snd_seq_event_t is a
complex, C-style, polymorphic type. So, instead of the CC
param & value being a simple buf[1] & buf[2], it's
event->data.control.param and event->data.control.value.
If you have a different type of MIDI event... it has a
different API... which means you have to spend a lot of time
with the not-so-hot documentation.

-gabriel
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-user

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [LAU] perhaps why some of us have more trouble w/ pulsea..., Gabriel M. Beddingfield, (Tue May 11, 1:58 pm)
Re: [LAU] perhaps why some of us have more trouble w/ pulsea..., Fernando Lopez-Lezcano, (Tue May 11, 5:09 pm)
Re: [LAU] perhaps why some of us have more trouble w/ pulsea..., Pedro Lopez-Cabanillas, (Wed May 12, 1:56 pm)
Re: [LAU] perhaps why some of us have more trouble w/ pulsea..., Pedro Lopez-Cabanillas, (Wed May 12, 3:54 pm)
Re: [LAU] perhaps why some of us have more trouble w/ pulsea..., Gabriel M. Beddingfield, (Wed May 12, 4:33 pm)
[LAU] Why JACK MIDI rocks (was Re: perhaps why some of us ha..., Gabriel M. Beddingfield, (Thu May 13, 1:40 pm)
Re: [LAU] perhaps why some of us have more trouble w/ pulsea..., Pedro Lopez-Cabanillas, (Wed May 12, 10:29 pm)
Re: [LAU] perhaps why some of us have more trouble w/ pulsea..., Pedro Lopez-Cabanillas, (Thu May 13, 10:09 pm)
Re: [LAU] perhaps why some of us have more trouble w/ pulsea..., Pedro Lopez-Cabanillas, (Thu May 13, 10:06 pm)
Re: [LAU] perhaps why some of us have more trouble w/ pulsea..., Philipp Überbacher, (Wed May 12, 12:58 pm)
Re: [LAU] perhaps why some of us have more trouble w/ pulsea..., Fernando Lopez-Lezcano, (Mon May 10, 1:01 am)
Re: [LAU] perhaps why some of us have more trouble w/ pulsea..., rosea.grammostola, (Mon May 10, 9:38 am)
Re: [LAU] jack and PulseAudio, Luka Princic // Nova deViator..., (Tue May 11, 8:34 am)
Re: [LAU] jack and PulseAudio, Ng Oon-Ee, (Tue May 11, 9:30 am)
Re: [LAU] jack and PulseAudio, david, (Wed May 12, 4:54 am)
Re: [LAU] perhaps why some of us have more trouble w/ pulsea..., rosea.grammostola, (Mon May 10, 9:44 am)
Re: [LAU] perhaps why some of us have more trouble w/ pulsea..., rosea.grammostola, (Mon May 10, 9:32 am)
Re: [LAU] perhaps why some of us have more trouble w/ pulsea..., Philipp Überbacher, (Mon May 10, 8:47 pm)
Re: [LAU] perhaps why some of us have more trouble w/ pulsea..., Philipp Überbacher, (Mon May 10, 8:27 pm)