clip_trim
Shorten an audio clip by removing a specified number of seconds from its left or right edge, with an optional minimum duration to keep.
Instructions
Trim a clip's left or right edge inward by a delta in seconds, discarding that audio.
CONFIRMED LIVE: positive delta_sec shrinks the clip inward from the given edge, for both "left" and "right" - e.g. side="left", delta_sec=1.0 moves the clip's start forward by 1 second.
Args: key: The clip's key, in "trackId:itemId" format. side: "left" or "right". delta_sec: Positive shrinks the clip inward from this edge; negative grows it back outward (same convention as clip_stretch). min_clip_duration: Minimum duration the clip must retain, in seconds. Default: 0.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| side | Yes | ||
| delta_sec | Yes | ||
| min_clip_duration | No |