Re: Changing tempo of MusicSequence on fly in Panther
Re: Changing tempo of MusicSequence on fly in Panther
- Subject: Re: Changing tempo of MusicSequence on fly in Panther
- From: William Stewart <email@hidden>
- Date: Tue, 4 Nov 2003 00:43:54 +0100
On 01/11/2003, at 3:57 AM, Michael Norris wrote:
I realise this wasn't possible in 10.2.x, but under Panther is there
any way to change the tempo of a MusicSequence while it's playing, and
at any arbitrary point, without having to add tempo events to the
tempo track?
The only way to actually change the tempo is to insert tempo events
(and this can be done on the fly)
Perhaps that's what MusicPlayerSetPlayRateScalar does?
Yes - its a run time modification of the playback - thus setting this
to 2.0, would schedule the events twice as fast, setting this to 0.5
twice as slow. It doesn't NOT allow values of zero or less than zero.
It takes place immediately (well, the next time events are scheduled -
which is your next I/O)
Bill
It was a little unclear from the documentation as to whether this
callback would take effect immediately and even while the Sequence was
playing. I suppose I could have set up a demo project just to check,
but well... I thought it'd be better coming from those who coded the
thing.
-mike
_______________________________________________
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.