set_audio
Replace a Video’s Audio with standalone Audio.
Call shape
set_audio(video: Video, audio: Audio) -> Video
This is call-shape notation for lookup, not ClipAsm declaration syntax.
Graph inputs
| Name | Type | Cardinality |
|---|---|---|
video | Video | exactly one |
audio | Audio | exactly one |
Parameters and defaults
This program has no scalar parameters.
Result and stack behavior
Outputs: Video.
Default stack access is owned. See stack binding for ownership and visibility rules.
Timeline and markers
The program keeps the duration and addressable markers from video.
Example
clipasm 1
set_audio(
video=video("assets/scene.mp4"),
audio=audio("assets/music.wav"),
)
Expected validation result: Video with a source-dependent frame domain resolved during preflight.
The reference checks parse and compile this exact example. Compilation does not inspect the named media files.
Behavior
- The output preserves the Video timeline. ClipAsm marks the output as carrying meaningful Audio.
- The supplied standalone Audio replaces any Audio already attached to the Video.