Files
ElyOffice/site/video/update-0.1.5/audio/build.py
T
ZacharyZhang-NYandClaude Opus 5.5 8f31e53cfc 0.1.5 update video and Chinese changelog
Real footage of the installed 0.1.5 apps, composited in Remotion with
shape morphs between sections; synthesized score and UI sounds. Logs
P3-17 (ElyTable keyboard zoom leaves the grid half-scrolled).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-15 09:24:06 -04:00

20 lines
521 B
Python

import numpy as np
from compose import OUT, SR, Mix, master, score, true_peak, write
from sfx import sfx
def main():
mix = Mix()
kicks = score(mix)
x, lufs, stems = master(mix, kicks)
write(OUT / "music.wav", x)
print(f"music: {len(x) / SR:.3f} s, {lufs:.2f} LUFS, true peak {20 * np.log10(true_peak(x)):.2f} dBTP")
print("stems (dB RMS):", {k: round(v, 1) for k, v in stems.items()})
# Shares compose's generator, so runs after the music.
sfx()
if __name__ == "__main__":
main()