Files
grass-cutters/Tools/audio/finalize_robots.py
NiemandKG d1c3761e58 Grass Cutters Together: the project as of moon-sweepers f3666f0
A clean start for the shared repository: the Unity project (Assets, Packages, ProjectSettings), ArtSource, Docs and
Tools as they stood at f3666f0 in the old local repository, with its generated prefabs and scene brought up to date.
Images, audio, models and binaries go through Git LFS (.gitattributes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 18:44:40 +06:00

32 lines
1.3 KiB
Python

"""Robots tree sounds (sweeper bot, cargo drone, launcher, poke bot, gold plater): picked ElevenLabs candidates → Assets/Audio.
Run after eleven_batch_robots.sh. Uses the helpers from master.py / finalize.py.
"""
import master as M
from finalize import seg
def m(name):
return M.mono(M.raw(name))
def oneshots():
M.write("launcher_fire", M.clean(m("launcher_fire_1.wav"), start_db=-30, tail_db=-46, max_len=0.7, fout_ms=120), -3)
M.write("poke_servo", M.clean(m("poke_servo_0.wav"), start_db=-30, tail_db=-48, max_len=0.3, fout_ms=40), -6)
M.write("plater_shimmer", M.clean(m("plater_shimmer_0.wav"), start_db=-30, tail_db=-50, max_len=1.1, fout_ms=250), -4)
M.write("drone_grab", M.clean(m("drone_grab_0.wav"), start_db=-30, tail_db=-46, max_len=0.45, fout_ms=60), -4)
M.write("robot_chirp", M.clean(m("robot_chirp_1.wav"), start_db=-26, tail_db=-46, max_len=0.5, fout_ms=60), -6)
M.write("robot_bump", M.clean(m("robot_bump_1.wav"), start_db=-30, tail_db=-50, max_len=0.3, fout_ms=40), -5)
def loops():
drone = M.highpass(m("drone_loop_1.wav"), 60)
M.write("drone_loop", M.loop_xfade(seg(drone, 0.4, 3.6), 0.4), -12)
sweep = M.highpass(m("sweeper_loop_0.wav"), 50)
M.write("sweeper_loop", M.loop_xfade(seg(sweep, 0.4, 3.6), 0.4), -12)
if __name__ == "__main__":
oneshots()
loops()