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
This commit is contained in:
Paul Davis 2010-07-27 14:09:16 +00:00
parent fbc946d60d
commit ece5093234
34 changed files with 155 additions and 169 deletions

View file

@ -34,8 +34,8 @@ Control::Control(const Parameter& parameter, boost::shared_ptr<ControlList> list
/** Get the currently effective value (ie the one that corresponds to current output)
*/
float
Control::get_float(bool from_list, FrameTime frame) const
double
Control::get_double (bool from_list, double frame) const
{
if (from_list) {
return _list->eval(frame);
@ -46,12 +46,12 @@ Control::get_float(bool from_list, FrameTime frame) const
void
Control::set_float(float value, bool to_list, FrameTime frame)
Control::set_double (double value, bool to_list, double frame)
{
_user_value = value;
if (to_list) {
_list->add(frame, value);
_list->add (frame, value);
}
}