summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_time_axis.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-02-11 13:59:05 -0700
committerPaul Davis <paul@linuxaudiosystems.com>2020-02-11 13:59:05 -0700
commitca28404a2ac7e1ec359ce375fc2b3c260f6c2391 (patch)
treee488087164fc5558b3faf0cb4d586031616cdd67 /gtk2_ardour/midi_time_axis.cc
parentde74cca6b8e3a17ac0aa9e6985002307d1b89f5d (diff)
NOOP: line unwrapping and vertical spacing
Diffstat (limited to 'gtk2_ardour/midi_time_axis.cc')
-rw-r--r--gtk2_ardour/midi_time_axis.cc7
1 files 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<MasterDeviceNames> 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;