projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c249314
)
Set vpot to the same range as the fader. Fixes trim from -16 to -20.
author
Len Ovens
<len@ovenwerks.net>
Wed, 9 Dec 2015 03:30:57 +0000
(19:30 -0800)
committer
Len Ovens
<len@ovenwerks.net>
Wed, 9 Dec 2015 03:30:57 +0000
(19:30 -0800)
libs/surfaces/mackie/strip.cc
patch
|
blob
|
history
diff --git
a/libs/surfaces/mackie/strip.cc
b/libs/surfaces/mackie/strip.cc
index 85d40bc730af92dd194e5ed2e69d483e9bcfdd48..8e8d2f8dc64c0ca3f1722b1a4206153bc8e8b6ba 100644
(file)
--- 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);
}