Set clip speed
clip_speedAdjust a clip's playback speed from 0.25x to 4x using varispeed or pitch-preserving stretch, and optionally lock it to project tempo.
Instructions
Sets a clip's playback speed (ratio 0.25-4, 2.0 = double speed, half as long). The mode picks how: repitch (default, varispeed - pitch and length change together) or stretch (pitch-preserving time-stretch). Mode can also be changed on its own. lockTempo ties the clip to the project tempo (speed = project tempo / clip tempo, following tempo changes); the clip tempo is detected by beat tracking or given with tempo, which implies the lock.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Timeline position of the clip (in `unit`) | |
| mode | No | How the speed is realised: varispeed or pitch-preserving | |
| unit | No | Unit for positions (default bars; bars/beats are 1-based, seconds/clocks absolute) | |
| ratio | No | Speed ratio (0.25-4) | |
| tempo | No | The clip's own tempo in BPM; sets it and locks the clip | |
| track | No | Track id to narrow the match | |
| length | No | Fit the clip to this timeline duration (in `unit`) | |
| region | No | Region name of the clip | |
| project | Yes | Path to the .audium project package (absolute paths recommended) | |
| lockTempo | No | Lock the clip to the project tempo (true) or release it (false) | |
| semitones | No | Pitch shift in semitones (ratio = 2^(n/12)) |