Re: CoreMidi and CoreAudio for software synth
Re: CoreMidi and CoreAudio for software synth
- Subject: Re: CoreMidi and CoreAudio for software synth
- From: Doug Wyatt <email@hidden>
- Date: Wed, 5 Oct 2005 10:34:02 -0700
On Oct 5, 2005, at 6:24, Edwin Vane wrote:
After a delay, I've looked at the MusicSequence API. Just a couple of
questions that looking at the sample code and header files didn't
answer:
-The header mentions being able to set time units to be in seconds
instead of beats. What call(s) accomplish this? I'm trying to sync to
video so I've encoded all my music timestamps in milliseconds so
being able to work in seconds would be nice. For future work, I'll
probably change this to be more musician friendly...
The comments in the header are incorrect; track time units are always
beats. (I guess we were hoping to implement timestamps in seconds but
didn't.)
Working around this is easy enough (until you get into complex
situations where you want to lock some events to absolute times in
seconds while using a musical beat-based timeline for other events).
Just set the sequence's tempo to 60 bpm and then 1 second = 1 beat.
-Can you modify the sequence that a player is attached to while it is
playing? I'm hoping it works like a buffer where QuickTime does the
feeding...
Yes.
Doug
On Wed, Sep 21, 2005 at 12:12:33PM -0700, William Stewart wrote:
You should look at the MusicSequence API - this is a much better
(sample accurate) scheduler for events to ANY audio unit - see
MusicPlayer.h in the AudioToolbox framework. There are a couple of
examples of using this in the SDK as well (PlaySequence is one)
Bill
--
Doug Wyatt
Core Audio, Apple
_______________________________________________
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