ValueClip

interface ValueClip extends Clip, ValueEventOwner { uuid: string index: number duration: number mute: boolean label: string hue: number launch: ClipPlayback events: readonly ValueEvent[] track: ValueTrack remove(): void addEvent(props?: ValueEventProps): ValueEvent addEvents(events: readonly Partial<Pick<ValueEvent, 'value' | 'position' | 'interpolation'>>[]): readonly ValueEvent[] clearEvents(): void }

Clip holding automation points

Hierarchy


Properties

uuid: string

readonly

Inherited from uuid

Unique id

index: number

Inherited from index

Slot index in the clip launcher

duration: number

Inherited from duration

Length in PPQN (seconds for non-synced audio clips)

mute: boolean

Inherited from mute

Mute the clip

label: string

Inherited from label

Custom label

hue: number

Inherited from hue

Color hue (0 to 360)

launch: ClipPlayback

readonly

Inherited from launch

Launch settings

events: readonly ValueEvent[]

readonly

Inherited from events

All events sorted by position

track: ValueTrack

readonly

The automation track this clip belongs to

Methods

remove(): void

Inherited from remove

Remove the clip

Returns

  • void

addEvent(props?: ValueEventProps): ValueEvent

Inherited from addEvent

Add an automation point (defaults: position 0, value 0, linear). Two points at the same position form a step

Parameters

Returns

addEvents( events: readonly Partial<Pick<ValueEvent, 'value' | 'position' | 'interpolation'>>[], ): readonly ValueEvent[]

Inherited from addEvents

Add many points at once

Parameters

  • events (readonly Partial<Pick<ValueEvent, "value" | "position" | "interpolation">>[])

Returns

clearEvents(): void

Inherited from clearEvents

Remove all points

Returns

  • void