Re: Can MIDIPackets be modified after they are sent?
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