/cdp-sound-design:cdp-sound-designfrom CDP Sound Design
Sound design and audio processing via CDP (Composers Desktop Project) ported to WASM. Write Node ESM scripts to transform, granulate, time-stretch, pitch-shift, spectral blur, morph, vocode, filter, synthesize, batch-process, and analyze audio files.
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.
cdp-wasm is a port of the Composer's Desktop Project (CDP) command-line sound-transformation programs compiled to WASM and wrapped in a typed Node.js API. Orchestrate by writing small Node ESM scripts against the library and running them with node — code is more expressive than any fixed tool surface for chains, batches, and automation. The package also ships a cdp CLI (<pkgDir>/bin/cdp.js, where <pkgDir> comes from check-env below) that runs single CDP commands against files on disk; use it for quick one-shots and utilities — cdp help <program> [mode] (authoritative usage text + a link to the online CDP reference; add --catalog for the catalog params), cdp sndinfo len file.wav, cdp doctor, cdp --pvoc blur blur in.wav out.wav 10 — but write scripts for anything multi-step.
All scripts and references below are relative to the directory containing this SKILL.md. Resolve that directory as <skill> in the commands below, regardless of which agent or installer loaded the skill.
node <skill>/scripts/check-env.mjs
It locates the library (a project-local npm install, a global npm i -g cdp-wasm, or a cdp-wasm repo checkout — in that order), verifies the WASM artifacts, and prints the exact await import('file://…') line to use. Copy that import line literally into every script you write — never guess the path. If it reports an error, relay its remediation steps to the user verbatim and stop; don't improvise installs.
node <skill>/scripts/list-effects.mjs — the full catalog (232 effects across 110 CDP programs + 16 synthesis generators), one compact JSON line each with param ranges. Run once and choose from it.node <skill>/scripts/describe-effect.mjs <id> [...] — full parameter help, which params accept breakpoint envelopes, input requirements, and the CDP manual prose (when the library's docs/ folder is present). Describe every effect you're about to use — param meanings are often not what the name suggests.The other ~96 programs not yet wrapped in the catalog are callable raw — see references/raw-programs.md.
Audio flows between steps as WAV bytes (Uint8Array) in memory; files only at the edges.
import { readFile, writeFile } from 'node:fs/promises';
const { CDP, EFFECTS, applyEffect } = await import('<LIB from check-env>');
const cdp = new CDP();
const src = new Uint8Array(await readFile('voice.wav'));
const fx = (id) => EFFECTS.find((e) => e.id === id);
let wav = await applyEffect(cdp, fx('stretch.time'), { factor: 3 }, src);
wav = await applyEffect(cdp, fx('blur.blur'), { windows: 40 }, wav);
await writeFile('cdp-renders/ghost-voice/voice__stretch-blur.wav', wav);
Values you leave out take the catalog default for that source — some ranges depend on the input sound (list-effects marks them †, describe-effect flags sourceRelative and any minSrcDur/maxSrcDur), and applyEffect refuses a source outside those lengths with a plain error rather than a CDP range error. To see the resolved values first: defaultsFor(effect, { dur, srate, chans }).
Generators (sources from nothing) mirror this: applyGenerator(cdp, GENERATORS.find(g => g.id === 'wave'), { freq: 110, dur: 4 }) returns WAV bytes — pass { sampleRate } as the 4th arg to match the session rate (default 44100; a couple of generators are hard-locked to 44100 — describe-effect prints a note on them).
Inputs can be WAV or AIFF/AIFF-C — CDP reads both natively and decodeAudio sniffs the header; outputs are 32-bit float WAV (a few programs that reject float fall back to 16-bit internally — decode/re-encode handles both transparently). The library can also measure sounds — pitch contour (getPitch), peak/onset times (findPeaks), amplitude envelope (extractEnvelope) — and feed the data back into parameters: references/analysis.md.
For a plain linear chain you can skip the script: node <skill>/scripts/render-chain.mjs '<spec JSON>' runs source → steps → output file from a JSON spec (see the header of that file for the format). It also accepts raw { "run": ... } steps. Anything non-linear — parallel layers, per-channel divergence, mixing — write a real script (references/chains.md). The spec is internal plumbing, not a preset format (recipes live in the cdp-web project).
./cdp-renders/<job-slug>/ in the user's working directory.<source-stem>__<chain-slug>.wav. Variation banks: …__v01.wav, …__v02.wav, …flags: spectral) are auto-wrapped in pvoc anal → effect → pvoc synth. Never wrap them in pvoc yourself. Output duration can differ slightly from input (analysis-window granularity).list-effects/describe-effect flag them. multiout effects (partition.*, cantor.*, isolate.*, distcut.envelope, envcut.envelope, housekeep.split) return { outputs, names } (an array of WAVs), so writeFile(path, result) would write garbage — write each outputs[i] under names[i]. variadic (rejoin.rejoin) and multi-input mixchain effects (multimix.*, panorama.spatial) take their extra sounds via extra.inputs (an array of WAVs). mixchain/multichan effects (also crumble.*, tangent.tangent, transit.transit) return a multichannel WAV whose width the effect sets, not the source's. Worked examples: references/chains.md.pipeline: effects (autotune/pitch-data ones — describe-effect flags them) ignore breakpoint envelopes.envelope: true accept extra.brk. Format and rules: references/breakpoints.md.cdp.run: virtual MEMFS paths (/in.wav) inside args, real paths never; each run is a fresh FS, and CDP refuses to overwrite an existing virtual output file within one run.references/chains.md).| Reference | When to read it |
|---|---|
references/chains.md | Layering/mixing, per-channel processing, two-input effects, normalising |
references/breakpoints.md | Time-varying parameter automation, generator $DATA text files |
references/analysis.md | Extracting pitch contours / peak times and driving parameters with them |
references/raw-programs.md | Driving the ~96 programs not yet wrapped with cdp.run |
references/batch-jobs.md | Folders of samples, variation banks, multi-layer texture jobs |
The library's docs/ folder (repo checkouts only — the npm package doesn't ship it) has deeper prose: docs/guide/ (spectral-pvoc.md, breakpoints.md, mono-and-channels.md), docs/effects/*.md, and docs/generators/*.md. On npm installs, cdp help <program> [mode] still prints the native usage text plus a link to the online CDP reference (cdp help <program> --catalog for the catalog params, and the package ships man/man1/cdp-*.1 pages with the same usage text).
agents/openai.yaml (opens in a new tab)references/analysis.md (opens in a new tab)references/batch-jobs.md (opens in a new tab)references/breakpoints.md (opens in a new tab)references/chains.md (opens in a new tab)references/raw-programs.md (opens in a new tab)scripts/_resolve.mjs (opens in a new tab)scripts/check-env.mjs (opens in a new tab)scripts/describe-effect.mjs (opens in a new tab)scripts/list-effects.mjs (opens in a new tab)scripts/render-chain.mjs (opens in a new tab)scripts/smoke.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/build-cdp-web-patchesBuild, validate, save, share, and preview editable cdp-web patch graphs. Use when the user asks for a cdp-web patch, `.cdp` file, patch recipe, editable CDP graph, browser-based CDP chain, shareable CDP link, `#patch=` URL, or wants a CDP sound-design idea opened in the cdp-web frontend rather than only rendered to audio./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.npx claudepluginhub cdp-wasm-suite/cdp-wasm --plugin cdp-sound-designOther plugins' skills for the same job