• 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: How to print individual MusicTrack events?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to print individual MusicTrack events?


  • Subject: Re: How to print individual MusicTrack events?
  • From: Yevgeniy Goldberg <email@hidden>
  • Date: Fri, 23 Mar 2007 21:36:06 -0500

Thanks Bill!

type=kMusicEventType_MIDIChannelMessage;
NewMusicEventIterator(track,&iter);
Boolean hasCurrentEvent;
MusicEventIteratorHasCurrentEvent(iter, &hasCurrentEvent);
 while (hasCurrentEvent) {
 MusicEventIteratorGetEventInfo(iter,&timeOfEvent,&type,&d,&eventData);
 printf("Current music event: %d\n",eventData);
 MusicEventIteratorNextEvent (iter);
 MusicEventIteratorHasCurrentEvent(iter, &hasCurrentEvent);
 }

and got this output:

Current music event: 22

I'm pretty sure I'm doing some basic things incorrectly.
I was desperately trying to find any working examples and failed.
What is the data type of myEvent should be?

Also, could you, please, point me to a proper usage example of MusicTrackNewExtendedControlEvent?

What I'm trying to do is to read individual events as they occur and insert instrument and.or bank change events in certain positions.
Your help is greatly appreciated.

-Eugene

On Mar 23, 2007, at 9:13 PM, William Stewart wrote:


 _______________________________________________
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

References: 
 >How to print individual MusicTrack events? (From: Yevgeniy Goldberg <email@hidden>)
 >Re: How to print individual MusicTrack events? (From: William Stewart <email@hidden>)

  • Prev by Date: Re: How to print individual MusicTrack events?
  • Next by Date: Getting name of AudioUnit host
  • Previous by thread: Re: How to print individual MusicTrack events?
  • Next by thread: Re: How to print individual MusicTrack events?
  • Index(es):
    • Date
    • Thread