summaryrefslogtreecommitdiff
path: root/libs/ardour/tempo.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2017-01-06 01:59:47 +1100
committernick_m <mainsbridge@gmail.com>2017-01-06 01:59:47 +1100
commita196ce68fdc62ca327a22179780e7314ac5b71ac (patch)
tree3cfedbd89fb6453e5a0390a5bda35faadeba2686 /libs/ardour/tempo.cc
parent05c2e4ef9be1d04b3a9da34af41ef7fea8948bbe (diff)
ensure tempo lines use correct tempo type (constant/ramped)
Diffstat (limited to 'libs/ardour/tempo.cc')
-rw-r--r--libs/ardour/tempo.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc
index 7bb542fb51..cf269232d9 100644
--- a/libs/ardour/tempo.cc
+++ b/libs/ardour/tempo.cc
@@ -3957,7 +3957,9 @@ TempoMap::get_grid (vector<TempoMap::BBTPoint>& points,
const TempoSection tempo = tempo_section_at_minute_locked (_metrics, minute_at_frame (pos));
const MeterSection meter = meter_section_at_minute_locked (_metrics, minute_at_frame (pos));
const BBT_Time bbt = bbt_at_beat_locked (_metrics, cnt);
- points.push_back (BBTPoint (meter, tempo_at_minute_locked (_metrics, minute_at_frame (pos)), pos, bbt.bars, bbt.beats, tempo.c_func()));
+ const double c = (tempo.type() == TempoSection::Constant) ? 0.0 : tempo.c_func();
+
+ points.push_back (BBTPoint (meter, tempo_at_minute_locked (_metrics, minute_at_frame (pos)), pos, bbt.bars, bbt.beats, c));
++cnt;
}
} else {