diff --git a/src/core/actions/actionRecorder.cpp b/src/core/actions/actionRecorder.cpp index 3dd658328..0892f51a5 100644 --- a/src/core/actions/actionRecorder.cpp +++ b/src/core/actions/actionRecorder.cpp @@ -199,7 +199,7 @@ void ActionRecorder::recordMidiAction(ID channelId, int note, float velocity, Fr /* Avoid frame overflow. */ - const Frame overflow = f2 - framesInLoop; + const Frame overflow = f2 - framesInLoop + 1; if (overflow > 0) { f2 -= overflow;