summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_time_axis.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-07-14 00:03:04 -0400
committerDavid Robillard <d@drobilla.net>2014-07-15 15:18:18 -0400
commitc3f9688c3737b5dea8bb2c0a12517998cbcc151a (patch)
tree762eaa9d519338b13ece1ffa467aeade023544bc /gtk2_ardour/midi_time_axis.cc
parentfe9f2b15b13ce1e8216305f4c3916582ab65f8df (diff)
Show 1-based channel numbers in MIDI controller automation menu.
This matches the numbers shown elsewhere, previously if you had a track set to e.g. channel 10, the controller menu items had "[9]" suffixes.
Diffstat (limited to 'gtk2_ardour/midi_time_axis.cc')
-rw-r--r--gtk2_ardour/midi_time_axis.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc
index af19c9b037..af3c73f67a 100644
--- a/gtk2_ardour/midi_time_axis.cc
+++ b/gtk2_ardour/midi_time_axis.cc
@@ -760,7 +760,7 @@ MidiTimeAxisView::add_single_channel_controller_item(Menu_Helpers::MenuList& ctl
Evoral::Parameter fully_qualified_param (MidiCCAutomation, chn, ctl);
ctl_items.push_back (
CheckMenuElem (
- string_compose ("<b>%1</b>: %2 [%3]", ctl, name, int (chn)),
+ string_compose ("<b>%1</b>: %2 [%3]", ctl, name, int (chn + 1)),
sigc::bind (
sigc::mem_fun (*this, &RouteTimeAxisView::toggle_automation_track),
fully_qualified_param)));