Re: MIDI data in an AIFF file
Re: MIDI data in an AIFF file
- Subject: Re: MIDI data in an AIFF file
- From: Erick Tejkowski <email@hidden>
- Date: Sun, 27 Feb 2005 02:20:36 -0600
I don't have a definitive answer for you, but I think I know where you can find the answer. Download "
Dent du Midi", which converts a multitrack midi file to multiple AIFF files (one for each track). Each AIFF file has embedded MIDI. Open one of the resulting AIFF files and check to see which chunk they are using to embed the MIDI data. it's been awhile since I investigated this, but you probably just add another (MIDI) chunk to an AIFF file. Offsets will have to change, obviously, but I don't think there is much more to it. You mention CoreAudio, but I think this would be overkill. You should be able to accomplish this task with simple file I/O. Just write the files by hand. It's not that complex, especially if you already have the MIDI data.
Best,
Erick
On Feb 26, 2005, at 9:32 AM, Craig Bakalian wrote:
After some gleaning and careful reading I have come to the conclusion that it is possible to get MIDI data into a AIFF file. Yet, I do not know how to do it, especially with CoreAudio. I understand that this is the structure that must be made
#define MIDIDataID 'MIDI'
type struct{
ID chunkID;
long chunkSize;
unsigned char MIDIdata[ ];
} MIDIDataChunk;
ID is 4 ASCII bytes "described by Interchange File Format". But, now what? Does anyone have any other information about pushing MIDI data into an AIFF file?
_______________________________________________
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