Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to print individual MusicTrack events?



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:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.