• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: MusicTimeStamp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >MusicTimeStamp (From: Craig Bakalian <email@hidden>)

  • Prev by Date: Re: AudioDevice AudioChannelLayout
  • Next by Date: Re: Audio Unit and Carbon Support
  • Previous by thread: MusicTimeStamp
  • Next by thread: MusicTimeStamp
  • Index(es):
    • Date
    • Thread