From 07dc6d465867de8d3596863eaa84e00a09b03a93 Mon Sep 17 00:00:00 2001 From: Hawk Lee Date: Mon, 26 Jan 2026 14:33:22 +0800 Subject: [PATCH] fix(Ditto): aggressively decay momentum(0.5) and position(0.9) during silence to stop runaway drift --- libs/Ditto/core/atomic_components/audio2motion.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/Ditto/core/atomic_components/audio2motion.py b/libs/Ditto/core/atomic_components/audio2motion.py index 5dd808a..cfad6e7 100644 --- a/libs/Ditto/core/atomic_components/audio2motion.py +++ b/libs/Ditto/core/atomic_components/audio2motion.py @@ -258,7 +258,8 @@ class Audio2Motion: # During deep silence, we want the Anchor to slowly return to the absolute reference (0,0,0) # so that the next speech onset starts from a "Clean State" near the reference photo. if self.silence_frames > 25: - self.brownian_pos *= 0.95 + self.brownian_momentum *= 0.5 # Kill velocity fast + self.brownian_pos *= 0.90 # Pull position back fast # 3. Compound Sine Sway t = self.global_time