From fcf20ee91ab236f5c7b2521b72979364dcddfbf8 Mon Sep 17 00:00:00 2001 From: Len Ovens Date: Tue, 8 Dec 2015 19:30:57 -0800 Subject: Set vpot to the same range as the fader. Fixes trim from -16 to -20. --- libs/surfaces/mackie/strip.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libs') 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); } -- cgit v1.2.3