summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorLen Ovens <len@ovenwerks.net>2015-12-08 19:30:57 -0800
committerLen Ovens <len@ovenwerks.net>2015-12-08 19:30:57 -0800
commitfcf20ee91ab236f5c7b2521b72979364dcddfbf8 (patch)
tree8af8a48f1153f1b2911463f36b62fd6e503a6772 /libs
parentc2493141d983b9c4f1f35386ff21e86e686a6be9 (diff)
Set vpot to the same range as the fader. Fixes trim from -16 to -20.
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaces/mackie/strip.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/surfaces/mackie/strip.cc b/libs/surfaces/mackie/strip.cc
index 85d40bc730..8e8d2f8dc6 100644
--- a/libs/surfaces/mackie/strip.cc
+++ b/libs/surfaces/mackie/strip.cc
@@ -907,8 +907,9 @@ Strip::handle_pot (Pot& pot, float delta)
}
double p = pot.get_value ();
p += delta;
- p = max (ac->lower(), p);
- p = min (ac->upper(), p);
+ // fader and pot should be the same and fader is hard coded 0 -> 1
+ p = max (0.0, p);
+ p = min (1.0, p);
pot.set_value (p);
}