Skip to content

Commit

Permalink
MIKMIDISequencer now ignores calls to -recordMIDICommand during pre-r…
Browse files Browse the repository at this point in the history
…oll time.
  • Loading branch information
Andrew Madsen committed Mar 10, 2016
1 parent 40a016e commit 2312e4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/MIKMIDISequencer.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 2312e4d

Please sign in to comment.