commit 4b6f5c9f937a3cdc11e4fc53480274d2bc11b525
parent 62427f2f461e9deb16d10f47a11d4015d146f852
Author: AdamPorcineFudgepuppy <>
Date: Thu, 6 Jun 2024 15:07:56 -0500
limit toly pools knob display between -15 and +15 for large or small voltage values
Diffstat:
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/plugin.json b/plugin.json
@@ -1,6 +1,6 @@
{
"slug": "computerscare",
- "version": "2.1.7",
+ "version": "2.1.8",
"name": "computerscare",
"brand": "computerscare",
"author": "computerscare",
diff --git a/src/ComputerscareTolyPools-v2.cpp b/src/ComputerscareTolyPools-v2.cpp
@@ -170,7 +170,16 @@ struct PoolsSmallDisplayV2 : SmallLetterDisplay
}
else if (type == 1) {
- value = std::to_string(module->rotation);
+
+ //keep the displayed knob value between -15 and +15
+ int rotationDisplay = 0;
+ if(module->rotation > 0) {
+ rotationDisplay = module->rotation % 16;
+ } else if(module->rotation < 0) {
+ rotationDisplay = -1*( (-1* module->rotation)%16);
+ }
+
+ value = std::to_string(rotationDisplay);
}
else if (type == 2) {
value = std::to_string(module->numInputChannels);