Editor Workflows
VCA Audio Compressor
A navy-and-cream compressor panel: a VU meter with a red needle and an LED ladder follow a drifting signal, with three knobs for threshold, ratio and makeup gain.
canvasmedium complexitymoderate motionpointeraccessible
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
1
When to use it
Audio editors, DAW mockups and plugin pages that need a small dynamics panel where knobs change the gain reduction shown on the meter.
When not to
Real audio work. The input signal is a sine-plus-noise simulation, and the knobs only move the meter.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the starting values with threshDb, ratio and makeup in the script, and the knob ranges in the knobs array (min, max, step, sensitivity). Colours come from --sc-navy, --sc-red, --sc-red-t and --sc-cream on :root. Each knob is a .sc04-knob-dial slider that keeps aria-valuenow in step; keep the arrow, Home, End and Page keys.
Safe to edit
- knob ranges and steps (knobs array)
- starting threshold, ratio and makeup (threshDb, ratio, makeup)
- signal drift speed (performance.now() * .005)
- panel colours (--sc-navy, --sc-red, --sc-red-t, --sc-cream on :root)
- LED colour breakpoints (.sc04-lit-grn, .sc04-lit-yel, .sc04-lit-red)
Keep intact
- demo-v1 preview lifecycle: initialize demoEnabled from window.__foreverPreview and stop attract work on the window forever:interactive event; retain manual feedback, settling, cleanup and explicit sessions
Known limitations
- State remains local to each mounted instance; format/theme remount preserves takeover, not component values.
More Editor Workflows components
- Markdown SplitA focused Markdown control flips between readable source and rendered preview, with one large two-state selector designed to stay legible inside a 300px…
- Comment ComposerA single reply control types a useful comment, presses its send action and resolves to a clear sent state without shrinking into a miniature discussion…
- Mention PickerA compact mention field types @ma, reveals one large teammate result, highlights it and resolves into a clear @maya token sized for the public canvas.
- Autosave DraftOne document-status control moves from edited to saving to saved, morphing a neutral dot into a spinner and confirmation mark at clear 300px-tile scale.
- Suggested EditsOne focused inline revision replaces a vague phrase with an exact result, then demonstrates both accept and reject outcomes with large controls.
- Focus WritingA compact focus-mode control turns on, then moves a crisp reading spotlight across three short lines while surrounding copy recedes.