• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Finding the MIDI channel of a MusicSequence track?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Finding the MIDI channel of a MusicSequence track?
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: AudioUnits and Volume
  • Next by Date: Re: Finding the MIDI channel of a MusicSequence track?
  • Previous by thread: Re: AudioUnits and Volume
  • Next by thread: Re: Finding the MIDI channel of a MusicSequence track?
  • Index(es):
    • Date
    • Thread