API & MCP
Everything a person can do on Synth Patch to WAV, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://sinebloompatchtowav.usefulweb.app/api/v1/calculate– run Synth Patch to WAVGET https://sinebloompatchtowav.usefulweb.app/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Synth Patch to WAV
Renders a polyphonic synthesizer sound — one of 32 built-in presets or a patch copied from the Sinebloom app — playing your notes on the server and returns a 16-bit stereo WAV with its waveform, spectrum and levels. Type notes as text (C4+E4+G4:2 G4:0.5), paste a JSON note list or upload a Standard MIDI File; an optional arpeggiator turns held chords into patterns. Same engine and same bytes as Sinebloom’s WAV export.
| Field | Type | Default | Description |
|---|---|---|---|
preset | select (, bass-round-sub, bass-acidic-line, bass-fat-saw, bass-pluck-wood, bass-reese, lead-bright-saw, lead-square-chip, lead-sync-sweep, lead-soft-whistle, lead-gritty, pad-warm-strings, pad-glass-c | "pad-warm-strings" | Sound (preset) |
notes | textarea | "C4+E4+G4:2 A3+C4+E4:2" | Notes. Steps separated by spaces: a note name (C4, F#3, Bb2) or chord (C4+E4+G4), then :beats (default 1) and @velocity (1–127, default 100); r is a rest. A JSON list of {pitch, start, duration, velocity} in beats or a uw-note-clip works too. Ignored when a MIDI file is uploaded. |
midi | file | — | MIDI file (optional). Standard MIDI File (type 0 or 1). All tracks are played by the one sound; the tempo field below is used, not the file’s tempo. |
bpm | number | 120 | Tempo |
patch | textarea | — | Patch JSON (optional). A whole patch from Sinebloom (File → Copy patch JSON) replaces the preset; a partial object changes only the settings it names. Format: docs/AUDIO_ENGINE.md (uw-synth-patch). |
arp | select (off, up, down, updown, random, played) | "off" | Arpeggiator |
arpRate | select (1/4, 1/8, 1/8t, 1/16, 1/16t, 1/32) | "1/16" | Arpeggiator rate |
tail | number | 2 | Tail after the last note. Time for releases, delay and reverb to ring out. |
sampleRate | select (44100, 48000) | "44100" | Sample rate |
Example request
Warm pad chords
curl -X POST https://sinebloompatchtowav.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"preset":"pad-warm-strings","notes":"C4+E4+G4:2 A3+C4+E4:2","bpm":90,"patch":"","arp":"off","arpRate":"1/16","tail":2,"sampleRate":"44100"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://sinebloompatchtowav.usefulweb.app/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
sinebloom_patch_to_wav - Local stdio connector:
node src/mcp-stdio.ts --tool=sinebloom-patch-to-wav
{
"mcpServers": {
"sinebloom-patch-to-wav": { "type": "http", "url": "https://sinebloompatchtowav.usefulweb.app/mcp" }
}
}