diff options
author | David Robillard <d@drobilla.net> | 2013-01-20 08:56:00 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-20 08:56:00 +0000 |
commit | 4e6d0c9e61b62931a4a2120b548f0ff02a966351 (patch) | |
tree | 17c395d18338fb92d7af62fa635a8e957d523f93 /gtk2_ardour/midi_region_view.cc | |
parent | 0ebad4279b765d3fbe85649e9ef29e5b61c1d162 (diff) |
Show matching controller name in automation lane header.
Completely eliminate static MIDI controller name code.
Reduce dependency on midnam_patch.h (which would have saved me several hours if I did it earlier).
Store controller name numbers as an integer.
Keep controller names in a map keyed by int instead of a list for fast lookup.
More cleanup of MIDI::Name code.
git-svn-id: svn://localhost/ardour2/branches/3.0@13927 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_region_view.cc')
-rw-r--r-- | gtk2_ardour/midi_region_view.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc index acd63469c6..542894af81 100644 --- a/gtk2_ardour/midi_region_view.cc +++ b/gtk2_ardour/midi_region_view.cc @@ -1820,10 +1820,9 @@ MidiRegionView::add_canvas_patch_change (MidiModel::PatchChangePtr patch, const displaytext, height, x, 1.0, - instrument_info(), + instrument_info(), patch, - active_channel) - ); + active_channel)); if (patch_change->width() < _pixel_width) { // Show unless patch change is beyond the region bounds |