Skip to content

Commit

Permalink
Fix unreachable MIDI action if added manually in the Action Editor ve…
Browse files Browse the repository at this point in the history
…ry close to the loop edge
  • Loading branch information
gvnnz committed Dec 4, 2024
1 parent 00bbe01 commit d1f8887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/actions/actionRecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d1f8887

Please sign in to comment.