From 0e42868d358c83e3af73b2ceb0ecaa9e7969800b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 11 Apr 2025 11:21:22 -0600 Subject: [PATCH] fix arithmetic error in Meter::to_quarters --- libs/temporal/tempo.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/temporal/tempo.cc b/libs/temporal/tempo.cc index 73d60e5a34..eae50b55e5 100644 --- a/libs/temporal/tempo.cc +++ b/libs/temporal/tempo.cc @@ -403,8 +403,8 @@ Meter::to_quarters (Temporal::BBT_Offset const & offset) const { int64_t ticks = 0; - ticks += (Beats::PPQN * offset.bars * _divisions_per_bar * 4) / _note_value; - ticks += (Beats::PPQN * offset.beats * 4) / _note_value; + ticks += (Beats::PPQN * offset.bars * _divisions_per_bar * _note_value) / 4; + ticks += (Beats::PPQN * offset.beats * _note_value) / 4; /* "parts per bar division" */