Re: [LAD] basic MIDI note-on/note-off questions

From: Pedro Lopez-Cabanillas <pedro.lopez.cabanillas@email-addr-hidden>
Date: Fri Jun 25 2010 - 16:45:59 EEST

On Friday, June 25, 2010, James Morris wrote:
> On 25 June 2010 12:35, Jens M Andreasen <jens.andreasen@email-addr-hidden> wrote:
> > On Fri, 2010-06-25 at 11:55 +0100, James Morris wrote:
> >> Hi,
> >>
> >> I keep getting surprised at some of the most basic problems I run
> >> into... This time, processing order.
> >
> > Midi is serial, first come first served.
> >
> >> 1) Notes of zero duration?
> >
> > Are at least one millisecond.
> >
> >> 2) note x ending simultaneously with note y beginning
> >
> > Note x will end either one millisecond before or after y beginning.
> >
> > /j
>
> Sorry, should have mentioned this is with regard to the internals of
> sequencing. I can't see in Seq24 for example a way to make a zero length
> note.
>
> Where do you get the one millisecond from?

MIDI is an asynchronous serial interface. The baud rate is 31.25 kBd +/-1%.
There is 1 start bit, 8 data bits, and 1 stop bit. The period is about 320
microseconds per serial byte. Note on/off messages are 2 or 3 bytes in
length, depending on running status being used or not.

> Does this imply that a note-off should always happen one millisecond early?

There are instruments that always ignore note off messages, for instance many
percussion instruments. In this case, you can safely omit note off messages.

Regards,
Pedro
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Fri Jun 25 20:15:02 2010

This archive was generated by hypermail 2.1.8 : Fri Jun 25 2010 - 20:15:02 EEST