Finding the MIDI channel of a MusicSequence track?
Finding the MIDI channel of a MusicSequence track?
- Subject: Finding the MIDI channel of a MusicSequence track?
- From: Brian Sheehan <email@hidden>
- Date: Thu, 2 Feb 2006 23:38:55 +0000
Hello all,
I'm using the following to read in a standard MIDI file (which uses
several channels), and place it in a MusicSequence:
MusicSequence midiSequence;
MusicSequenceLoadSMFWithFlags(midiSequence, &midiFileFSRef,
kMusicSequenceLoadSMF_ChannelsToTracks);
Note the use of the "kMusicSequenceLoadSMF_ChannelsToTracks" flag
Is there a way to find out what channel was assigned to each track
created, especially in the case where I don't know what channels were
present in the MIDI file to start with?
I know that in general it may not make sense to say a MusicSequence
track corresponds to a particular MIDI channel, but I thought in this
case it would be possible to find out. The reason I want to know is
because I want to add MIDI events to the tracks, but only for specific
channels, e.g. MIDI control messages to change volume on certain
channels.
any help is appreciated,
Brian
_______________________________________________
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