Better range of speed for AnimARTrix

This commit is contained in:
Will Tatam
2024-03-06 22:41:07 +00:00
parent fa5f35d87b
commit 77576f6858

View File

@@ -96,10 +96,10 @@ class ANIMartRIXMod:public ANIMartRIX {
}
float speedFactor = 1.0;
if (SEGMENT.speed < 128) {
speedFactor = (float) map(SEGMENT.speed, 0, 127, 1, 10) / 10.0f;
speedFactor = (float) map(SEGMENT.speed, 0, 127, 1, 100) / 100.0f;
}
else{
speedFactor = map(SEGMENT.speed, 128, 255, 10, 100) / 10;
speedFactor = (float) map(SEGMENT.speed, 128, 255, 10, 100) / 10.0f;
}
setSpeedFactor(speedFactor);
}