take_set_playrate
Adjust a take's playback rate to time-stretch audio; preserve pitch for beat-matching chops or disable for vinyl-style speed shifts. Follow with item_set_length to resize the timeline item.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"item_index": "<item_index>",
"rate": "<rate>"
},
"name": "take_set_playrate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | Yes | ||
| item_index | Yes | ||
| preserve_pitch | No |