summaryrefslogtreecommitdiff
path: root/libs/surfaces/mackie/pot.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-04-18 17:34:31 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-04-18 17:34:31 +0000
commitc7c9c1bd2622b86ca4494098c80463fe15afeca4 (patch)
tree054770e93af7704174064f6669b980b6c84cb4f7 /libs/surfaces/mackie/pot.cc
parente9dcd14bb4add4882de1aba274af6a548720dae9 (diff)
MCP: next try at vpot mode for pan width
git-svn-id: svn://localhost/ardour2/branches/3.0@12013 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/pot.cc')
-rw-r--r--libs/surfaces/mackie/pot.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/surfaces/mackie/pot.cc b/libs/surfaces/mackie/pot.cc
index 9a3f3360d2..63b0424297 100644
--- a/libs/surfaces/mackie/pot.cc
+++ b/libs/surfaces/mackie/pot.cc
@@ -74,7 +74,11 @@ Pot::update_message ()
// position, but only if off hasn't explicitly been set
if (on) {
- msg += (lrintf (position * 10.0) + 1) & 0x0f; // 0b00001111
+ if (mode == spread) {
+ msg += (lrintf (position * 6) + 1) & 0x0f; // 0b00001111
+ } else {
+ msg += (lrintf (position * 10.0) + 1) & 0x0f; // 0b00001111
+ }
}
/* outbound LED message requires 0x20 to be added to the LED's id