Re: schedule AU parameters with a mTimeStamp?
Re: schedule AU parameters with a mTimeStamp?
- Subject: Re: schedule AU parameters with a mTimeStamp?
- From: William Stewart <email@hidden>
- Date: Fri, 7 Apr 2006 15:30:23 -0700
On 07/04/2006, at 2:14 PM, Brian Whitman wrote:
On Apr 7, 2006, at 2:53 PM, William Stewart wrote:
In the SDK there are examples that utilise these API -
PlaySequence. This example reads in and constructs a MusicSequence
from a MIDI File. Of course, with this kind of source (MIDI File),
the events constructed are MIDI events; however this is not the
only thing a sequence can deal with. You can explicitly have
Parameter events (including ramped parameters), and target
different tracks of a sequence to different nodes (AU) of a graph.
You can also define and schedule your own events using the user
event type and callback.
Hi Bill, I played with this a bit and got it to mostly work. But
the timescale is in "beats" per a set bpm. I'd like my events to be
sample accurate.
The events are sample accurately scheduled.
Is this possible with the MusicSequence stuff? I imagine I could
set the bpm to 44100 * 60,
You don't need to do this I think. If you set the BPM to 60 your
track is seconds based. The beat time is specified with a
MusicTimeStamp (double), which gives you more than enough resolution
to schedule to a sample level
Bill
but I saw you have a hard limit on the length of a track at 1bn
beats-- so only ~377s. Am I trying to make MusicSequence do
something it shouldn't?
_______________________________________________
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
--
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
________________________________________________________________________
__
_______________________________________________
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