Hello,

I am trying to find a way to use the AudioToolbox functions (MusicSequence…) to 
create a type 0 MIDI file in my iOS app.
It looks like this is not possible. Can anyone confirm or deny this?

I have loaded a MIDI type 0 file with the function MusicSequenceFileLoadData() 
and flag kMusicSequenceLoadSMF_PreserveTracks.
This function creates 1 tempo track and 1 music track.
However, saving this sequence with MusicSequenceFileCreateData() results in a 
type 1 file.

It appears the function MusicSequenceFileCreateData() only creates type 1 files.

Is there a proper way (or a trick) to make this function save a type 0 file? 
(e.g. merging the two tracks somehow?)
I suspect I could try and merge the tempo track with the music track, and then 
dispose of the tempo track… though I am hesitating because it might disrupt 
internals.

Thanks,
Sven
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to