iOS How do we create a valid MusicTrack?

Chirone

macrumors 6502
I have to create a music track based on user input and decided that the MIDI route would be suitable.
However I have a problem.
I found this thread here
http://stackoverflow.com/questions/...nce-to-mid-file-using-musicsequencefilecreate
This guy says he made a music track but couldn't save it to disk properly, so I took his code and corrected that part but I get an error -10846, which I think is an invalid track. The .mid file is invalid too.

Does anyone know how to create a valid MusicSequence in code?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.
Back
Top