MotionScript

@motion-script/core


@motion-script/core / CurveSegment

Interface: CurveSegment

Defined in: attributes/audio/filters/curve.ts:24

A single automation segment in relative time.

Properties

duration?

optional duration?: number

Defined in: attributes/audio/filters/curve.ts:37

Length in seconds. undefined only for a bare hold that auto-fills the remaining middle of the clip.


ease?

optional ease?: EasingFunction

Defined in: attributes/audio/filters/curve.ts:39

Segment easing; defaults to linear.


from?

optional from?: number

Defined in: attributes/audio/filters/curve.ts:30

Start value. undefined means "continue from the previous segment's end" (or, for the first segment, the param's natural/current value — see fadeIn, which leaves from resolved to 0 explicitly).


to?

optional to?: number

Defined in: attributes/audio/filters/curve.ts:32

End value. undefined for a hold (stays at the resolved from).