Re: Creating MIDI type 0 files in iOS
Re: Creating MIDI type 0 files in iOS
- Subject: Re: Creating MIDI type 0 files in iOS
- From: T BkRl via Coreaudio-api <email@hidden>
- Date: Wed, 29 May 2019 18:32:26 +0000
- Thread-topic: Creating MIDI type 0 files in iOS
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 <coreaudio-api-bounces+krusete=email@hidden>
on behalf of Sven Thoennissen via Coreaudio-api <email@hidden>
Sent: Wednesday, May 29, 2019 2:16 PM
To: email@hidden
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
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