Restim Funscript Processor v2.2.5
What's New in v2.2.5
Bug Fix: apply_modulation wave center and normalization
-
max_level_offsetnow means DC center, not ceiling — previously,max_level_offset=0caused the wave to oscillate from−2×amplitudeto0(a net downward DC shift ofamplitude). Now the wave oscillates symmetrically±amplitudearound the current signal level whenmax_level_offset=0. Non-zero values bias the center up or down. -
Normalization fix for non-volume axes —
amplitudeandmax_level_offsetare now normalized independently. Previously they were subtracted before normalizing (offset = max_level_offset − amplitude), which caused a scale mismatch on axes likepulse_frequency(max=120 Hz) when values were given as pre-normalized floats in [0, 1]. -
Removed debug print statements left in
_apply_modulation_single.
Impact on event definitions: Events using max_level_offset=0 (most common) now behave correctly — symmetric oscillation with no net DC shift. Events with explicit non-zero max_level_offset values will have a different (more intuitive) wave range: the offset now sets the center rather than the peak.