summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_time_axis.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-07-14 01:27:21 -0400
committerDavid Robillard <d@drobilla.net>2014-07-15 15:18:18 -0400
commite3cf23b8a099f6afc0b3295ab8f8bf2d603a6302 (patch)
tree266e4d9f35e3d22fdde87ca8e46afe4fad3af98e /gtk2_ardour/midi_time_axis.cc
parentd65091db1696d3b9e6f4bdad38cb7727fe8bdd3e (diff)
Don't show all controllers for generic MIDI devices.
This takes a VERY long time to do, so is probably a problem for defined devices with a ton of channels and devices, too. Not sure what the smart thing to do here is, though adding lanes really shouldn't be this slow in the first place.
Diffstat (limited to 'gtk2_ardour/midi_time_axis.cc')
-rw-r--r--gtk2_ardour/midi_time_axis.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc
index 6d7638ecd5..a8faaf7ed4 100644
--- a/gtk2_ardour/midi_time_axis.cc
+++ b/gtk2_ardour/midi_time_axis.cc
@@ -1218,7 +1218,8 @@ 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 (device_names && !device_names->controls().empty()) {
+ if (gui_property (X_("midnam-model-name")) != "Generic" &&
+ device_names && !device_names->controls().empty()) {
const std::string device_mode = _midnam_custom_device_mode_selector.get_active_text();
const uint16_t selected_channels = midi_track()->get_playback_channel_mask();
for (uint32_t chn = 0; chn < 16; ++chn) {