• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Multiple events per packet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple events per packet


  • Subject: Multiple events per packet
  • From: "X. J. Scott" <email@hidden>
  • Date: Mon, 13 Sep 2004 18:54:31 -0400

on 9/13/04 5:25 PM, Doug Wyatt wrote:

> Multiple events per packet ARE allowed. You WILL receive them (e.g.
> from a USB MIDI interface) and you may create them.

Yikes.

It's not been a problem so far, but I'll go and fix it. What devices and/or
software are known to pack multiple events in a MIDIPacket?

So:

  for (int i = 0; i < packetList->numPackets; ++i)
     {
     ...
     parseMIDIInput(srcConnRefCon, packet->data, packet->length);
     packet = MIDIPacketNext(packet);
     }

-- where my parseMIDIInput() expects a single MIDI event -- won't cut it,
and I need an inner loop here.

OK...

>From the current documentation for struct MIDIPacket:

  "data -- A variable-length *stream* of MIDI messages [<- note plural] ..."

I guess I can't blame the documentation on this one. :-(

Thanks, Doug for the clarification. And thanks Alex for asking the question.

- Jeff

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: MIDI packet processing (From: Doug Wyatt <email@hidden>)

  • Prev by Date: Re: bug in VST2AU SDK, was: Re: AUValidation Error
  • Next by Date: Re: Multiple events per packet
  • Previous by thread: Re: MIDI packet processing
  • Next by thread: Re: MIDI packet processing
  • Index(es):
    • Date
    • Thread