export_wav
Renders a self-contained SuperCollider pattern or score to a 24-bit WAV file using non-real-time mode, enabling offline audio export without live playback.
Instructions
Render a self-contained SuperCollider pattern/score to a 24-bit WAV file using Non-Real-Time (Score.recordNRT) mode.
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": {
"code": "<code>",
"outputPath": "<outputPath>"
},
"name": "export_wav"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | SuperCollider pattern/score code to render | |
| duration | No | Render duration in seconds | |
| outputPath | Yes | Output WAV file path | |
| sampleRate | No | Sample rate for rendering |