Remove some unused PostTransport enums and renumber others.
[ardour.git] / libs / ardour / ardour / automation_control.h
index 006e74346f734d8a7fd4efd9ff82f41cedffb242..e9801111d1f0d0a40dcca46926e488c86409dd67 100644 (file)
@@ -1,6 +1,6 @@
 /*
     Copyright (C) 2007 Paul Davis
-    Author: Dave Robillard
+    Author: David Robillard
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -74,21 +74,26 @@ public:
                return ((ARDOUR::AutomationList*)_list.get())->stop_touch(mark, when);
        }
 
-       /** Set the value and do the right thing based on automation state
-        * (e.g. record if necessary, etc.)
-        */
-       void set_value(double val);
+       void set_value (double);
+       double get_value () const;
 
-       /** Get the current effective value based on automation state.
-        */
-       double get_value() const;
+       double lower() const { return parameter().min(); }
+       double upper() const { return parameter().max(); }
 
-        double lower() const { return parameter().min(); }
-        double upper() const { return parameter().max(); }
+       const ARDOUR::Session& session() const { return _session; }
 
-        const ARDOUR::Session& session() const { return _session; }
+       /** Convert user values to UI values.  See pbd/controllable.h */
+       virtual double user_to_ui (double val) const {
+               return val;
+       }
+
+       /** Convert UI values to user values.  See pbd/controllable.h */
+       virtual double ui_to_user (double val) const {
+               return val;
+       }
 
 protected:
+
        ARDOUR::Session& _session;
 };