Re: MusicEventIterator & always returning kMusicEventType_Meta
Re: MusicEventIterator & always returning kMusicEventType_Meta
- Subject: Re: MusicEventIterator & always returning kMusicEventType_Meta
- From: Bill Stewart <email@hidden>
- Date: Fri, 16 May 2003 10:39:48 -0700
The file default behaviour is to load the file in exactly as it is
*except* for tempo and time sig events - they are both put into the
tempo track...
Bill
On Thursday, May 15, 2003, at 08:23 PM, Matt Handley wrote:
Hmm...then does loading an smf file reorder the tracks in the midi
file? Or, put another way, are the tracks in the midi file the same as
the tracks in the MusicPlayer?
Matt
On Thursday, May 15, 2003, at 08:33 PM, Bill Stewart wrote:
What track are you iterating over - perhaps it is the TempoTrack and
it only has meta events in it?
On Wednesday, May 14, 2003, at 07:03 AM, Matt Handley wrote:
Why does this code always switch to the kMusicEventType_Meta case?
Also, eventTime is always 0. Why is that?
Matt
while (hasCurrentEvent)
{
MusicEventIteratorGetEventInfo(iter,&eventTime,&eventType,NULL,NULL);
switch (eventType)
{
case kMusicEventType_Meta:
printf("Playing Meta message\n");
break;
case kMusicEventType_MIDINoteMessage:
printf("Playing Note message\n");
break;
case kMusicEventType_MIDIChannelMessage:
printf("Playing Channel message\n");
break;
case kMusicEventType_MIDIRawData:
printf("Playing Raw message\n");
break;
default:
printf("Playing some other message\n");
break;
}
if ((eventTime > time) || !iter)
break;
MusicEventIteratorNextEvent(iter);
MusicEventIteratorHasCurrentEvent(iter, &hasCurrentEvent);
}
_______________________________________________
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.
--
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.