diff options
author | nick_m <mainsbridge@gmail.com> | 2016-06-14 03:21:52 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-07-10 02:18:36 +1000 |
commit | 2d5238d87581bc0ff9dcaaa8aad9e255b5d9c370 (patch) | |
tree | 0b6d271f2b8a6284004d28f613b5cc9afdda53ca /gtk2_ardour/region_view.cc | |
parent | 0d050de94e3ae5a1a0dc36114df1995b042f3b80 (diff) |
Make some musical operations on music-locked regions operate in beats.
- use exact beats to determine frame position.
- see comments in tempo.cc for more.
- this hasn't been done for split yet, but dragging and
trimming are supported.
Diffstat (limited to 'gtk2_ardour/region_view.cc')
-rw-r--r-- | gtk2_ardour/region_view.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/region_view.cc b/gtk2_ardour/region_view.cc index a62d000abc..b9648bbbc3 100644 --- a/gtk2_ardour/region_view.cc +++ b/gtk2_ardour/region_view.cc @@ -819,7 +819,7 @@ RegionView::update_coverage_frames (LayerDisplay d) } bool -RegionView::trim_front (framepos_t new_bound, bool no_overlap) +RegionView::trim_front (framepos_t new_bound, bool no_overlap, const int32_t& sub_num) { if (_region->locked()) { return false; @@ -836,7 +836,7 @@ RegionView::trim_front (framepos_t new_bound, bool no_overlap) return false; } - _region->trim_front (speed_bound); + _region->trim_front (speed_bound, sub_num); if (no_overlap) { // Get the next region on the left of this region and shrink/expand it. |