Skip to content

Commit

Permalink
Round BPM values when syncing with project tempo
Browse files Browse the repository at this point in the history
Co-authored-by: Dalton Messmer <33463986+messmerd@users.noreply.github.com>
  • Loading branch information
sakertooth and messmerd authored Aug 25, 2023
1 parent b133c96 commit 9e4280e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/TapTempo/TapTempoView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ TapTempoView::TapTempoView(TapTempo* plugin)
connect(syncButton, &QPushButton::clicked, this, [this]() {
const auto& tempoModel = Engine::getSong()->tempoModel();
if (m_plugin->m_bpm < tempoModel.minValue() || m_plugin->m_bpm > tempoModel.maxValue()) { return; }
Engine::getSong()->setTempo(m_plugin->m_bpm);
Engine::getSong()->setTempo(std::round(m_plugin->m_bpm));
});

hide();
Expand Down

0 comments on commit 9e4280e

Please sign in to comment.