summaryrefslogtreecommitdiff
path: root/libs/ardour/region.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-09-02 05:13:53 +1000
committernick_m <mainsbridge@gmail.com>2016-09-02 05:13:53 +1000
commit658699e318a79bf619dbc8ab43bdb8168e8bd9d4 (patch)
tree66270e22b78341bdbcab009577c88fe19577e01e /libs/ardour/region.cc
parente689182a6a0155e789b9b7dbd58a96f4a6ed0d5e (diff)
Use the stored beat to recalculate pulse when setting position as sub_num is irrelevent.
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r--libs/ardour/region.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc
index 05f79271d5..3bd0bd273c 100644
--- a/libs/ardour/region.cc
+++ b/libs/ardour/region.cc
@@ -677,7 +677,7 @@ Region::set_position_internal (framepos_t pos, bool allow_bbt_recompute, const i
recompute_position_from_lock_style (sub_num);
} else {
/* MusicTime dictates that we glue to ardour beats. the pulse may have changed.*/
- _pulse = _session.tempo_map().exact_qn_at_frame (_position, sub_num) / 4.0;
+ _pulse = _session.tempo_map().pulse_at_beat (_beat);
}
/* check that the new _position wouldn't make the current