From ca28404a2ac7e1ec359ce375fc2b3c260f6c2391 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 11 Feb 2020 13:59:05 -0700 Subject: [PATCH] NOOP: line unwrapping and vertical spacing --- gtk2_ardour/midi_time_axis.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc index 979bc7cf83..5cb8138c16 100644 --- a/gtk2_ardour/midi_time_axis.cc +++ b/gtk2_ardour/midi_time_axis.cc @@ -1229,11 +1229,14 @@ MidiTimeAxisView::show_all_automation (bool apply_to_selection) // Show automation for all controllers named in midnam file boost::shared_ptr device_names = get_device_names(); - if (gui_property (X_("midnam-model-name")) != DEFAULT_MIDNAM_MODEL && - device_names && !device_names->controls().empty()) { + + if (gui_property (X_("midnam-model-name")) != DEFAULT_MIDNAM_MODEL && device_names && !device_names->controls().empty()) { + const std::string device_mode = gui_property (X_("midnam-custom-device-mode")); const uint16_t selected_channels = midi_track()->get_playback_channel_mask(); + for (uint32_t chn = 0; chn < 16; ++chn) { + if ((selected_channels & (0x0001 << chn)) == 0) { // Channel not in use continue;