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

From: Clemens Ladisch <clemens@email-addr-hidden>
Date: Tue Jul 25 2006 - 12:03:56 EEST

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.

HTH
Clemens
Received on Tue Jul 25 12:15:04 2006

This archive was generated by hypermail 2.1.8 : Tue Jul 25 2006 - 12:15:05 EEST