Use the stored beat to recalculate pulse when setting position as sub_num is irrelevent.
authornick_m <mainsbridge@gmail.com>
Thu, 1 Sep 2016 19:13:53 +0000 (05:13 +1000)
committernick_m <mainsbridge@gmail.com>
Thu, 1 Sep 2016 19:13:53 +0000 (05:13 +1000)
libs/ardour/region.cc

index 05f79271d5366fac5121fa109f8e0583132f6ad4..3bd0bd273cbd5076610c01b284f435eed2f29ab5 100644 (file)
@@ -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