@motion-script/core / AudioTrack
Interface: AudioTrack
Defined in: project/config.ts:50
A project-wide audio bed: a clip laid straight onto the project timeline rather than authored inside a scene, so it plays across scene cuts.
Placement and cropping are separate concerns:
startAtis when on the project timeline the clip begins (scene cuts are irrelevant to it);trimStart/trimEndare the in/out points inside the source file.
The clip runs until its (trimmed) source ends or the project does, whichever
comes first — a bed never extends the project's duration. loop: true makes
it repeat until the project ends instead of stopping at the source's end.
Properties
filters?
optionalfilters?:AudioFilter
Defined in: project/config.ts:64
Audio filters applied to the clip (gain, eq, tremolo, speed, echo).
loop?
optionalloop?:boolean
Defined in: project/config.ts:62
Repeat the (trimmed) clip until the project ends. Defaults to false.
src
src:
string
Defined in: project/config.ts:52
Path/URL of the audio (or video) asset. Must exist in the asset manifest.
startAt?
optionalstartAt?:number
Defined in: project/config.ts:54
Second on the project timeline at which the clip starts. Defaults to 0.
trimEnd?
optionaltrimEnd?:number
Defined in: project/config.ts:58
Out-point inside the source file, in seconds. Defaults to the source's full length.
trimStart?
optionaltrimStart?:number
Defined in: project/config.ts:56
In-point inside the source file, in seconds. Defaults to 0.
volume?
optionalvolume?:number
Defined in: project/config.ts:60
Linear gain applied to the clip. Defaults to 1.