projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ab15de
)
Fix VST default value. query once at instantiation time.
author
Robin Gareus
<robin@gareus.org>
Wed, 21 Jun 2017 12:39:56 +0000
(14:39 +0200)
committer
Robin Gareus
<robin@gareus.org>
Wed, 21 Jun 2017 16:13:29 +0000
(18:13 +0200)
libs/ardour/vst_plugin.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/vst_plugin.cc
b/libs/ardour/vst_plugin.cc
index afed7315f4f5ec528359e5c194a74536f8d96c0a..787210af6aa6d41f1eaccb3f7534df1563f2dc57 100644
(file)
--- a/
libs/ardour/vst_plugin.cc
+++ b/
libs/ardour/vst_plugin.cc
@@
-390,9
+390,10
@@
VSTPlugin::get_parameter_descriptor (uint32_t which, ParameterDescriptor& desc)
desc.largestep = 0.1f;
}
- desc.normal = get_parameter (which);
if (_parameter_defaults.find (which) == _parameter_defaults.end ()) {
- _parameter_defaults[which] = desc.normal;
+ _parameter_defaults[which] = get_parameter (which);
+ } else {
+ desc.normal = _parameter_defaults[which];
}
return 0;