diff options
author | David Robillard <d@drobilla.net> | 2014-12-02 19:02:03 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-12-02 19:02:03 -0500 |
commit | 25efe5953c8903614d574cac3e8c8e8f3d444770 (patch) | |
tree | db7f5fc6e0fd6799aa3efb2831f6a8f4328daf1a /libs/ardour/parameter_descriptor.cc | |
parent | ec00c6d652f6b8854b344ab3741cc90852d26487 (diff) |
Fix range of pan controls.
Set default range to [0,1] since [0,0] is problematic and useless anyway.
Diffstat (limited to 'libs/ardour/parameter_descriptor.cc')
-rw-r--r-- | libs/ardour/parameter_descriptor.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/parameter_descriptor.cc b/libs/ardour/parameter_descriptor.cc index 88debb0200..36f7183134 100644 --- a/libs/ardour/parameter_descriptor.cc +++ b/libs/ardour/parameter_descriptor.cc @@ -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: |