Skip to content

five-on-it / apps/client/src/renderer/clips / Clip

Interface: Clip ​

Defined in: apps/client/src/renderer/clips.ts:51

One clip of the library.

Properties ​

duration ​

readonly duration: number

Defined in: apps/client/src/renderer/clips.ts:54

Its length (s).


layer ​

readonly layer: "full" | "upper"

Defined in: apps/client/src/renderer/clips.ts:58

full keys the whole figure; upper only the parts it has channels for.


loop ​

readonly loop: boolean

Defined in: apps/client/src/renderer/clips.ts:56

Whether it loops; else it plays once and holds its last key.


name ​

readonly name: string

Defined in: apps/client/src/renderer/clips.ts:52


parts ​

readonly parts: readonly (Channel | undefined)[]

Defined in: apps/client/src/renderer/clips.ts:62

The keys of each part by its index in FIGURE_PARTS; none for a part the clip leaves alone.


root ​

readonly root: Channel | undefined

Defined in: apps/client/src/renderer/clips.ts:64

The root's keys (a full clip).


stride ​

readonly stride: number

Defined in: apps/client/src/renderer/clips.ts:60

Metres one cycle covers (a walk, a run), played by the distance; 0 for a clip played by time.