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: andre <email@hidden>
- Date: Sat, 04 Jun 2011 17:42:29 +0200
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