Skip to content

Commit

Permalink
Fixed slotLoopHalve/Double
Browse files Browse the repository at this point in the history
  • Loading branch information
JoergAtGithub committed Feb 4, 2023
1 parent ffb3999 commit 8f35f9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/controls/loopingcontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,15 +346,15 @@ void LoopingControl::slotLoopHalve(double pressed) {
return;
}

slotBeatLoop(m_pCOBeatLoopSize->get() / 2.0, true, false);
m_pCOBeatLoopSize->set(m_pCOBeatLoopSize->get() / 2.0);
}

void LoopingControl::slotLoopDouble(double pressed) {
if (pressed <= 0.0) {
return;
}

slotBeatLoop(m_pCOBeatLoopSize->get() * 2.0, true, false);
m_pCOBeatLoopSize->set(m_pCOBeatLoopSize->get() * 2.0);
}

void LoopingControl::process(const double dRate,
Expand Down

0 comments on commit 8f35f9b

Please sign in to comment.