Merge branch 'MoonModules:mdev' into Strip_Level_Color_Adjust

This commit is contained in:
Troy
2024-03-09 14:26:38 -05:00
committed by GitHub
10 changed files with 392 additions and 23 deletions

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);
}