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