I don’t know of any way to save a type 0 MIDI file without trickery on iOS. What kind of disruption are you worried about? If the two tracks finish recording it should be trivial to merge the tracks and dispose of the non-master track I would think? But I’m not exactly sure what the use case is for this so I’m not sure I can tailor the answer to your needs as well as I could.
________________________________ From: Coreaudio-api <[email protected]> on behalf of Sven Thoennissen via Coreaudio-api <[email protected]> Sent: Wednesday, May 29, 2019 2:16 PM To: [email protected] Subject: Creating MIDI type 0 files in iOS 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/krusete%40gmail.com This email sent to [email protected]
_______________________________________________ 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]
