Hey, that's slick. Would you happen to know if there's anything to
suss oout delta times? If there is, that solves the bulk of the hard
math...

--
Philip Regan
[EMAIL PROTECTED]
http://homepage.mac.com/pregan
REALBasic 2005r4, Applescript
Mac OS 10.3.9

On 5/8/06, E. Tejkowski <[EMAIL PROTECTED]> wrote:
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>



--
--
Philip Regan
[EMAIL PROTECTED]
http://homepage.mac.com/pregan
REALBasic 2005r4, Applescript
Mac OS 10.3.9
_______________________________________________
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>

Reply via email to