Render a project or MIDI file to audio
project_renderRender a project or MIDI file to stereo audio with per-track instruments, SoundFonts, synths, or samplers, plus optional time range, metronome, and output format.
Instructions
Renders a project file, or a .mid file through the General MIDI bank, to a stereo audio file. 'instruments' plays chosen MIDI tracks through a synth preset or patch, the built-in oscillator synth, a SoundFont program or a sampler built from audio files, for this render only. MIDI tracks without an instrument play the General MIDI bank. A render that plays the General MIDI bank or a SoundFont ends a fixed 3 s after the last clip, so a longer release is cut. 'range' keeps one window in quarter notes. Use it to hear a project, or before audio_master and the audio_ measuring tools. It does not master (audio_master). Example: {"source": "song.sonare.json", "instruments": [{"track": "bass", "instrument": {"kind": "synth", "preset": "subBass"}}], "format": "wav"}.
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": {
"source": "<source>"
},
"name": "project_render"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | No | Keep only this window ({start_ppq, end_ppq}, quarter notes). Default: the whole timeline. | |
| detail | No | 'concise' returns the summary and the most useful fields; 'full' returns all. | concise |
| format | No | Output format: wav, flac, ogg (Vorbis), opus, mp3, aiff, or m4a (AAC, needs ffmpeg). Default: the explicit output's extension, else the input's format, else wav. | |
| output | No | Output file path. Default: an auto-named new file '<input stem>.<tool>.<ext>' in the output directory. | |
| source | Yes | A project file (.sonare.json) or a .mid file (rendered through the General MIDI bank). | |
| dry_run | No | Report the resolved output plan and paths without processing or writing. | |
| quality | No | Lossy encoder setting for ogg/opus/mp3, 0..1 (soundfile compression_level, variable bit rate): 0 = best quality, 1 = smallest file. On 48 kHz stereo music, mp3 0 / 0.3 / 1 is about 192 / 120 / 55 kbit/s (no 320 kbit/s setting), ogg about 330 / 150 / 45 and opus about 510 / 360 / 13. Default 0.3. Excludes bit_depth. | |
| bit_depth | No | PCM bit depth for wav/flac/aiff: 16, 24 or 'float32' (32-bit float; not flac). Default: the input's depth, else 24. Excludes quality. | |
| metronome | No | Mix a metronome click into the render. | |
| overwrite | No | Replace an existing output file. Without it an existing file is an error. | |
| instruments | No | Instruments for this render only, one entry per MIDI track; the file is not changed. Tracks without an instrument play the General MIDI bank. Each sf2 entry selects the SoundFont for its track. | |
| sample_rate | No | Output sample rate in Hz; the audio is resampled when it differs. Default: the input's rate. Opus is always 48000. | |
| count_in_bars | No | Bars before the project starts, 1-16. The count-in is silent unless metronome is enabled. |