Preference Dropdown to limit Automatable Parameters
authorRobin Gareus <robin@gareus.org>
Wed, 31 Oct 2018 22:34:41 +0000 (23:34 +0100)
committerRobin Gareus <robin@gareus.org>
Wed, 31 Oct 2018 22:44:04 +0000 (23:44 +0100)
gtk2_ardour/rc_option_editor.cc

index 08d55a8f0e95fcbfbf3f08abb5a49fab560fe149..9cf26847a4877f9fe7e704b06bacbe383e50af30 100644 (file)
@@ -3392,6 +3392,23 @@ RCOptionEditor::RCOptionEditor ()
        Gtkmm2ext::UI::instance()->set_tip (bo->tip_widget(),
                                            _("<b>When enabled</b> plugins will be activated when they are added to tracks/busses. When disabled plugins will be left inactive when they are added to tracks/busses"));
 
+       ComboOption<uint32_t>* lna = new ComboOption<uint32_t> (
+                    "limit-n-automatables",
+                    _("Limit automatable parameters per plugin"),
+                    sigc::mem_fun (*_rc_config, &RCConfiguration::get_limit_n_automatables),
+                    sigc::mem_fun (*_rc_config, &RCConfiguration::set_limit_n_automatables)
+                    );
+       lna->add (0, _("Unlimited"));
+       lna->add (64,  _("64 parameters"));
+       lna->add (128, _("128 parameters"));
+       lna->add (256, _("256 parameters"));
+       lna->add (512, _("512 parameters"));
+       lna->add (999, _("999 parameters"));
+       add_option (_("Plugins"), lna);
+       Gtkmm2ext::UI::instance()->set_tip (lna->tip_widget(),
+                                           _("Some Plugins expose an unreasonable amount of control-inputs. This option limits the number of parameters that can are listed as automatable without restricting the number of total controls.\n\nThis reduces lag in the GUI and shortens excessively long drop-down lists for plugins with a large number of control ports.\n\nNote: This only affects newly added plugins and is applied to plugin on session-reload. Already automated parameters are retained."));
+
+
 #if (defined WINDOWS_VST_SUPPORT || defined MACVST_SUPPORT || defined LXVST_SUPPORT)
        add_option (_("Plugins/VST"), new OptionEditorHeading (_("VST")));
 #if 0