Re: MusicPlayer + MusicSequenceSetUserCallback
Re: MusicPlayer + MusicSequenceSetUserCallback
- Subject: Re: MusicPlayer + MusicSequenceSetUserCallback
- From: Skinny Tod <email@hidden>
- Date: Thu, 14 Jul 2011 19:42:41 -0400
At 10:32 AM -0400 7/13/11, David Hicks wrote:
>So I'm just speculating, but I think it might work to use the
>MusicEventIterator (each of which gets associated with a track, as from a
>MusicSequence).
>The MusicTrack API doesn't seem to allow you to get the individual events,
>nor does the MusicSequence. That seems to leave the MusicEventIterator.
>I've seen some postings about them on this list, so do a search and see.
>The most useful method would probably be this one:
>
>MusicEventIteratorGetEventInfo
>
>Gets information about the event at a music event iterator's current position.
@ visualizing midi notes coming from MusicPlayer -
Took some doing but I was able to get the MusicEventIterator method to
work. (got the AURenderCallback to work too but that doesn't give me any
useful midi note info). A small complication was that the MusicPlayer only
give noteOn events and a duration so one has to manage the noteOff based on
player time, note event time + note duration.
My expectation was that there would be some simple callback method to get
note events but I guess it's more complicated than that - maybe things are
pre-rendered/buffered or something for performance reasons.
_______________________________________________
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