Re: [linux-audio-dev] Basic MIDI question

From: Dave Robillard <drobilla@email-addr-hidden>
Date: Tue Jul 25 2006 - 19:38:50 EEST

On Tue, 2006-07-25 at 11:03 +0200, Clemens Ladisch wrote:
> Lee Revell wrote:
> > I was confused because I also see these timestamps when snooping
> > the MIDI output stream inside the kernel's MPU401 driver. I guess I
> > assumed that aplaymidi would deliver the events with correct timing,
> > rather than passing the timestamps through.
>
> The MIDI data at a raw MIDI port never has timestamps. What you see are
> the data bytes of the next MIDI command where the command byte itself
> has been omitted because it would be identical to the last one. (ALSA's
> sequencer event -> rawmidi converter uses running status by default.)
>
> The running status and the zero note-on velocity (see Nicolas' mail) are
> the only special cases your parser has to look out for.

What about the 1-byte "realtime" events?

(un-normalized MIDI reeally sucks...)

-DR-
Received on Tue Jul 25 20:15:08 2006

This archive was generated by hypermail 2.1.8 : Tue Jul 25 2006 - 20:15:08 EEST