mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 22:55:44 +01:00
Fix range of pan controls.
Set default range to [0,1] since [0,0] is problematic and useless anyway.
This commit is contained in:
parent
ec00c6d652
commit
25efe5953c
2 changed files with 4 additions and 2 deletions
|
|
@ -50,6 +50,7 @@ ParameterDescriptor::ParameterDescriptor(const Evoral::Parameter& parameter)
|
|||
break;
|
||||
case PanAzimuthAutomation:
|
||||
normal = 0.5f; // there really is no _normal but this works for stereo, sort of
|
||||
upper = 1.0f;
|
||||
break;
|
||||
case PanWidthAutomation:
|
||||
lower = -1.0;
|
||||
|
|
@ -57,7 +58,8 @@ ParameterDescriptor::ParameterDescriptor(const Evoral::Parameter& parameter)
|
|||
normal = 0.0f;
|
||||
break;
|
||||
case RecEnableAutomation:
|
||||
/* default 0.0 - 1.0 is fine */
|
||||
lower = 0.0;
|
||||
upper = 1.0;
|
||||
toggled = true;
|
||||
break;
|
||||
case PluginAutomation:
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ struct ParameterDescriptor
|
|||
ParameterDescriptor()
|
||||
: normal(0.0)
|
||||
, lower(0.0)
|
||||
, upper(0.0)
|
||||
, upper(1.0)
|
||||
, toggled(false)
|
||||
{}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue