mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
Set discrete by default for boolean parameters.
This commit is contained in:
parent
ed1bbefd19
commit
784b96e255
2 changed files with 4 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue