take_set_playrate
Change a take's playrate to time-stretch audio, with optional pitch preservation. Use to fit a chop to a beat grid or create speed changes.
Instructions
Time-stretch a take by changing its playrate.
With preserve_pitch=True (default), audio plays slower/faster
without changing pitch — useful for fitting a chop to a beat grid.
With preserve_pitch=False, this becomes a vinyl-style speed change
(faster = higher pitch).
After changing the rate, the item's visible length in the timeline
does NOT auto-resize. Call item_set_length afterwards to match.
Args: item_index: Global 0-based item index. rate: Playback rate. 1.0 = normal, 0.5 = half speed, 2.0 = double. Range 0.05 to 16.0. preserve_pitch: Time-stretch without pitch change. Default True.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | Yes | ||
| item_index | Yes | ||
| preserve_pitch | No |