Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MIDI data in an AIFF file



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:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden
References: 
 >MIDI data in an AIFF file (From: Craig Bakalian <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.