Just to add a little more to my earlier comment... Here's info from
Apple's lists:
Have a look at AudioToolbox/MusicPlayer.h.
A typical sequence of function calls to generate a MIDI File:
NewMusicSequence
MusicSequenceNewTrack
MusicTrackNewMIDINoteEvent
MusicTrackNewMIDIChannelEvent
MusicSequenceSaveMIDIFile
MusicSequenceDispose
Then, in your RB app, all you have to do is keep track of a list of
events. This can be hand-built as it sounds like you're doing, or it
can be acquired realtime in a callback (i.e. recording). Plus, then
you're not limited to the NotePlayer. You can route MIDI from a file
to ouboard gear, a SoundFont file, or even out to the network.
On May 8, 2006, at 2:30 PM, E. Tejkowski wrote:
You didn't say if you want to do this in OS X, but if you do, you'd
be wise to look into CoreMIDI/CoreAudio. They handle a lot of this
messiness for you.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>