From 26bbffda7f5da9d1b75984ca5d5c5e7d74f8c5ae Mon Sep 17 00:00:00 2001 From: nick_m Date: Tue, 29 Mar 2016 22:09:39 +1100 Subject: [PATCH] Tempo cramps - do not allow tempos to share the same frame. --- libs/ardour/tempo.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc index ce9a8d9513..2f1678467e 100644 --- a/libs/ardour/tempo.cc +++ b/libs/ardour/tempo.cc @@ -1988,6 +1988,11 @@ TempoMap::check_solved (Metrics& metrics, bool by_frame) if ((by_frame && t->frame() < prev_ts->frame()) || (!by_frame && t->pulse() < prev_ts->pulse())) { return false; } + + if (t->frame() == prev_ts->frame()) { + return false; + } + /* precision check ensures pulses and frames align independent of lock style.*/ if (by_frame && t->frame() != prev_ts->frame_at_pulse (t->pulse(), _frame_rate)) { return false;