diff options
author | David Robillard <d@drobilla.net> | 2014-12-28 20:23:52 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-12-28 20:23:52 -0500 |
commit | 606efb601c15fa966a3b34cbda07b2d05be8c5b0 (patch) | |
tree | 17879a763ec4dc09d01e04ac88b3995a6251f6f3 /gtk2_ardour/midi_region_view.h | |
parent | 12b18da8f6f27b804b36169927ec01d688de8d2c (diff) |
Show correct ghost hit for percussive tracks.
Diffstat (limited to 'gtk2_ardour/midi_region_view.h')
-rw-r--r-- | gtk2_ardour/midi_region_view.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h index 1cc833c91a..36e198abfa 100644 --- a/gtk2_ardour/midi_region_view.h +++ b/gtk2_ardour/midi_region_view.h @@ -410,7 +410,7 @@ private: Note** _active_notes; ArdourCanvas::Container* _note_group; ARDOUR::MidiModel::NoteDiffCommand* _note_diff_command; - Note* _ghost_note; + NoteBase* _ghost_note; double _last_ghost_x; double _last_ghost_y; ArdourCanvas::Rectangle* _step_edit_cursor; @@ -450,8 +450,10 @@ private: NoteBase* find_canvas_note (boost::shared_ptr<NoteType>); Events::iterator _optimization_iterator; - void update_note (Note *, bool update_ghost_regions = true); - void update_hit (Hit *); + void update_note (NoteBase*, bool update_ghost_regions = true); + 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); |