How to get a MIDIPacket into a MusicTrack
How to get a MIDIPacket into a MusicTrack
- Subject: How to get a MIDIPacket into a MusicTrack
- From: Peter Stewart <email@hidden>
- Date: Mon, 6 Feb 2006 08:38:37 +0100
Hi,
I am writing a simple program so I can quickly play some notes on my
keyboard and save them to a file, just a way to learn CoreMIDI..
I am wondering if there is a simple way to "pipe" a MIDIEndpointRef
into a MusicTrack, or an easy way to add each MIDIPacket to a
MusicTrack. Do I have to "parse" each MIDIPacket and turn it into a
MIDINoteMessage, MIDIChannelMessage, etc. Or is there a simpler way?
Originally I was adding them all as MIDIRawData (thinking "well its
raw data coming in, this should take raw data going out") but that is
for Sysex messages..
Also my MIDI files all seem to end up being 4:11:xx long, what am I
doing wrong here? Is it a timestamp thing? I am converting
MIDITimeStamp to MusicTimeStamp, using AudioConvertHostTimeToNanos(),
I am not sure if this is correct though as I don't really know what
MusicTimeStamp is measured in.
thanks,
peter.
_______________________________________________
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