/pulp:audio-harnessfrom pulp
Prove and inspect what a Pulp processor emits — run the audio observability harness (metrics, scenarios, contracts) and the offline Audio Doctor analyzers (frequency response, THD)
Ships in pulp. Installing the plugin adds it to Claude Code.
Turn "is there sound / does this sound right?" into deterministic signal evidence,
offline — no audio device, no speakers. This wraps the audio-harness skill;
read it (.agents/skills/audio-harness/SKILL.md) for the full vocabulary and the
copy-this patterns.
Build Release (Debug mismeasures DSP levels/timing) and run the proofs:
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j$(sysctl -n hw.ncpu) --target \
pulp-test-audio-support pulp-test-render-scenario pulp-test-audio-contracts \
pulp-test-audio-doctor pulp-test-golden pulp-test-audio-matrix pulp-test-audio-tone-regression
ctest --test-dir build -R 'audio|golden|render|contract|doctor' --output-on-failure
What you get:
analyze() + summarize(): peak/RMS/DC/NaN/clip/silence-run
and a dominant-pitch estimate, so "no sound" becomes "which stage went silent".RenderScenario renders a processor deterministically
across sample rates / block sizes; AudioContract states a named claim and a
failure reads contract '<name>': expected … actual …, never a raw sample index.response_relative_to_input() for a magnitude /
frequency-response curve (attenuation_db_at(hz)), measure_thd() for THD /
THD+N + harmonic breakdown. Curves serialize to schema-versioned JSON.pulp audio validate <verb> CLI — the same analyzers over captured audio
files / audio-run/ bundles, no plugin instantiation:
pulp audio validate summarize out.wav [--json] — signal summarypulp audio validate doctor out.wav --thd [--fundamental <hz>] / --response f1,f2,...pulp audio validate compare a.wav b.wav [--mode null|spectral] [--tolerance <dbfs>]pulp audio validate assert audio-run/assertions.json — re-check stored assertions, nonzero on failurepulp audio render CLI — offline scenario render of an explicit plugin
bundle through PluginSlot, no DAW or audio device:
pulp audio render --plugin <bundle> --out out.wav --duration-ms 1000--input-signal, --input, repeatable --param, and repeatable --midi--param <id>=<value>[@frame] values are the PLAIN native parameter domain,
not normalized; @frame is sample-accurate (block-rate on LV2 by its
control-port nature, and on any plugin that reads its params once per block)pulp_audio_render MCP tool (returns the metrics JSON;
takes a single param/midi token — use the CLI for multiple)To add coverage for a new effect, copy the nearest contract fixture in
test/test_audio_contracts.cpp (or a Doctor case in test/test_audio_doctor.cpp)
and adjust the expectations — don't hand-roll sample loops. For a captured WAV or
an audio-run/ bundle, reach for the pulp audio validate verbs above. For a
plugin bundle that needs a deterministic offline scenario, use pulp audio render.
Live in-app inspection has landed in
/audio-inspectandpulp run --audio-inspector. Live capture-to-WAV has landed in two modes:pulp run --audio-capture-wav(earliest window, int16 — presence/level/clip) andpulp run --audio-capture-rolling(last/steady-state window, float, or--audio-capture-rolling-format int24— the windowdoctor/comparewant). Pick among the fixtures, Audio Scope, the two live captures,pulp audio validate, andpulp audio renderaccording to the window/source you need.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub danielraffel/burl --plugin pulp28 commands in this plugin
/audio-compareAdvisory before/after audio judgment — measure → compare → judge two renders and weigh in on a DSP change with cited evidence (agent-facing, not a gate)/audio-inspectOpen the developer Audio Inspector window — live meters, probe-stage status, copied waveform, L/R level-match + balance, and a device/runtime summary/bakeFreeze a graph into a signed .pulpbake artifact (or verify one)/ciRun CI validation, create PRs, and merge on green/ci-hostOnboard a Mac as a Tart-VM CI host (optional; wraps setup-ci-host.sh)/codex-consultConsult OpenAI Codex (`codex exec`) for a second opinion on a prompt. Handles the argv-hang, stdin-mode, reasoning-effort, and timeout gotchas so the invocation always works. Accepts `$ARGUMENTS` as the prompt, or reads from a provided prompt file.Other plugins' commands for the same job