diff options
author | Robin Gareus <robin@gareus.org> | 2017-06-19 15:45:47 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-06-21 18:12:26 +0200 |
commit | d6c47def098ebf6c44e1b3e0ca2166d1c990e7d3 (patch) | |
tree | c51eaf36673f55cdc07381f05445c22fb0488d7d /libs/ardour/enums.cc | |
parent | 36e32e564126e4587e3c2bee829c58876e65d285 (diff) |
Implement additional ControlList interpolation methods.
The Control and ControlList uses the raw value (eg. coefficient for gain,
Hz for frequencies) and those Lists are stored in existing sessions.
In the vast majority of cases interpolating automation values using exp/log
scale for dB, freq makes more sense -- it's also what the fader does.
Adding additional interpolation methods is future proof (we might at allow
to even add different methods per automation point (to the next) like other
DAWs do.
Currently it's mainly used in preparation for consistent GUI automation-
lanes. Between 2 points there's always a visual straight line.
Diffstat (limited to 'libs/ardour/enums.cc')
-rw-r--r-- | libs/ardour/enums.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/enums.cc b/libs/ardour/enums.cc index 61a7e9a39f..748d725c09 100644 --- a/libs/ardour/enums.cc +++ b/libs/ardour/enums.cc @@ -545,6 +545,8 @@ setup_enum_writer () REGISTER_CLASS_ENUM (AutomationList, Discrete); REGISTER_CLASS_ENUM (AutomationList, Linear); REGISTER_CLASS_ENUM (AutomationList, Curved); + REGISTER_CLASS_ENUM (AutomationList, Logarithmic); + REGISTER_CLASS_ENUM (AutomationList, Exponential); REGISTER (_AutomationList_InterpolationStyle); REGISTER_CLASS_ENUM (AnyTime, Timecode); |