summaryrefslogtreecommitdiff
path: root/gtk2_ardour/rc_option_editor.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-10-31 23:34:41 +0100
committerRobin Gareus <robin@gareus.org>2018-10-31 23:44:04 +0100
commit63a4cc9cf6e02153a6c647867abfec6b013e0708 (patch)
tree4e6dd6c66c568861d8aa84a49fbded64048fa169 /gtk2_ardour/rc_option_editor.cc
parentfd832d9d1a7eb33ff9b8b206e1b8509aef100faf (diff)
Preference Dropdown to limit Automatable Parameters
Diffstat (limited to 'gtk2_ardour/rc_option_editor.cc')
-rw-r--r--gtk2_ardour/rc_option_editor.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc
index 08d55a8f0e..9cf26847a4 100644
--- a/gtk2_ardour/rc_option_editor.cc
+++ b/gtk2_ardour/rc_option_editor.cc
@@ -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