diff options
author | Robin Gareus <robin@gareus.org> | 2017-06-19 09:52:11 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-06-21 18:12:14 +0200 |
commit | fe83e1e2ed450814dfec0ffed7a2c2559c6fa8b6 (patch) | |
tree | 426b6d1e9f697d0f324f2904e617c199ef70d838 /libs/evoral/evoral | |
parent | 2627cd414c83bce07f6c2462ffd32b8989df3342 (diff) |
Move logarithmic property into Evoral, add rangesteps
This allows complete mathematical description of a given parameter
and parameter values.
Semantic type abstraction is reserved for Ardour::ParameterDescriptor.
Diffstat (limited to 'libs/evoral/evoral')
-rw-r--r-- | libs/evoral/evoral/ParameterDescriptor.hpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libs/evoral/evoral/ParameterDescriptor.hpp b/libs/evoral/evoral/ParameterDescriptor.hpp index 5eac28eba9..ccb25fa67a 100644 --- a/libs/evoral/evoral/ParameterDescriptor.hpp +++ b/libs/evoral/evoral/ParameterDescriptor.hpp @@ -29,12 +29,16 @@ struct ParameterDescriptor , lower(0.0) , upper(1.0) , toggled(false) + , logarithmic(false) + , rangesteps (0) {} - float normal; ///< Default value - float lower; ///< Minimum value (in Hz, for frequencies) - float upper; ///< Maximum value (in Hz, for frequencies) - bool toggled; ///< True iff parameter is boolean + float normal; ///< Default value + float lower; ///< Minimum value (in Hz, for frequencies) + float upper; ///< Maximum value (in Hz, for frequencies) + bool toggled; ///< True iff parameter is boolean + bool logarithmic; ///< True for log-scale parameters + unsigned int rangesteps; ///< number of steps, [min,max] (inclusive). <= 1 means continuous. == 2 only min, max. For integer controls this is usually (1 + max - min) }; } // namespace Evoral |