diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-22 02:15:24 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-22 02:15:24 +0000 |
commit | 82c867bf2a6f4de102707b812a87d68e3bd6e170 (patch) | |
tree | 157488dbc4def6614f2f01792a32a20af5ede167 /libs/surfaces/mackie/pot.h | |
parent | ca96b9afe85018fac3e5097f7b211a544d7689a9 (diff) |
MCP: a fistful of improvements. probably best to just try it and see what it broken. KNOWN: pressing vpots without a bank/channel shift will crash ardour
git-svn-id: svn://localhost/ardour2/branches/3.0@12053 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/pot.h')
-rw-r--r-- | libs/surfaces/mackie/pot.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/libs/surfaces/mackie/pot.h b/libs/surfaces/mackie/pot.h index f8e94a3391..3bbf0f33f4 100644 --- a/libs/surfaces/mackie/pot.h +++ b/libs/surfaces/mackie/pot.h @@ -38,25 +38,13 @@ public: }; Pot (int id, std::string name, Group & group) - : Control (id, name, group) - , position (0.0) - , mode (dot) - , on (true) {} + : Control (id, name, group) {} - MidiByteArray set_mode (Mode); - MidiByteArray set_onoff (bool); - MidiByteArray set_all (float, bool, Mode); - - MidiByteArray zero() { return set_all (0.0, on, mode); } - - MidiByteArray update_message (); + MidiByteArray set (float, bool, Mode); + MidiByteArray zero() { return set (0.0, false, Pot::spread); } static Control* factory (Surface&, int id, const char*, Group&); - private: - float position; - Mode mode; - bool on; }; } |