13
0

Set discrete by default for boolean parameters.

This commit is contained in:
David Robillard 2014-11-29 01:40:23 -05:00
parent ed1bbefd19
commit 784b96e255
2 changed files with 4 additions and 1 deletions

View File

@ -1212,6 +1212,9 @@ PluginInsert::PluginControl::PluginControl (PluginInsert* p,
{
if (alist()) {
alist()->reset_default (desc.normal);
if (desc.toggled) {
list->set_interpolation(Evoral::ControlList::Discrete);
}
}
if (desc.toggled) {

View File

@ -54,7 +54,7 @@ double ControlList::_thinning_factor = 20.0;
ControlList::ControlList (const Parameter& id)
: _parameter(id)
, _interpolation(Linear)
, _interpolation(id.toggled() ? Discrete : Linear)
, _curve(0)
{
_frozen = 0;