diff options
author | nick_m <mainsbridge@gmail.com> | 2016-09-23 05:06:03 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-09-23 05:06:03 +1000 |
commit | 4270569528c8972ae00060b4d52668deaeb35ea7 (patch) | |
tree | 8fec7d82c8c33554a77366d2c1e2556b36825482 /gtk2_ardour/midi_region_view.h | |
parent | 080e7755a614a71e8a2dcd97fb7310fc3401e5ca (diff) |
Fix bug where drawing long notes placed the new note on the previous snap line.
- NoteCreateDrag already applies this shift, so it was
always applied twice to the note start frame.
Diffstat (limited to 'gtk2_ardour/midi_region_view.h')
-rw-r--r-- | gtk2_ardour/midi_region_view.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h index c79227d5a9..db769b44fc 100644 --- a/gtk2_ardour/midi_region_view.h +++ b/gtk2_ardour/midi_region_view.h @@ -325,8 +325,9 @@ public: * \param y vertical position in pixels * \param length duration of the note in beats * \param state the keyboard modifier mask for the canvas event (click). + * \param shift_snap true alters snap behavior to round down always (false if the gui has already done that). */ - void create_note_at (framepos_t t, double y, Evoral::Beats length, uint32_t state); + void create_note_at (framepos_t t, double y, Evoral::Beats length, uint32_t state, bool shift_snap); /** An external request to clear the note selection, remove MRV from editor * selection. @@ -508,7 +509,7 @@ private: bool _mouse_changed_selection; - Evoral::Beats snap_frame_to_grid_underneath (framepos_t p, int32_t divisions) const; + Evoral::Beats snap_frame_to_grid_underneath (framepos_t p, int32_t divisions, bool shift_snap) const; PBD::ScopedConnection _mouse_mode_connection; |