diff options
author | nick_m <mainsbridge@gmail.com> | 2016-08-31 03:27:35 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-08-31 23:12:11 +1000 |
commit | c0f89e99a26c6c7b4f172632862c4e22dfdd80cc (patch) | |
tree | 14723c2d142929f1ec49d5915c4821558ace7e11 /gtk2_ardour/midi_region_view.h | |
parent | 086096b46531d19f36ed7a0590df0f2487cc4f18 (diff) |
MidiRegionView uses quarter note snapping.
- also ensures poiinter ghost note respects the snap modifier.
Diffstat (limited to 'gtk2_ardour/midi_region_view.h')
-rw-r--r-- | gtk2_ardour/midi_region_view.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h index ac2cd4b8d3..c79227d5a9 100644 --- a/gtk2_ardour/midi_region_view.h +++ b/gtk2_ardour/midi_region_view.h @@ -324,9 +324,9 @@ public: * \param t time in frames relative to the position of the region * \param y vertical position in pixels * \param length duration of the note in beats - * \param snap_t true to snap t to the grid, otherwise false. + * \param state the keyboard modifier mask for the canvas event (click). */ - void create_note_at (framepos_t t, double y, Evoral::Beats length, bool snap_t); + void create_note_at (framepos_t t, double y, Evoral::Beats length, uint32_t state); /** An external request to clear the note selection, remove MRV from editor * selection. @@ -462,8 +462,8 @@ private: void update_sustained (Note *, bool update_ghost_regions = true); void update_hit (Hit *, bool update_ghost_regions = true); - void create_ghost_note (double, double); - void update_ghost_note (double, double); + void create_ghost_note (double, double, uint32_t state); + void update_ghost_note (double, double, uint32_t state); MidiListEditor* _list_editor; bool _no_sound_notes; @@ -494,7 +494,7 @@ private: void remove_ghost_note (); void mouse_mode_changed (); - void enter_internal (); + void enter_internal (uint32_t state); void leave_internal (); void hide_verbose_cursor (); @@ -508,7 +508,7 @@ private: bool _mouse_changed_selection; - framepos_t snap_frame_to_grid_underneath (framepos_t p, framecnt_t &) const; + Evoral::Beats snap_frame_to_grid_underneath (framepos_t p, int32_t divisions) const; PBD::ScopedConnection _mouse_mode_connection; |