From d6c47def098ebf6c44e1b3e0ca2166d1c990e7d3 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 19 Jun 2017 15:45:47 +0200 Subject: 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. --- libs/ardour/enums.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/ardour/enums.cc') 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); -- cgit v1.2.3