From 2312e4df0978cac638da06121ea68e41b4ede722 Mon Sep 17 00:00:00 2001 From: Andrew Madsen Date: Thu, 10 Mar 2016 14:12:56 -0700 Subject: [PATCH] MIKMIDISequencer now ignores calls to -recordMIDICommand during pre-roll time. --- Source/MIKMIDISequencer.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/MIKMIDISequencer.m b/Source/MIKMIDISequencer.m index 3c9867e8..e314678c 100644 --- a/Source/MIKMIDISequencer.m +++ b/Source/MIKMIDISequencer.m @@ -535,6 +535,7 @@ - (void)prepareForRecordingWithPreRoll:(BOOL)includePreRoll - (void)recordMIDICommand:(MIKMIDICommand *)command { if (!self.isRecording) return; + if (self.currentTimeStamp < 0) return; // In pre-roll MIDITimeStamp midiTimeStamp = command.midiTimestamp; MusicTimeStamp musicTimeStamp = [self.clock musicTimeStampForMIDITimeStamp:midiTimeStamp];