Skip to content

Commit

Permalink
Continue to play started metronome click even if track is paused.
Browse files Browse the repository at this point in the history
This fixes repeating the same buffer over and over again causing loud noise.
  • Loading branch information
daschuer committed Oct 8, 2024
1 parent f873f54 commit 0cf80e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/effects/backends/builtin/metronomeeffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ void MetronomeEffect::processChannel(
nextClickStart = bufferEnd - beatToBufferEnd;
}
} else {
// no transport, nothing to do.
// no transport, continue until the current click has been fully played
if (gs->m_framesSinceClickStart < clickSize) {
gs->m_framesSinceClickStart += engineParameters.framesPerBuffer();
}
return;
}
} else {
Expand Down

0 comments on commit 0cf80e4

Please sign in to comment.