Re: MusicPlayer as slave
Re: MusicPlayer as slave
- Subject: Re: MusicPlayer as slave
- From: William Stewart <email@hidden>
- Date: Wed, 3 Dec 2003 12:29:24 -0800
Not directly.
However, with Panther (and the QT updates for Jaguar) we added an API
for this to scale the playback rate - this is how you'd synchronise as
this can be done dynamically and as often as you need to. See
MusicPlayerSetPlayRateScalar - So, you'd have to parse the MIDI beat
clock yourself, but then you can make the adjustments to playback rate
accordingly (though it won't play backwards)
MusicPlayerSetTime is a very disruptive event and is *not* recommended
for use in this kind of scenario (though of course if you actually jump
to a different time then you would use this API) - but not to track the
normal playing mode (including going faster or slower) you shouldn't
use this API...
Bill
On 02/12/2003, at 10:09 AM, Patrick Gostovic wrote:
Is it possible for MusicPlayer to behave as a slave to MIDI beat clock?
I have not tried this, but the only way that I can see being able to
do this is to constantly call MusicPlayerSetTime() and also send tempo
events, both 24 times per quarter note? Would that be bad? I imagine
drastic tempo changes could result in lost notes, no?
Patrick
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.