Slice Audio File
audio_sliceChop an audio file at detected transient onsets and export up to max_slices individual WAV samples to a directory for FL Studio sample chopping, without modifying the open project.
Instructions
Chop an audio file at detected transient onsets and write up to max_slices individual WAV samples to disk.
Use to prepare sample chops from breaks or loops for dragging into FL Studio
(FPC/Slicex/Channel Rack). Writes files to output_dir without modifying the open
FL Studio project; requires the [audio] extra (ok=False if missing or file not found).
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": {
"path": "<path>"
},
"name": "audio_slice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the source audio file (e.g. drum break or vocal loop) to slice at detected transients. | |
| max_slices | No | Maximum number of onset-chopped WAV files to write to disk (default 32). | |
| output_dir | No | Optional destination directory for the exported slice WAVs (use a fresh directory to avoid overwriting earlier slices); omit to use a sibling directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||