vst: set slider default values
This commit is contained in:
parent
e1a0855b9d
commit
d240f4f63f
1 changed files with 1 additions and 0 deletions
|
|
@ -66,6 +66,7 @@ private:
|
||||||
auto* p = static_cast<Vst::RangeParameter*>(getController()->getParameterObject(id));
|
auto* p = static_cast<Vst::RangeParameter*>(getController()->getParameterObject(id));
|
||||||
c->setMin(p->getMin());
|
c->setMin(p->getMin());
|
||||||
c->setMax(p->getMax());
|
c->setMax(p->getMax());
|
||||||
|
c->setDefaultValue(p->toPlain(p->getInfo().defaultNormalizedValue));
|
||||||
}
|
}
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue