commit ad1e324f7eaebfa6c6ed04ad853b2a0261883603
parent 02e29973db1a3546857566d8594a4671fe6c7ec1
Author: Matt Demanett <matt@demanett.net>
Date: Thu, 15 Apr 2021 23:10:17 -0400
ADDR-SEQ et al: fix select CV to behave according to the documentation when mapping voltage to steps.
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/addressable_sequence.cpp b/src/addressable_sequence.cpp
@@ -122,8 +122,7 @@ int AddressableSequenceModule::nextStep(
_select[c] -= _select[c] * reset;
}
else {
- select += clamp(selectInput.getPolyVoltage(c), -10.0f, 10.0f) * 0.1f * (float)(n - 1);
- // select += (clamp(selectInput.getPolyVoltage(c), -9.99f, 9.99f) / 10.f) * (float)n;
+ select += (clamp(selectInput.getPolyVoltage(c), -9.99f, 9.99f) / 10.f) * (float)n;
if (!_selectOnClock || clock) {
_select[c] = select;
}