Skip to main content

Module assemble

Module assemble 

Source
Expand description

xil assemble โ€” mix stems straight to a master MP3: a two-pass foreground/background mix when a parsed script exists, a plain sequential join otherwise. Port of XILP003_audio_assembly.py.

Structsยง

Args ๐Ÿ”’

Constantsยง

SILENCE_GAP_MS ๐Ÿ”’

Functionsยง

assemble_audio ๐Ÿ”’
assemble_audio โ€” the sequential fallback.
assemble_multitrack ๐Ÿ”’
assemble_multitrack โ€” foreground plus ducked ambience and music.
command
The clap definition behind --help, for man pages.
execute ๐Ÿ”’
export_mp3 ๐Ÿ”’
export(final_output, format="mp3") โ€” pydub opens the destination before encoding, so an unwritable path fails first.
play ๐Ÿ”’
subprocess.run(["mpg123", abspath(out)], check=False) โ€” a missing player raises FileNotFoundError after the file is written.
run