projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
globally change all use of "frame" to refer to audio into "sample".
[ardour.git]
/
libs
/
surfaces
/
mackie
/
fader.h
diff --git
a/libs/surfaces/mackie/fader.h
b/libs/surfaces/mackie/fader.h
index ed8e72eb50a5aa0beb59ee2c4e50177e819eae27..dae022c690eec428b7b69e3977366200f2b0f135 100644
(file)
--- a/
libs/surfaces/mackie/fader.h
+++ b/
libs/surfaces/mackie/fader.h
@@
-3,28
+3,34
@@
#include "controls.h"
#include "controls.h"
+namespace ArdourSurface {
+
namespace Mackie {
class Fader : public Control
{
public:
namespace Mackie {
class Fader : public Control
{
public:
+
Fader (int id, std::string name, Group & group)
: Control (id, name, group)
, position (0.0)
Fader (int id, std::string name, Group & group)
: Control (id, name, group)
, position (0.0)
+ , last_update_position (-1)
{
}
MidiByteArray set_position (float);
MidiByteArray zero() { return set_position (0.0); }
{
}
MidiByteArray set_position (float);
MidiByteArray zero() { return set_position (0.0); }
-
+
MidiByteArray update_message ();
static Control* factory (Surface&, int id, const char*, Group&);
MidiByteArray update_message ();
static Control* factory (Surface&, int id, const char*, Group&);
-
+
private:
float position;
private:
float position;
+ int last_update_position;
};
};
+}
}
#endif
}
#endif