• 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: Sequence position display
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sequence position display


  • Subject: Re: Sequence position display
  • From: Bill Stewart <email@hidden>
  • Date: Wed, 20 Aug 2003 22:08:15 -0700

On Wednesday, August 20, 2003, at 12:32 PM, Patrick Gostovic wrote:

Hi.

I'm hoping to get some ideas on how to implement a song position display (i.e. bars/beats or time) for a sequencing app. I'm using the MusicPlayer api, and my first hope was that I would be able to specify some kind of notification callback function. I don't see anything in the api for that (correct me if I'm wrong), so as far as I can tell I have two options: 1) poll the MusicPlayer fairly often and update the display as needed,

You are going to redraw your display at some frequence - say 20 times a second... That's easy.. just set up a timer for yourself, and ask it its times 20 times a second. The GetTime API on the player is a very cheap call

Bill

or 2) create a metronome track in the sequence and aim it at MIDIEndpoint that can advance the display. The first option seems clumsy to me, and the second option seems like overkill. Is option 2 an expensive way to achieve this? I don't have a lot of experience with CoreMIDI so I don't know.

Any thoughts?

Thanks.

pg
_______________________________________________
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.
References: 
 >Sequence position display (From: Patrick Gostovic <email@hidden>)

  • Prev by Date: Re: GetParameterValueStrings
  • Next by Date: Re: Bundles, CFStrings and release/retain
  • Previous by thread: Re: Sequence position display
  • Next by thread: SDK version constant
  • Index(es):
    • Date
    • Thread