diff options
Diffstat (limited to 'libs/ardour/ardour/parameter_descriptor.h')
-rw-r--r-- | libs/ardour/ardour/parameter_descriptor.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/ardour/ardour/parameter_descriptor.h b/libs/ardour/ardour/parameter_descriptor.h index 2348b05903..a451887f22 100644 --- a/libs/ardour/ardour/parameter_descriptor.h +++ b/libs/ardour/ardour/parameter_descriptor.h @@ -55,6 +55,24 @@ struct LIBARDOUR_API ParameterDescriptor : public Evoral::ParameterDescriptor ParameterDescriptor(); + /** control-value to normalized [0..1] range + * + * Convert given AutomationType from lower/upper range to [0..1] + * interface value, using settings from Evoral::ParameterDescriptor. + * + * default for AutomationControl::internal_to_interface (); + */ + float to_interface (float) const; + + /** normalized [0..1] to control-value range + * + * Convert [0..1] to the control's range of this AutomationType + * using settings from Evoral::ParameterDescriptor. + * + * default for AutomationControl::interface_to_internal (); + */ + float from_interface (float) const; + /** Set step, smallstep, and largestep, based on current description. */ void update_steps(); |