multi-track sequencing with MusicPlayer
multi-track sequencing with MusicPlayer
- Subject: multi-track sequencing with MusicPlayer
- From: "chris corbell"<email@hidden>
- Date: Mon, 09 Dec 2002 10:36:59 -0800
I'm working with the MusicPlayer / MusicSequence API and I'm
hoping to gain some insight into its multi-track implementation.
In using the MusicTrack facilities of MusicSequence I think there
are limitations with the default setup:
- Tracks are just lists of events sent to the same MusicDevice unit, so
beyond the given track parameters (loop, mute, solo) there is no
independent control over AudioUnit attributes for each graph, e.g.
reverb, mix volume, or additional inserted units.
- Because all tracks map to the same MusicDevice, the only way to
use different instrument sounds is to maintain different MIDI-channel
assignments for each track as the sample code does; this will limit
the number of tracks one can use with different instruments in a
single MusicSequence.
I guess my first question is, are the above observations correct
for the default MusicPlayer/MusicSequence.
The second question is, what is the best way to more fully implement
multi-track sequencing? Here are the ideas I've considered:
1) Use a separate MusicSequence for each track. Each will then have
its own independent MusicDevice->DefaultOutput graph association.
In this sense the MusicPlayer becomes a mixer of virtual synth channels,
each with its own AUGraph and independent sequencing capability.
2) Modify a sequence's AUGraph directly to insert additional parallel
MusicDevice-DefaultOutputs for each track, re-associating a unique
node with each MusicTrack. (Does AUGraph support this?)
Are both approaches possible, and if so is one more in keeping with
MusicPlayer design? Also, would either approach break any MusicPlayer
features such as SMF export? Finally is there a better approach?
Thanks for help,
Chris
_______________________________________________
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.