summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_region_view.h
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-12-15 22:35:23 +1100
committernick_m <mainsbridge@gmail.com>2016-12-15 22:35:23 +1100
commitcfbcadc7efb3b29e452fd45ed114229e72dcc099 (patch)
treeb0b43f0a1f788beee1e903ad0587808490a9ce5b /gtk2_ardour/midi_region_view.h
parent714da0f68ea96e2449b1f7b7cd797819ef78541e (diff)
speed up patch change redisplay when using scroomer / adjusting height.
- zoom is still a bit slow.
Diffstat (limited to 'gtk2_ardour/midi_region_view.h')
-rw-r--r--gtk2_ardour/midi_region_view.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h
index a99881bc21..7c60c2a037 100644
--- a/gtk2_ardour/midi_region_view.h
+++ b/gtk2_ardour/midi_region_view.h
@@ -126,6 +126,7 @@ public:
void paste_internal (framepos_t pos, unsigned paste_count, float times, const MidiCutBuffer&);
void add_canvas_patch_change (ARDOUR::MidiModel::PatchChangePtr patch, const std::string& displaytext, bool);
+ void remove_canvas_patch_change (PatchChange* pc);
/** Look up the given time and channel in the 'automation' and set keys accordingly.
* @param time the time of the patch change event
@@ -462,6 +463,8 @@ private:
NoteBase* find_canvas_note (Evoral::event_id_t id);
Events::iterator _optimization_iterator;
+ boost::shared_ptr<PatchChange> find_canvas_patch_change (ARDOUR::MidiModel::PatchChangePtr p);
+
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);