Re: MIDI message timestamps
Re: MIDI message timestamps
- Subject: Re: MIDI message timestamps
- From: Doug Wyatt <email@hidden>
- Date: Thu, 11 Nov 2004 09:01:08 -0800
On Nov 10, 2004, at 22:54, Kurt Revis wrote:
On Nov 10, 2004, at 6:53 PM, Chadwick Wood wrote:
I'm trying to build a simple sequencer that will open a virtual MIDI
source and send messages. I've gotten this to work somewhat, but I
can't get the timestamps right.
Your timestamp code looks fine. I bet your problem is this: CoreMIDI
doesn't schedule MIDI that you give to a virtual source by calling
MIDIReceived(). It just sends it immediately, so it's up to you to do
your own timing. If you use MIDISend() to send the packet list to a
destination, either a real one or a virtual one, it will get scheduled
and sent at the appropriate time.
This is a pretty long-standing limitation, and I wouldn't bet on it
being changed anytime soon. If you search google or the mailing list
archives, you'll see that this issue has come up a few times...
Actually, this has been changed on top-of-tree, so I wouldn't bet
against the change making it out into the world before long ;-)
Doug
_______________________________________________
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