webaudio-guide SKILL.md skillA
webaudio-guide from gourdja/sonic-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add gourdja/sonic-skills/webaudio-guide@git:20260515.3a80b75Pins git:20260515.3a80b75 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- gourdja/sonic-skills
- Path
skills/webaudio-guide/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260515.3a80b75, committed May 15, 2026
- Size
- 3,628 bytes
- Repository stars
- 4
- License
- Unlicense
Step-by-step guide for building Web Audio processing pipelines — AudioWorklet processors, custom nodes, parameter automation, and WebMIDI integration. Use when the user asks how to build or wire up Web Audio code from scratch. Trigger on phrases like "build an AudioWorklet", "create a custom Web Audio effect", "how do I use WebMIDI", "how do I write an AudioWorkletProcessor", or "how do I connect AudioNodes".
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Web Audio Processing Guide
## Step 1 — Set up AudioContext and load worklet module
- Create `AudioContext` inside a user gesture handler (click, keydown) to satisfy autoplay policy.
- Call `await audioContext.audioWorklet.addModule('path/to/processor.js')` before creating nodes.
- The module path is resolved relative to the page; bundlers may require special config (e.g. Vite's `?worker&url` import).
- Check `audioContext.state` and call `audioContext.resume()` if it is `'suspended'`.
## Step 2 — Write the AudioWorkletProcessor
- Subclass `AudioWorkletProcessor` in a separate file; call `registerProcessor('name', Class)` at module scope.
- Implement `process(inputs, outputs, parameters)` — `inputs[n][channel]` and `outputs[n][channel]` are `Float32Array` views for the current render quantum. Use `.length` in loops instead of hardcoding 128.
- Pre-allocate all working buffers in `constructor()`; never create objects or arrays inside `process()`.
- Declare custom `AudioParam`s via `static get parameterDescriptors()` returning an array of `{ name, defaultValue, minValue, maxValue, automationRate }` descriptors.
…Read the whole file at its exact version.
How to install
mdr add gourdja/sonic-skills/webaudio-guide@sha256:38c9985fca1ba4bfThe line at the top of this page pins the label git:20260515.3a80b75, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_6ru6ttgixyqrh7ad)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on May 15, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3628 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
gourdja/sonic-skills · 4 stars · license Unlicense · pushed 2026-10-12 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_6ru6ttgixyqrh7ad GET https://markdownregistry.com/api/v1/resolve?ref=gourdja/sonic-skills/webaudio-guide GET https://markdownregistry.com/api/v1/blob/38c9985fca1ba4bf055f0c81645c111101f5d1515cd5087fb7961c7ea1b2ac10
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.