diff options
author | nick_m <mainsbridge@gmail.com> | 2016-10-10 03:39:57 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-10-10 03:39:57 +1100 |
commit | 4faf44588f806eac46b5c7ae5cc8058fc47da3f1 (patch) | |
tree | 5a54dd61694eb04e7f15650cc592eb54f84458f7 /gtk2_ardour/editor_drag.cc | |
parent | 631c8afc668f8b57af21ca85332ac8f012a3f59e (diff) |
Interpret start & length_beats properties as double rather than Evoral::Beats.
- Evoral::Beats operator!= would prevent an increment
of start_beats by intervals of less than a tick,
so its possible that other subtle problems
existed due to this kind of thing.
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index f7b75a5855..da9af5c73a 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -5584,7 +5584,7 @@ NoteDrag::total_dx (const guint state) const frameoffset_t const dx = _editor->pixel_to_sample (_drags->current_pointer_x() - grab_x()); /* primary note time */ - double const quarter_note_start = map.quarter_note_at_beat (_region->region()->beat() - _region->midi_region()->start_beats().to_double()); + double const quarter_note_start = map.quarter_note_at_beat (_region->region()->beat() - _region->midi_region()->start_beats()); frameoffset_t const n = map.frame_at_quarter_note (quarter_note_start + _primary->note()->time().to_double()); /* new time of the primary note in session frames */ |