From 62540fb5af6962553e7e2e7c9a11ad80a1752a4e Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 31 Oct 2022 16:58:56 -0600 Subject: [PATCH] tempo map: grid generation, fix use of barmod to insert bar points into return --- 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 6127e9f5ea..a903bb7a41 100644 --- a/libs/temporal/tempo.cc +++ b/libs/temporal/tempo.cc @@ -1993,7 +1993,7 @@ TempoMap::get_grid (TempoMapPoints& ret, superclock_t start, superclock_t end, u /* add point to grid, perhaps */ if (bar_mod != 0) { - if (bbt.is_bar() && (bar_mod == 1 || ((bbt.bars % bar_mod == 0)))) { + if (bbt.is_bar() && (bar_mod == 1 || ((bbt.bars % bar_mod == 1)))) { ret.push_back (TempoMapPoint (*this, metric, start, beats, bbt)); DEBUG_TRACE (DEBUG::Grid, string_compose ("G %1\t %2\n", metric, ret.back())); } else { @@ -2047,7 +2047,7 @@ TempoMap::get_grid (TempoMapPoints& ret, superclock_t start, superclock_t end, u */ if (bar_mod != 0) { - if (p->bbt().is_bar() && (bar_mod == 1 || ((p->bbt().bars % bar_mod == 0)))) { + if (p->bbt().is_bar() && (bar_mod == 1 || ((p->bbt().bars % bar_mod == 1)))) { ret.push_back (TempoMapPoint (*this, metric, p->sclock(), p->beats(), p->bbt())); DEBUG_TRACE (DEBUG::Grid, string_compose ("G %1\t %2\n", metric, ret.back())); } else {