Re: MusicTimeStamp
Re: MusicTimeStamp
- Subject: Re: MusicTimeStamp
- From: Christopher Corbell <email@hidden>
- Date: Wed, 22 Oct 2003 15:52:54 -0700
On Wednesday, October 22, 2003, at 01:41 PM, Craig Bakalian wrote:
Hi,
What is the proper way to set the MusicTimeStamp when using the
MusicTrackNewMIDINoteEvent(MusicTrack inTrack, MusicTimeStamp
inTimeStamp, const MIDINoteMessage *inMessage); method? If I am in
Cocoa can I use the NSTimer? Or do I need to use something else?
[....]
Craig Bakalian
www.eThinkingCap.com
The MusicTimeStamp is not the same as a MIDITimeStamp.
The MusicTimeStamp is just a Float64; it units is beats,
and it's just relative to the start of the song.
You can convert from MusicTimeStamp to host time with
functions in MusicPlayer.h for a music sequence that's
playing. But if you're just generating a sequence, you
can manipulate a MusicTimeStamp variable directly and
pass your variable to MusicTrackNewMIDINoteEvent().
Hope that helps...
Christopher
_______________________________________________
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.