Explorar o código

VFX Envelope: pitch clamp per FL (Init.Pitch 0…12000)

Ka1-S hai 1 mes
pai
achega
982a577b6b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/Vfx.cpp

+ 1 - 1
src/core/Vfx.cpp

@@ -1667,7 +1667,7 @@ private:
             }
             if (volume != sourceVolume)
                 now.velocity = (float) std::clamp (std::log (10.0 * volume + 1.0) / std::log (11.0) / 1.28, 0.0, 1.0);
-            now.cents = (float) std::clamp (cents, -6000.0 - v.source.key * 100.0, 6700.0 - v.source.key * 100.0);
+            now.cents = (float) std::clamp (cents, -v.source.key * 100.0, 12000.0 - v.source.key * 100.0); // (FL: Init.Pitch 0…12000)
             now.pan = (float) pan;
             now.modX = (float) std::clamp (modX * 0.5 + 0.5, 0.0, 1.0);
             now.modY = (float) std::clamp (modY * 0.5 + 0.5, 0.0, 1.0);