Creating MIDI type 0 files in iOS
Creating MIDI type 0 files in iOS
- Subject: Creating MIDI type 0 files in iOS
- From: Sven Thoennissen via Coreaudio-api <email@hidden>
- Date: Wed, 29 May 2019 20:16:26 +0200
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden