diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-08 12:17:33 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-08 12:17:33 +0000 |
commit | ef213e49a7e4eb7083696fd7e953c8f11e492849 (patch) | |
tree | 027d7db89742650050164596e00f04dd2108d3b5 /gtk2_ardour/midi_region_view.h | |
parent | f13119d2e111e7f295330560478ed6090f27a1f6 (diff) |
Grey-out patch changes on inactive channels rather than not
plotting them at all (part of #4207).
git-svn-id: svn://localhost/ardour2/branches/3.0@12600 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_region_view.h')
-rw-r--r-- | gtk2_ardour/midi_region_view.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h index a6750ef123..f47c94a1a9 100644 --- a/gtk2_ardour/midi_region_view.h +++ b/gtk2_ardour/midi_region_view.h @@ -118,11 +118,7 @@ public: void cut_copy_clear (Editing::CutCopyOp); void paste (framepos_t pos, float times, const MidiCutBuffer&); - /** Add a new patch change flag to the canvas. - * @param patch the patch change to add - * @param the text to display in the flag - */ - void add_canvas_patch_change (ARDOUR::MidiModel::PatchChangePtr patch, const std::string& displaytext); + void add_canvas_patch_change (ARDOUR::MidiModel::PatchChangePtr patch, const std::string& displaytext, bool); /** Look up the given time and channel in the 'automation' and set keys accordingly. * @param time the time of the patch change event @@ -466,7 +462,7 @@ private: void maybe_select_by_position (GdkEventButton* ev, double x, double y); void get_events (Events& e, Evoral::Sequence<Evoral::MusicalTime>::NoteOperator op, uint8_t val, int chan_mask = 0); - void display_patch_changes_on_channel (uint8_t); + void display_patch_changes_on_channel (uint8_t, bool); void connect_to_diskstream (); void data_recorded (boost::weak_ptr<ARDOUR::MidiSource>); |