Re: A Couple of Midi Track Questions
Re: A Couple of Midi Track Questions
- Subject: Re: A Couple of Midi Track Questions
- From: William Stewart <email@hidden>
- Date: Thu, 22 Apr 2004 19:29:06 -0700
On 22/04/2004, at 6:26 PM, Peter Zegelin wrote:
>
I've noticed that if a Midi file contains tracks that are completely
>
empty then CoreAudio doesn't include them in its list of tracks when
>
the file is loaded. Is this correct? I'm also wondering if its a
>
feature or a bug? It sort of makes sense, but it does mean that
>
different apps will show different numbers of tracks in a file
>
depending on whether they use CoreAudio and follow this 'standard' or
>
not.
By design... we don't have empty tracks if the MIDI file's track was
empty.
>
Secondly a question about MusicSequenceLoadSMFWithFlags and the
>
facility of splitting individual channels into their own tracks with
>
the kMusicSequenceLoadSMF_ChannelsToTracks flag. Are these extra
>
tracks added to the end of the track list after all 'real' tracks are
>
read in or are they added to the list straight after the actual track
>
is added to the list?
I'm not sure if I understand the question... But here's what it does.
It will parse the file into one sequence track per midi channel found
in the file. You won't have tracks with duplicate channels.
Meta events and SysEx are put into a separate track. So, you'd end up
with:
Tempo Track
Tracks 0 < N as there are MIDI channels in the file (so max will be 16
tracks here)
Track N - meta/sys ex
Hope that helps
Bill
>
>
Thanks in advance!
>
>
Peter
>
_______________________________________________
>
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
________________________________________________________________________
__
Culture Ship Names:
Ravished By The Sheer Implausibility Of That Last Statement
I said, I've Got A Big Stick [OU]
Inappropiate Response [OU]
Far Over The Borders Of Insanity And Still Accelerating [Eccentric]
________________________________________________________________________
__
_______________________________________________
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.