/cdp-sound-design:build-cdp-web-patchesfrom CDP Sound Design
Builds, validates, and shares cdp-web patch graphs for sound design. Compiles JSON specs into .cdp files with shareable URLs.
Ships in CDP Sound Design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Create native cdp-web-patch v1 documents and links for https://cdp-web.app. Prefer the bundled builders and validator over hand-authoring serialized patch JSON.
Resolve every path below relative to this SKILL.md; call that directory <skill>.
Run once per session:
node <skill>/scripts/check-env.mjs
Stop and relay its remediation if it fails. Building patches needs the cdp-wasm JavaScript catalog but does not need compiled WASM artifacts.
Run node <skill>/scripts/catalog.mjs for compact catalog lines. Run it with IDs for full definitions and parameter ranges:
node <skill>/scripts/catalog.mjs blur.blur stretch.time wave
Inspect every effect and generator before using it. Never guess an ID, parameter name, range, input count, or envelope capability.
Write a small JSON authoring spec, then compile it to .cdp:
node <skill>/scripts/build-patch.mjs /tmp/my-patch-spec.json
The default output is ./cdp-patches/<name>.cdp. The command validates it and prints its cdp-web share URL.
kind: "linear" for one source followed by ordinary single-input effects. The builder inserts PVOC Analyse/Resynthesise adapters.kind: "two-input" for catalog effects with inputs: 2. The builder adapts both spectral branches.kind: "graph" for branches, layers, banks, Gather/Pick, breakpoint cables, raw transforms, or Faust. The builder inserts spectral adapters on ordinary graph edges by default.Treat Faust as a cdp-web-only node type. cdp-wasm does not contain a Faust compiler or execute Faust DSP; these scripts only serialize and structurally validate Faust nodes. Compile, audition, and verify their DSP in cdp-web, which supplies @grame/faustwasm. Never report a Faust patch as render-validated until it has run there.
Read references/patch-format-v1.md before authoring graph mode or any nontrivial patch.
Example linear spec:
{
"kind": "linear",
"name": "Ghost voice",
"source": {
"type": "url",
"url": "https://example.org/audio/voice.wav",
"name": "voice.wav"
},
"steps": [
{ "effect": "stretch.time", "values": { "factor": 3 } },
{ "effect": "blur.blur", "values": { "windows": 40 } }
]
}
Use generator sources when no hosted sound is needed:
{ "type": "generator", "generatorId": "wave", "values": { "shape": "1", "freq": 220, "dur": 3 } }
Validate a new or existing native patch explicitly when needed:
node <skill>/scripts/validate-patch.mjs path/to/patch.cdp --shareable
node <skill>/scripts/patch-url.mjs path/to/patch.cdp
Always keep the .cdp file even when the requested deliverable is a link. Warn when a Source uses disk audio, and note the link length build-patch.mjs prints: links keep working when long, but past ~2.9 KB cdp-web can no longer render the QR code its share panel offers. A disk-picked sound does not travel; a portable sound Source needs an absolute HTTPS URL whose server permits browser CORS requests. Do not upload user audio without explicit authorization and a named destination.
A share URL is a verbatim artifact, not text to reproduce. Its payload is commonly over a thousand base64url characters, and a single wrong, dropped, or added character makes the whole link undecodable — cdp-web opens an error in its log dock instead of the patch. Copy the exact line the scripts printed. Never retype a payload, reflow it across lines, shorten it with an ellipsis, or reconstruct one from an earlier message.
Verify the exact string before handing it over, whenever a link passes through a message, a file, or a summary:
node <skill>/scripts/verify-url.mjs "<the full URL you are about to send>"
node <skill>/scripts/verify-url.mjs "<url>" --patch path/to/patch.cdp
It decodes the link exactly as cdp-web does and fails loudly on a corrupt, truncated, wrapped, or hand-copied payload. --patch additionally confirms the link carries that .cdp and not an older one. On failure, regenerate with patch-url.mjs and copy the fresh line — never patch up the broken string.
Return the .cdp path and a clickable share URL. If the user asks to open or preview it and browser-control capability is available, navigate that browser to the generated URL and verify that cdp-web loads the graph. Accept the confirmation dialog if cdp-web already has an autosaved patch. If browser control is unavailable, provide the URL without treating that as failure. Do not invoke an OS-level browser merely to satisfy previewing unless the user requested it.
metadata.name; add a description when the musical intent is non-obvious.audio/... URLs are only for sounds bundled with the deployed cdp-web app.patch-url.mjs or build-patch.mjs output, after verify-url.mjs has passed on the exact string.cdp-sound-design skill as well when the user also requests rendered audio, analysis-driven parameters, or listening-oriented iteration.agents/openai.yaml (opens in a new tab)references/patch-format-v1.md (opens in a new tab)scripts/_resolve.mjs (opens in a new tab)scripts/build-patch.mjs (opens in a new tab)scripts/catalog.mjs (opens in a new tab)scripts/check-env.mjs (opens in a new tab)scripts/patch-lib.mjs (opens in a new tab)scripts/patch-url.mjs (opens in a new tab)scripts/validate-patch.mjs (opens in a new tab)scripts/verify-url.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub cdp-wasm-suite/cdp-wasm --plugin cdp-sound-design3 skills in this plugin
/cdp-sound-designSound design and audio processing with the CDP (Composers Desktop Project) via cdp-wasm. Use whenever the user wants to transform, process, mangle, granulate, time-stretch, pitch-shift, spectrally blur, morph, vocode, reverse, filter, or synthesize audio files; build multi-effect processing chains; batch-process folders of samples; render banks of sound variations; analyse audio (extract a pitch contour or amplitude envelope, detect onsets/peaks) or make one sound follow another's pitch or dynamics; or mentions CDP, phase vocoder / pvoc, granular, spectral, or "sound design" — even if they don't name a specific tool./drive-cdp-webDrive a live cdp-web app running in Chrome through its WebMCP agent tools, using the chrome-devtools MCP as the transport. Use whenever the user wants Claude to control, puppeteer, or remote-drive cdp-web in a browser — connect to the cdp-web tab or installed PWA, build or edit a patch live on the canvas, load sounds, set parameters, render, or test the WebMCP tool surface — including phrases like "control the mcp", "drive cdp-web", "build a patch in the browser", or "connect to the cdp-web app". For authoring .cdp files or share links offline (no browser), use build-cdp-web-patches instead; for rendering audio offline via cdp-wasm, use cdp-sound-design.Other plugins' skills for the same job