kAudioUnitProperty_HostCallbacks
kAudioUnitProperty_HostCallbacks
- Subject: kAudioUnitProperty_HostCallbacks
- From: Robert Grant <email@hidden>
- Date: Thu, 25 Mar 2004 08:26:52 -0500
I'm trying to host an AU that relies on getting at least the beat and
tempo, and potentially the musical time and location - and needless to
say it's not happy, but I'm pretty stumped on how to make it happy.
So I'm going to start a thread to hopefully get the info I need and
I'll post a summary to the Swiki
HostCallback_GetBeatAndTempo.outCurrentBeat - tells the AU the current
beat number where zero is the first beat of the song and the beat
number increments until playback is stopped. The increment happens on
the next beat and between beats the last beat number is returned? So
it's
Beat - 0
0
0
.
.
0
Beat - 1
1
.
.
1
Beat - 2
etc
Is that correct? Or should I be using the fractional beat value to
indicate how far past the beat I am?
HostCallback_GetMusicalTimeLocation.outCurrentMeasureDownBeat - in a
simple case whether the time-signature doesn't change this would be:
( (UInt32)outCurrentBeat / (UInt32)outTimeSig_Numerator ) *
(UInt32)outTimeSig_Numerator
Thanks for any clarification,
Robert.
_______________________________________________
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.