NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,
NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *midiPath = [documentsDirectory
stringByAppendingPathComponent:@"test.mid"];
NSURL* url = "" style="font-variant-ligatures: no-common-ligatures; color: #c35900" class="">NSURL alloc] initFileURLWithPath:midiPath];
VRC(MusicSequenceFileCreate(sequence, (__bridge CFURLRef)url, kMusicSequenceFile_MIDIType, kMusicSequenceFileFlags_EraseFile, 0));
MusicSequence testSequence;
VRC(NewMusicSequence(&testSequence));
VRC(MusicSequenceFileLoad(testSequence, (__bridge CFURLRef)url, kMusicSequenceFile_MIDIType, 0));