feat: implement movement state machine architecture and add various sound assets

This commit is contained in:
DottsGit
2026-06-07 16:13:01 -04:00
parent 064bc90f53
commit 22ea918e6d
30 changed files with 372 additions and 13 deletions
+22
View File
@@ -465,4 +465,26 @@ for i in range(int(sample_rate * flight_duration)):
swarm_flight_samples.append(math.tanh(raw * 2.0))
write_wav('assets/sounds/swarm_flight.wav', swarm_flight_samples)
# 23. Vault Sound (Quick airy whoosh + clothing ruffle)
vault_duration = 0.3
vault_samples = []
prev_v = 0.0
for i in range(int(sample_rate * vault_duration)):
t = i / sample_rate
noise = random.uniform(-1.0, 1.0)
# Airy whoosh
alpha = 0.08
filtered = prev_v + alpha * (noise - prev_v)
prev_v = filtered
whoosh_env = math.sin(t * math.pi / vault_duration)
whoosh = filtered * whoosh_env * 0.6
# Ruffle/grab sound
ruffle_env = math.exp(-t * 30.0)
ruffle = noise * ruffle_env * 0.2
vault_samples.append(whoosh + ruffle)
write_wav('assets/sounds/vault.wav', vault_samples)
print("Generated all sounds!")