Plugin::get_state ()
{
XMLNode* root = new XMLNode (state_node_name ());
- LocaleGuard lg;
root->set_property (X_("last-preset-uri"), _last_preset.uri);
root->set_property (X_("last-preset-label"), _last_preset.label);
_info = info;
}
-
+std::string
+Plugin::parameter_label (uint32_t which) const
+{
+ if (which >= parameter_count ()) {
+ return "";
+ }
+ ParameterDescriptor pd;
+ get_parameter_descriptor (which, pd);
+ return pd.label;
+}