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];