MotionScript

@motion-script/core


@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:

  • startAt is when on the project timeline the clip begins (scene cuts are irrelevant to it);
  • trimStart/trimEnd are 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?

optional filters?: AudioFilter

Defined in: project/config.ts:64

Audio filters applied to the clip (gain, eq, tremolo, speed, echo).


loop?

optional loop?: 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?

optional startAt?: number

Defined in: project/config.ts:54

Second on the project timeline at which the clip starts. Defaults to 0.


trimEnd?

optional trimEnd?: number

Defined in: project/config.ts:58

Out-point inside the source file, in seconds. Defaults to the source's full length.


trimStart?

optional trimStart?: number

Defined in: project/config.ts:56

In-point inside the source file, in seconds. Defaults to 0.


volume?

optional volume?: number

Defined in: project/config.ts:60

Linear gain applied to the clip. Defaults to 1.