From b2190cc4ffeda276eecb569057dc5ef1080836c6 Mon Sep 17 00:00:00 2001 From: nick_m Date: Wed, 31 Aug 2016 22:45:25 +1000 Subject: [PATCH] TempoMap::pulse_at_frame() handles separated musical sections as per beat_at_frame(). --- libs/ardour/tempo.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc index 2dad0bb354..3a938c54d4 100644 --- a/libs/ardour/tempo.cc +++ b/libs/ardour/tempo.cc @@ -1706,6 +1706,10 @@ TempoMap::pulse_at_frame_locked (const Metrics& metrics, const framepos_t& frame if (prev_t && t->frame() > frame) { /*the previous ts is the one containing the frame */ const double ret = prev_t->pulse_at_frame (frame, _frame_rate); + /* audio locked section in new meter*/ + if (t->pulse() < ret) { + return t->pulse(); + } return ret; } prev_t = t;