Re: Finding the MIDI channel of a MusicSequence track?
Re: Finding the MIDI channel of a MusicSequence track?
- Subject: Re: Finding the MIDI channel of a MusicSequence track?
- From: William Stewart <email@hidden>
- Date: Thu, 2 Feb 2006 16:17:31 -0800
On 02/02/2006, at 3:38 PM, Brian Sheehan wrote:
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?
Just look at the tracks' events in the sequence after the Load
operation and see which channel is in which track.
Bill
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
--
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
________________________________________________________________________
__
_______________________________________________
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