Set speed
clip.set_speedSpeed up, slow down, ramp or reverse a clip and its linked clips. rate is constant; curve is a speed ramp over the clip. The clip keeps its source and its length changes; ripple (default) moves later clips. Pitch is kept unless preserve_pitch is false. Returns the edit result (see the server instructions).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | No | Constant speed: 2 = twice as fast | |
| curve | No | Speed ramp: rates at fractions of the clip as it plays after the change (first at 0, last at 1; 0.5 is halfway through the new length), linear between. timeline.get gives each point its clip frame and source frame | |
| ripple | No | Move later clips as the clip gets longer or shorter | |
| clip_id | Yes | ||
| preview | No | inline: image in the result; link: URI that renders on read; none | link |
| reverse | No | ||
| interpolate | No | Video, when it shows fewer new frames a second than the sequence (slowed, or a lower frame rate; rate 1 smooths that): none repeats frames; blend crossfades neighbours; motion makes new frames from the movement (minterpolate, slow). Made once as a job of its own (job.list); a render that needs it names the job until it is done, and an export waits. Up to 6000 frames a clip | |
| timeline_id | Yes | Timeline handle; every edit returns a new one | |
| other_tracks | No | What the other tracks do when this edit moves later clips on the clip's own tracks (linked clips always move with it). stay: they don't move, and the result warns which clips there now play early or late. sync: they get the same change, so titles, overlays and sound stay in step: time taken out here comes out of them too (like range.extract), time added here opens the same gap in them (clips crossing that point are split, as insert does). Locked tracks always stay | stay |
| preserve_pitch | No | Keep voices at their pitch (default true) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent | Yes | Timeline handle; every edit returns a new one | |
| changed | Yes | ||
| clip_id | No | ||
| preview | Yes | ||
| clip_ids | No | ||
| track_id | No | ||
| warnings | Yes | ||
| timeline_id | Yes | Timeline handle; every edit returns a new one |