From 83705d19b278dcc6421b306434dc4630a7f7bea0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 14 Jul 2014 00:03:04 -0400 Subject: [PATCH] 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. --- gtk2_ardour/midi_time_axis.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc index aa057d98c6..ab9ce0c99f 100644 --- a/gtk2_ardour/midi_time_axis.cc +++ b/gtk2_ardour/midi_time_axis.cc @@ -757,7 +757,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 ("%1: %2 [%3]", ctl, name, int (chn)), + string_compose ("%1: %2 [%3]", ctl, name, int (chn + 1)), sigc::bind ( sigc::mem_fun (*this, &RouteTimeAxisView::toggle_automation_track), fully_qualified_param)));