summaryrefslogtreecommitdiff
path: root/libs/evoral/evoral/Control.hpp
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-07-27 14:09:16 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-07-27 14:09:16 +0000
commitece5093234e4c185cf536d2b4e5edfeb90622409 (patch)
treede566ed8a317eaac10b13c6e06a11ab3f68c97e7 /libs/evoral/evoral/Control.hpp
parentfbc946d60dbe68016abcc386932b35c4ef4ba1af (diff)
change Control::{set,get}_float to Control::{set,get}_double and make almost all Control-related stuff use double rather than random mixtures of float, double and some integer value ; make hans' program change stuff work quite a bit better (not finished yet) including keyboard edting of pgm change values
git-svn-id: svn://localhost/ardour2/branches/3.0@7514 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/evoral/evoral/Control.hpp')
-rw-r--r--libs/evoral/evoral/Control.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/libs/evoral/evoral/Control.hpp b/libs/evoral/evoral/Control.hpp
index 210ee7c322..bcb9acb78a 100644
--- a/libs/evoral/evoral/Control.hpp
+++ b/libs/evoral/evoral/Control.hpp
@@ -37,8 +37,8 @@ public:
Control(const Parameter& parameter, boost::shared_ptr<ControlList>);
virtual ~Control() {}
- virtual void set_float(float val, bool to_list=false, FrameTime frame=0);
- virtual float get_float(bool from_list=false, FrameTime frame=0) const;
+ virtual void set_double(double val, bool to_list=false, double frame=0);
+ virtual double get_double(bool from_list=false, double frame=0) const;
/** Get the latest user-set value
@@ -47,10 +47,11 @@ public:
* Automation write/touch works by periodically sampling this value
* and adding it to the ControlList.
*/
- float user_float() const { return _user_value; }
+ double user_double() const { return _user_value; }
void set_list(boost::shared_ptr<ControlList>);
+
boost::shared_ptr<ControlList> list() { return _list; }
boost::shared_ptr<const ControlList> list() const { return _list; }
@@ -62,7 +63,7 @@ public:
protected:
Parameter _parameter;
boost::shared_ptr<ControlList> _list;
- float _user_value;
+ double _user_value;
PBD::ScopedConnection _list_marked_dirty_connection;
private: