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:
@@ -18,7 +18,7 @@ using namespace std;
|
||||
/* specialize for bool because of set_value() semantics */
|
||||
|
||||
namespace ARDOUR {
|
||||
template<> void MPControl<bool>::set_value (float v) {
|
||||
template<> void MPControl<bool>::set_value (double v) {
|
||||
bool newval = fabs (v) >= 0.5;
|
||||
if (newval != _value) {
|
||||
_value = newval;
|
||||
|
||||
Reference in New Issue
Block a user