MusicSequence implementation questions.
MusicSequence implementation questions.
- Subject: MusicSequence implementation questions.
- From: Andre Lipinski <email@hidden>
- Date: Mon, 11 Jun 2001 19:19:40 -0400
Hello!
A few questions please about MusicSequence:
If starting from a SMF, having loaded it and started playing to an
external MIDI device, a keyboard to be specific. If I choose to stop in
the middle, fiddle with some configuration on the keyboard, like change
the program/patch on a channel used by the sequence, mess with controller
states, like change the modulation on a channel; when I resume OS X's
playing of the sequence, will MusicSequence reset what I changed at the
keyboard before making noise? Also, if I resume play in the middle of a
note, will that note sound (again, but with a shorter duration, of course)
?
Is there a way to get a snap-shot of the sequence at a particular time
index, such as which notes are playing at that time, and the current state
of all used controllers? Looking at the API I can say that this is
something I'd have to work at to get, how about a MusicSequence function
to perform this?
Is there a way to get a stable pointer to an event even if the sequence
changes through inserting and deleting, moving and so on? I'm thinking
that I'd still have an internal representation of my own for the data
since I want to more about the event than just it's MIDI data, like is it
selected in a view of mine, and could use a stable pointer to the event.
Finally, hoping this isn't covered elsewhere, can MusicSequence control
playback of a purely audio track, such as an internalised copy of a CD
track via a note-less midi track with only controller info attached to an
audio unit fueled via the AU's callback function? If so, how do tempo
changes affect audio playback, if at all. This would be quite spiffy,
since it's the whole package!
Thanks,
Andre