• 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
Re: Can MIDIPackets be modified after they are sent?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can MIDIPackets be modified after they are sent?


  • Subject: Re: Can MIDIPackets be modified after they are sent?
  • From: Tom Jeffries <email@hidden>
  • Date: Sat, 04 Jun 2011 09:24:03 -0700

So in other words, neither MIDIPackets nor the built-in sequencer can be used for sequences being built in real-time?  That's how I'm proceeding, I just want to verify.

On Sat, Jun 4, 2011 at 8:42 AM, andre <email@hidden> wrote:
On 07.05.2011, at 17:36, Tom Jeffries wrote:

Is there a way to change the event data after playback has started, or am I back to trying to make this work with a clock?

The solution is to keep your events around in a sequence or buffer, modify them there, and send them out only a few milliseconds before they are due.

You need a "player" thread that runs in sync with the system clock, i.e. waits for a particular millisecond clock value and then reads the next events from the sequence to send them out.

It is a bad idea to schedule events very early ahead of time, except for very, very simple purposes.

HTH

Andre


 _______________________________________________
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

  • Follow-Ups:
    • Re: Can MIDIPackets be modified after they are sent?
      • From: Brian Willoughby <email@hidden>
References: 
 >Re: Can MIDIPackets be modified after they are sent? (From: andre <email@hidden>)

  • Prev by Date: Re: Can MIDIPackets be modified after they are sent?
  • Next by Date: Re: Can MIDIPackets be modified after they are sent?
  • Previous by thread: Re: Can MIDIPackets be modified after they are sent?
  • Next by thread: Re: Can MIDIPackets be modified after they are sent?
  • Index(es):
    • Date
    • Thread