# audio/ui > Audio controls for React: knobs, faders, meters, waveforms, timelines, sequencers and piano rolls, as headless primitives on npm or shadcn/ui components. audio/ui has two layers, both in the `@audio-ui` shadcn registry, whose code you copy into your project and own: headless, accessible primitives, one adapter per framework (React, Vue, Svelte and the web), and styled components and ready blocks for React. The styled components need React 19 and Tailwind CSS v4. - Install a component: `npx shadcn@latest add @audio-ui/knob` - Install a headless primitive: `npx shadcn@latest add @audio-ui/knob-react` (`-vue`, `-svelte` and `-web` for the other frameworks) - Every docs page is also served as markdown: replace `/docs` with `/llm` in its URL. - Created by [Cécé Lucien Loua](https://loua.tech). Source: https://github.com/ouestlabs/audio-ui When to use audio/ui: - An app needs an audio control or display that works with a pointer, a keyboard and a screen reader: a knob, fader, XY pad, envelope, level meter, waveform, spectrum analyzer, tuner, drum pad or piano keyboard. - You are building the screens of a DAW, a synth, a mixer, a sampler or a player: an arrangement timeline, a piano roll, a step sequencer, a mixer, a transport bar, or the panel of an effect such as a compressor, an EQ or a reverb. - The sound comes from an engine of your own (Web Audio, an AudioWorklet, WASM): the workstation parts and the devices are controlled, values in and callbacks out, and need none of our audio hooks. - The app is in Vue, Svelte or the web: the registry has every primitive for them. It is not made for React Native or other native apps, nor for audio processing that has no interface to show. How an agent should use it: 1. Pick the layer: the styled components of the `@audio-ui` registry when the project has a `components.json` (shadcn/ui, Tailwind CSS v4), its headless primitives otherwise. 2. Find the component: the pages below, the `search_docs` and `list_components` tools of the MCP server, or the same queries over the REST API (`/api/v1/search?q=` and `/api/v1/components`). 3. Read its page as markdown before writing code: its API reference lists every part and prop. 4. Install it with the command on that page. Registry components land in `components/audio-ui/`. ## Guides - [Agent Skill](https://www.audio-ui.dev/llm/agents): Give your coding agent the audio/ui skill so it picks the right component, wires it to Web Audio without clicks, keeps live data out of the render and styles the primitives. - [REST API](https://www.audio-ui.dev/llm/api): Read the components, their docs and the catalog as JSON from https://www.audio-ui.dev/api/v1: public, read-only and versioned. - [CLI](https://www.audio-ui.dev/llm/cli): Add audio/ui components to a React, Vue, Svelte or plain web project with one command: the files are copied in, and they are yours. - [First Component](https://www.audio-ui.dev/llm/first-component): Add a knob to your app and style its state. - [Get Started](https://www.audio-ui.dev/llm): Paste one prompt into your agent and you're set up. Then pick where to go next. - [Installation](https://www.audio-ui.dev/llm/installation): Set audio/ui up by hand in your framework, as the prompt of Get Started does for you. - [Introduction](https://www.audio-ui.dev/llm/introduction): Accessible audio controls for React, Vue, Svelte and the web, as headless primitives and as styled components you copy into your shadcn/ui project. Built to be used by people and by AI agents. - [MCP](https://www.audio-ui.dev/llm/mcp): Connect your AI agent to audio/ui with the MCP server, to list components, read their docs and search the catalog. - [Roadmap](https://www.audio-ui.dev/llm/roadmap): What audio/ui ships today, and what comes next. - [Theme tokens](https://www.audio-ui.dev/llm/styling): The color tokens audio/ui adds to the shadcn/ui theme: semantic states, and the audio tokens a skin sets to change the material of a control. ## Guides - [Overview](https://www.audio-ui.dev/llm/guides): What makes the sound behind the components: the hooks and libraries audio/ui ships on the Web Audio API, and how an engine of your own drives the same components. - [Output](https://www.audio-ui.dev/llm/guides/output): The page's one audio context, and a master bus with a safety limiter that every sound of a screen goes through. - [Clock and time](https://www.audio-ui.dev/llm/guides/clock-and-time): A transport clock that schedules notes ahead on the audio clock, with a loop, seeking and tempo changes, and the musical time it counts in. - [Playback](https://www.audio-ui.dev/llm/guides/playback): Playing an arrangement's audio clips on the audio clock, to the frame: a transport in frames, a player per track in an AudioWorklet, and the mixer's arithmetic. - [Synthesis](https://www.audio-ui.dev/llm/guides/synthesis): Synth voices shaped by an envelope, chords on an instrument that plays one voice, the ramps that shape them, and drum hits made from oscillators and noise. - [Demo sounds](https://www.audio-ui.dev/llm/guides/demo-sounds): The two sounds the previews play, made with Web Audio and no samples: listen to each and ask for one by name. - [Input](https://www.audio-ui.dev/llm/guides/input): A MIDI keyboard and the microphone: the notes of the page's MIDI input, and the microphone as an analyser. - [Analysis](https://www.audio-ui.dev/llm/guides/analysis): Live levels and spectra from an analyser, in the shape a meter or a plot reads, and the analysis functions behind them. - [Device signal](https://www.audio-ui.dev/llm/guides/device-signal): What a device's face shows of its sound while it plays: the points of its engine it is read at, how a device declares them, the sources a panel draws from, and when the analysers come off. ## Hooks - [useMasterBus](https://www.audio-ui.dev/llm/hooks/use-master-bus): A master output bus with a safety limiter: every source connects into one gain node that a single fader governs. - [useDeviceEngines](https://www.audio-ui.dev/llm/hooks/use-device-engines): The engines of a device on a page: as many as asked, made on a destination's context from the state of the moment, each following the state and the host's tempo, disposed when the destination changes and on unmount, never updated once disposed. One for an effect, one per voice for an instrument. - [useDeviceSignal](https://www.audio-ui.dev/llm/hooks/use-device-signal): The live sound of a device's engine for its panel's signal prop: the same object for the life of the component, following the engine as it changes, listening only while the panel watches it - [usePolyphony](https://www.audio-ui.dev/llm/hooks/use-polyphony): An instrument whose engine plays one voice, played as chords: as many engines as notes sound at once, made into a destination, each following the state, every note on a voice of its own. - [useDeviceLoop](https://www.audio-ui.dev/llm/hooks/use-device-loop): A sound of the app's looped through an effect's engine and out to a destination: it plays while the session's play switch is on, the engine is made for it and follows the state (use-device-engines), and the engine is returned for the panel's live sound (use-device-signal). - [useSynthVoices](https://www.audio-ui.dev/llm/hooks/use-synth-voices): Polyphonic synth voices on the Web Audio API: start and release notes with an envelope, a velocity and a pitch bend. - [useTransportClock](https://www.audio-ui.dev/llm/hooks/use-transport-clock): A look-ahead transport clock on the audio clock: it calls back with the audio time of each step so notes are scheduled sample-accurately, with a loop region, seek and tempo changes. - [usePianoRollPlayback](https://www.audio-ui.dev/llm/hooks/use-piano-roll-playback): Plays a piano roll's notes, which you own: play, pause and stop, a loop or once through, a metronome, seeking, and the notes the roll auditions, with a playhead for the timeline and a clock for the transport. - [useMidiInput](https://www.audio-ui.dev/llm/hooks/use-midi-input): The notes of the page's MIDI input, with velocity and pitch bend: every component that calls it hears the same devices. - [useComputerKeyboard](https://www.audio-ui.dev/llm/hooks/use-computer-keyboard): The computer's keyboard as a keyboard of notes, as in a DAW: the middle row from A plays the white keys and the row above the black ones, by where the keys sit; Z and X move an octave, C and V the velocity. - [useMicrophone](https://www.audio-ui.dev/llm/hooks/use-microphone): The microphone as an AnalyserNode on the shared AudioContext: raw signal, never connected to the speakers, released on stop and on unmount. The session's switch, usePageMicrophone, lets a button turn it on for a demo - [usePitch](https://www.audio-ui.dev/llm/hooks/use-pitch): The pitch of a signal as a live source: the note nearest the sound and its offset in cents, steadied by a median and held a moment after the sound stops, with no React render per reading - [useAudioLevels](https://www.audio-ui.dev/llm/hooks/use-audio-levels): The live levels of a signal from its AnalyserNodes, in the shape a Meter paints from: RMS in dB per channel with a peak that holds and falls, refreshed every frame without re-rendering - [useSpectrum](https://www.audio-ui.dev/llm/hooks/use-spectrum): The spectrum of an AnalyserNode as a live source for Plot.Trace: dB per point on a logarithmic frequency axis, refreshed every frame without re-rendering, and its held peaks as a second source - [useLoudness](https://www.audio-ui.dev/llm/hooks/use-loudness): How loud a signal is while it plays, in LUFS, as streaming services and broadcasters measure it (ITU-R BS.1770): its momentary, short-term and integrated loudness, measured on the audio thread, as a live source refreshed every 100 ms without re-rendering - [useAudioSignal](https://www.audio-ui.dev/llm/hooks/use-audio-signal): An AnalyserNode as live signals for a waveform: the loudest sample of the moment, frequency bands and the raw samples, read every frame without re-rendering - [useSimulatedLevels](https://www.audio-ui.dev/llm/hooks/use-simulated-levels): Levels that move on their own, with a peak that holds and falls, in the shape a Meter paints from: a demo meter that is never at rest - [useArrangement](https://www.audio-ui.dev/llm/hooks/use-arrangement): The state of an arrangement of clips on tracks, with its operations: selection, group moves and copies, split, duplicate, delete, adding and removing tracks, per-track mix and height, and undo and redo over tracks and clips - [useUndoHistory](https://www.audio-ui.dev/llm/hooks/use-undo-history): Undo and redo over a value you own: an edit made in one go, or a gesture that undoes as one. - [useTimelineZoom](https://www.audio-ui.dev/llm/hooks/use-timeline-zoom): The zoom of an arrangement's timeline: it fits the view beside the track headers until it is zoomed, zooms around a time that stays put on screen, fits a stretch of time, steps back through the zooms it left, and keeps its bars when the tempo changes. - [useTimelineGrid](https://www.audio-ui.dev/llm/hooks/use-timeline-grid): The grid of an arrangement's timeline: adaptive to the zoom or a fixed division, straight or triplet, snapping or not, its name for a menu button, and the changes Cmd/Ctrl + 1 to 5 make. - [useTimelineCursor](https://www.audio-ui.dev/llm/hooks/use-timeline-cursor): What the keyboard does with an arrangement's cursor: the arrows on the grid, Home and End, Up and Down to pick a track, Alt and the arrows to jump between locators and clip edges, M to add a locator. - [useTimeSelection](https://www.audio-ui.dev/llm/hooks/use-time-selection): A stretch of time on some tracks of an arrangement, drawn by dragging across bare lanes, with its overlay and what the keyboard does with it: copy, cut, paste, duplicate, consolidate, loop, fade, delete and open time, each one step of undo. - [useLoudest](https://www.audio-ui.dev/llm/hooks/use-loudest): The loudest sample of a recording, from the leaves of a streamed one or read in chunks a frame apart so a long one does not hold the page: what a waveform drawn on the GPU is scaled by, null until it is read. - [useBake](https://www.audio-ui.dev/llm/hooks/use-bake): Changes the samples of a sound as edited: renders what a track's clips play, hands the channels to an operation and puts the result back as one step of undo; process(operation) bakes one of the Process menu's operations, named after it. - [useClipEdits](https://www.audio-ui.dev/llm/hooks/use-clip-edits): The edits of one sound on a track, each one step of undo: Cut, Copy, Paste, Delete, Crop, Mark, Louder and Quieter on a time selection, Trim silence and Shrink pauses from the pauses it is given, and the keyboard of all of them with Undo and Redo. - [useSilenceHover](https://www.audio-ui.dev/llm/hooks/use-silence-hover): The pause under the pointer on a lane, to draw as a zone while it is there: give the lane its pointer handlers and the zoom it is drawn at. - [useSoundReport](https://www.audio-ui.dev/llm/hooks/use-sound-report): Reads the sound of a track as edited, to tell what it is: its loudness, key and tempo, and whether it meets ACX's audiobook requirements, held as a report until it is cleared. - [useTrackReorder](https://www.audio-ui.dev/llm/hooks/use-track-reorder): Reorders tracks: drag a track's grip to move it, with the view scrolling at its edges and a copy of its header under the pointer, or press Up and Down on the grip. With the grip, the copy and the line where the track would land. - [useMarquee](https://www.audio-ui.dev/llm/hooks/use-marquee-selection): A selection rectangle for the clips of a timeline: drag across bare lane (with Shift, or in a multi-select mode) and the clips it touches join the selection - [AudioSessionProvider](https://www.audio-ui.dev/llm/hooks/use-audio-session): A session of its own for a demo and its controls: a play switch and a microphone switch that nothing outside it follows. Holds no audio, so two previews on a page never play together. Outside a session the switches stay off. - [usePlaySwitch](https://www.audio-ui.dev/llm/hooks/use-play-switch): The play switch of the nearest session: a button in its bar flips it, every component inside the session that reads it follows. Holds no audio, so a demo can leave its play button to its host. - [useDemoSource](https://www.audio-ui.dev/llm/hooks/use-demo-source): The sound a device plays: the one chosen in its session, such as from a preview's bar, else the one that shows best what the device does. It tells the session its default, so a bar can offer the choice only where there is one. Outside a session it is always the default. - [useNoiseThroughEq](https://www.audio-ui.dev/llm/hooks/use-noise-through-eq): Pink noise played through an equalizer that follows your bands, with the analyser after it: what a plot draws is what is heard - [useStatusLine](https://www.audio-ui.dev/llm/hooks/use-status-line): A line of status an editor says things on, what it is doing and what an action had nothing to do on, which clears itself after a few seconds. ## Libraries - [device-library](https://www.audio-ui.dev/llm/lib/device-library): Every device of the registry with its engine, by shelf: what a host needs to build a track's chain from the ids a project stores, and what a device browser lists - [device-signal](https://www.audio-ui.dev/llm/lib/device-signal): A device's live sound from its engine, for its panel's signal: what goes in and comes out, its key, its taps and its readings as live sources, read in one frame loop and only while watched - [master-bus](https://www.audio-ui.dev/llm/lib/master-bus): A master output bus on a context: a gain for the volume, then a safety limiter, then the destination. Every source connects to its input, so one control governs the level and a loud mix cannot clip the output. - [polyphony](https://www.audio-ui.dev/llm/lib/polyphony): Chords on an instrument whose engine plays one voice: a note takes the voice that holds it, else a free one, else the one held longest, whose note is let go first. No sound and no engine of its own: it plays the engines it is given. - [voice-pool](https://www.audio-ui.dev/llm/lib/voice-pool): Note players: what a MIDI track plays through, all taking notes the same way, and the voice pool that plays an instrument of the library with a voice for each note it holds, the oldest given up first. - [rack](https://www.audio-ui.dev/llm/lib/rack): Racks: devices in parallel chains, each with its volume, pan, switch and solo, lined up on the slowest and summed, and eight macros that turn parameters of the devices inside over a stretch of their travel; the engine that plays one on a track's chain. - [drum-rack](https://www.audio-ui.dev/llm/lib/drum-rack): Drum racks: an instrument whose chains are pads, each answering a note with the instrument at its head, such as a Drum Synth, or else a voice of the drum synthesis or a recording, into its own devices, a pad of a choke group cutting the others short; the engine that plays one on a MIDI track. - [instrument-rack](https://www.audio-ui.dev/llm/lib/instrument-rack): Instrument racks: an instrument whose chains each start with an instrument of the library, then effects, all played by every note in layers and summed as a rack with its macros; the engine that plays one on a MIDI track. - [mixer-engine](https://www.audio-ui.dev/llm/lib/mixer-engine): A mixer on the Web Audio API: a channel per track and return, with its chain, volume, constant-power pan, switch, solo, pre or post-fader sends, delay compensation and meters, into a main track - [arrangement-engine](https://www.audio-ui.dev/llm/lib/arrangement-engine): Plays an arrangement on the audio clock: its audio clips, its notes through each track's instrument, its device chains, sends and returns, and an offline render to a buffer, with a hook for the transport, the playhead and the meters - [clip-player](https://www.audio-ui.dev/llm/lib/clip-player): A track's player of audio clips on an AudioWorklet: its recordings to the frame on the audio clock, with gain, fades, loops, reverse and warp, in a running or an offline context - [recording](https://www.audio-ui.dev/llm/lib/recording): Recording into an arrangement: an input recorder on an AudioWorklet that keeps each block with its frame on the audio clock, the frames of a take with the latency taken off, and the audio or MIDI clip a take becomes, with record quantization and overdub - [arrangement](https://www.audio-ui.dev/llm/lib/arrangement): The document of an arrangement of clips on tracks: its clips, tracks and mixes, how far a clip reaches, where a MIDI clip's notes play, and what a track's volume and pan automation gives at a point of the song - [drum-steps](https://www.audio-ui.dev/llm/lib/drum-steps): A drum clip's notes as steps: a row per pad, a step per stretch of the grid, with each step's velocity, chance and shift, and the edits a step sequencer makes on the notes (switch a step, set its level, fill a row every n steps). - [piano-roll-tools](https://www.audio-ui.dev/llm/lib/piano-roll-tools): AI-native tool surface for a piano roll, createPianoRollTools builds typed, agent-agnostic tools (setNotes/addNotes/removeNotes/transpose/clear/setTempo) an LLM calls to compose melodies and basslines from natural language, parameterized by the roll's pitch range and grid - [dawproject](https://www.audio-ui.dev/llm/lib/dawproject): An arrangement to and from DAWproject, the open exchange format other DAWs read and write: tracks, returns and the main track with their mix and sends, audio clips with fades, loop and warp, MIDI clips, volume and pan automation, locators, tempo and time signatures, and the equalizer, compressor, gate and limiter; a report says what was left out. With the zip archives it is packed in. - [web-audio](https://www.audio-ui.dev/llm/lib/web-audio): Web Audio Lib - [manifest-worklet](https://www.audio-ui.dev/llm/lib/manifest-worklet): The source of an AudioWorklet processor that plays one of several audio.js manifests (the audio.js of an @audio/* package): the model sent by message, a parameter it reads as it plays changed at once, a model made again for one it is made with, warmed on the last 100 ms and faded in, its state brought back to rest on silence, and a meter of the gain it takes off. - [oversampling](https://www.audio-ui.dev/llm/lib/oversampling): What a waveshaper that oversamples costs in time, and a delay that holds a dry path back by it, so a distortion mixed with its dry sound does not comb. Measured in Chrome. - [synced-rate](https://www.audio-ui.dev/llm/lib/synced-rate): The rate of an oscillator that is either free, in hertz, or synced: one cycle per note value of the host's tempo. The two parameters a device adds for it, and the function that reads the rate. - [envelope-ramp](https://www.audio-ui.dev/llm/lib/envelope-ramp): Envelope curves to gain automation: slicing an envelope at its sustain and scheduling its ramps on a GainNode's AudioParam, for synth voices - [drum-synthesis](https://www.audio-ui.dev/llm/lib/drum-synthesis): One-shot percussion synthesis (kick, snare, hihat) built from oscillators and noise bursts, each with its own tune and decay - [simulated-levels](https://www.audio-ui.dev/llm/lib/simulated-levels): Levels that move on their own, with a peak that holds and falls, in the shape a Meter paints from, as a live source for any framework - [step-player](https://www.audio-ui.dev/llm/lib/step-player): A clock that counts the steps of a pattern at a tempo and tells a Sequencer which one is playing, for a preview in any framework - [audio-export](https://www.audio-ui.dev/llm/lib/audio-export): Exporting rendered sound to a file: the settings an export picks (format, bit depth or bitrate, a level left as it is, brought to its peak or to a loudness target) and exportSound, which measures, normalizes and encodes, saying how far it is - [clip-edits](https://www.audio-ui.dev/llm/lib/clip-edits): The pure parts of editing one sound on a track of an arrangement: taking time out and the crossfade at its seam, the fades and level of a stretch of time, how far a pause is shrunk, and which keys are a field's own. - [sound-operations](https://www.audio-ui.dev/llm/lib/sound-operations): The operations that change a sound's samples, as data: Reverse, Repeat, Add silence, Normalize, Pan, Dither, Filter, Stretch, Pitch, Speed and Repair, with Delete, Crop, Paste and Gain; applySoundOperation runs one on plain channels, on all of them or a stretch, soundOperationName names it as a step of the history. - [undo-history](https://www.audio-ui.dev/llm/lib/undo-history): Undo and redo as a value: a pure history of any document, with bursts (a drag is one entry), redo that drops on a new change, and a depth limit - [sortable-drag](https://www.audio-ui.dev/llm/lib/sortable-drag): The gesture of reordering a row by dragging one of its items: the others slide aside, the item shows dimmed where it would land, what follows the pointer settles there, the view scrolls at its edges and Escape puts it back, with ui-sdk following the pointer. No render while it moves. - [demo-sound](https://www.audio-ui.dev/llm/lib/demo-sound): The sounds the previews play, by name: Boom bap and Drone, with the kick that goes with the first. Drawn once in code and looped as a buffer, no samples. - [demo-song](https://www.audio-ui.dev/llm/lib/demo-song): A chill song at 80 BPM on one two-bar loop, E minor seven, G and A, all of it notes for MIDI tracks: its drums on a drum kit's pads, one part each with a fill, and an organ, a pad, a bass and a lead hook. What the arrangement's demo plays. - [drum-kit](https://www.audio-ui.dev/llm/lib/drum-kit): A drum kit to start a drum rack from: a pad per drum on the General MIDI notes, each a Drum Synth at the head of its chain, the snare and the clap in a small room, the hats in one choke group. ## Engine - [Engine](https://www.audio-ui.dev/llm/engine): The engine: the audio logic behind audio/ui's interfaces, with no UI framework in it: devices as parameters, musical time and the look-ahead scheduler, levels and curves, MIDI input, scales and the clip player. - [device](https://www.audio-ui.dev/llm/engine/device): A device as a description: defineDevice and its parameters, a state and apply with what each change did, the bindings an engine implements, and the tools an agent drives it with. - [dsp](https://www.audio-ui.dev/llm/engine/dsp): The audio.js processors the registry's devices are built on: compressor and expander models, the gain curves of dynamics, filter circuits, reverbs and biquad shelves, under one dependency. - [kernels](https://www.audio-ui.dev/llm/engine/kernels): The audio.js kernels each device of the registry runs in an AudioWorklet: every module as published, in a string, since a worklet cannot import. - [time](https://www.audio-ui.dev/llm/engine/time): Musical time: tempos and signatures, bars and beats, grid divisions and their labels, tempo-synced note values, warp markers, the metronome, and the look-ahead scheduler a transport clock runs on. - [analysis](https://www.audio-ui.dev/llm/engine/analysis): Reading a signal: levels in dB, a spectrum on a log axis and its held peaks, the curves of a filter, an equalizer and a compressor, waveform peaks, transients, pauses and auto-warp. Plain functions, for the main thread, a worker or a worklet. - [pitch](https://www.audio-ui.dev/llm/engine/pitch): Named scales: the steps of each scale, the pitch classes a scale on a root keeps, whether a pitch is in it and the nearest one that is, and the scale as a piano roll reads it. - [midi](https://www.audio-ui.dev/llm/engine/midi): MIDI input: every connected keyboard and controller as one source through the Web MIDI API, raw messages read into notes, controllers and pitch bend, and pitch bend in semitones. - [files](https://www.audio-ui.dev/llm/engine/files): Files: an audio file decoded into samples at a context's rate, sound written to WAV, FLAC or MP3, notes read from and written to a MIDI file, and a score read from and written to MusicXML. - [format](https://www.audio-ui.dev/llm/engine/format): Audio quantities as text, the way the standards and the tools write them: levels in dBFS, dBTP and LUFS, frequencies and sample rates, times, notes, pans, ratios, tempos, channel layouts, each a function of the value and options, and createFormatter to bind a locale, a true minus or a spacing once. - [playback](https://www.audio-ui.dev/llm/engine/playback): What plays when: audio clips placed in frames, the transport's state on the audio clock, the clip player's processor and its renderer, recordings streamed in pages, and the mixer's pan law, solo and delay compensation. - [repair](https://www.audio-ui.dev/llm/engine/repair): Defects taken out of a recording, each by the method made for it: clicks, crackle, mains hum, steady and changing noise, clipping, wind, plosives, breaths and reverb, or one that finds the defect itself, on audio.js's denoise family. - [worklet](https://www.audio-ui.dev/llm/engine/worklet): Loading an AudioWorklet processor: its source into a context from a blob, once per context, false where worklets cannot run. ## WebGL - [WebGL](https://www.audio-ui.dev/llm/webgl): WebGL: audio drawn on the GPU, with no UI framework in it: a lane of clips as waveforms or a spectrogram on one canvas and one WebGL context, over gl-waveform and gl-spectrogram, with the frequency axis, the band zoom and the pointer reading that go with them. - [lane](https://www.audio-ui.dev/llm/webgl/lane): What every GPU lane shares: placing the canvas on what the view shows, the clips in view with the frames they read, drawing again on a change of inputs, a resize, a scroll or the theme, and whether this browser has WebGL 2. - [waveform](https://www.audio-ui.dev/llm/webgl/waveform): The waveforms of a lane's clips on one canvas and one WebGL context, drawn on the GPU by gl-waveform: exact peaks and the RMS inside, a line through the samples zoomed in, plain or as the three bands of the sound. - [spectrogram](https://www.audio-ui.dev/llm/webgl/spectrogram): The spectrograms of a lane's clips on one canvas and one WebGL context, computed on the GPU by gl-spectrogram on one of four frequency axes, with the band zoom, the pointer's cell and the frequency axis laid out for a lane. ## Elements - [Knob](https://www.audio-ui.dev/llm/components/base/knob): A rotary control for continuous parameters, with pointer, wheel and keyboard input. - [Fader](https://www.audio-ui.dev/llm/components/base/fader): A linear slider for gain and other continuous parameters. - [XY Pad](https://www.audio-ui.dev/llm/components/base/xypad): A two-dimensional control for two parameters at once, with pointer, wheel and keyboard input. - [Envelope](https://www.audio-ui.dev/llm/components/base/envelope): An editor for a breakpoint ramp, such as an ADSR shape or an automation curve. - [Parameter Field](https://www.audio-ui.dev/llm/components/base/parameter-field): A parameter's value as a field you type, step, or scrub by dragging its label or its unit, with units and precision. - [Rocker Switch](https://www.audio-ui.dev/llm/components/base/rocker-switch): A rocker switch, as on a mixer or a synth, the side pressed down sunk into the panel. - [Piano](https://www.audio-ui.dev/llm/components/base/piano): A piano keyboard for a MIDI pitch range, played with the pointer, touch or the keyboard. - [Pad](https://www.audio-ui.dev/llm/components/base/pad): A grid of drum pads struck by pointer, touch or keyboard, with velocity and choke groups. - [Meter](https://www.audio-ui.dev/llm/components/base/meter): A level meter in decibels for one or more channels, with peak hold. - [Needle meter](https://www.audio-ui.dev/llm/components/base/needle-meter): A VU meter to the standard, with its dial from -20 to +3 VU and a needle that moves the way a VU needle does. - [LED](https://www.audio-ui.dev/llm/components/base/led): A status light that glows in its tone when lit, a dim dot when off, and blinks for an armed take. - [LCD](https://www.audio-ui.dev/llm/components/base/lcd): A small screen, as on a synth, that holds a reading under a caption, in light and dark alike. - [Value Display](https://www.audio-ui.dev/llm/components/base/value-display): An audio value as it reads, in steady monospace figures, for tempo, level, frequency, pan, percent, semitones and time. - [Waveform](https://www.audio-ui.dev/llm/components/base/waveform): Draws audio: a seekable waveform with regions and markers, a live waveform that scrolls with the signal, and a bar visualizer. - [Plot](https://www.audio-ui.dev/llm/components/base/plot): Curves and draggable points, for equalizers, filters and compressors. - [Spectrum Analyzer](https://www.audio-ui.dev/llm/components/base/spectrum-analyzer): The level of a sound across frequencies, live, on a log axis in hertz, with held peaks. - [Tuner](https://www.audio-ui.dev/llm/components/base/tuner): The note and the pitch of a sound, live from the microphone, with a needle on a scale of cents. ## Workstation - [Arrangement](https://www.audio-ui.dev/llm/components/base/arrangement): A DAW's arrangement: a zoomable timeline with a ruler that seeks and lanes of clips, and the parts around it, its state, clips, tracks, locators, automation and MIDI playback, each installed on its own. - [Audio editor](https://www.audio-ui.dev/llm/components/base/audio-editor): An audio editor for one sound: a transport that plays, loops and records, a waveform that zooms down to the samples and edits with undo, and the track's device chain with its library. - [Waveform Lane](https://www.audio-ui.dev/llm/components/base/waveform-lane): The waveforms of a lane's clips on one canvas and one WebGL context, drawn on the GPU by gl-waveform: exact peaks and the RMS inside, a line through the samples zoomed in, plain or as the three bands of the sound. - [Spectrogram Lane](https://www.audio-ui.dev/llm/components/base/clip-spectrogram): The spectrograms of a lane's clips on one canvas and one WebGL context, computed on the GPU at every zoom by gl-spectrogram, on the frequency axis of your choice, with a frequency axis to go beside them. - [Sound Lane](https://www.audio-ui.dev/llm/components/base/sound-lane): A lane's clips drawn on the GPU in the view you pick: the waveform, the waveform by band, or the spectrogram on one of four frequency axes with its axis and the reading under the pointer. - [Process Menu](https://www.audio-ui.dev/llm/components/base/process-menu): The operations on a sound's samples as menu items: Reverse, Repeat, Add silence, Normalize, Pan, Dither, Filter, Stretch, Pitch, Speed and Repair, each handed to you as data to run. - [Piano roll](https://www.audio-ui.dev/llm/components/base/piano-roll): A note editor on a grid: draw, move, resize and select notes, with a playable keyboard and a velocity lane. - [Sequencer](https://www.audio-ui.dev/llm/components/base/sequencer): A step grid: press a step, or drag across several, to draw a pattern. - [Scale menu](https://www.audio-ui.dev/llm/components/base/scale-menu): A menu that picks a root and a scale and turns the scale on or off, in parts you place beside items of your own. - [Note find](https://www.audio-ui.dev/llm/components/base/note-find): Finds notes by what they are: a pitch, ranges of velocity, length and chance, in or out of the scale, active or not, every few, or the rest. - [Note edit menu](https://www.audio-ui.dev/llm/components/base/note-edit-menu): A menu of commands over a piano roll's notes, with their keys: split, join, quantize, legato, time commands, transposing, fit to scale, chance and velocity. - [Transport](https://www.audio-ui.dev/llm/components/base/transport): DAW transport controls: play, pause and stop, the position in bars, beats and sixteenths, loop and metronome toggles, tempo and time signature. - [Scrubber](https://www.audio-ui.dev/llm/components/base/scrubber): A compact player: play and pause, the position, a seek bar and the length. - [Mixer](https://www.audio-ui.dev/llm/components/base/mixer): The mixer of an arrangement, controlled: a channel for each track and return with pan, sends, fader, meter, peak, solo and mute, then the main track, every meter reading the real signal of its channel. - [Device chain](https://www.audio-ui.dev/llm/components/base/device-chain): A track's devices in a row, each drawn by its own panel: move, fold, switch off and remove them, and drop a device where it goes. Controlled, with no audio in it. - [Device browser](https://www.audio-ui.dev/llm/components/base/device-browser): A library of devices by shelf, with a search: pick one with Enter, a double-click or the Add button, or drag it onto a device chain. It keeps what is searched and marked, and nothing else. - [Rack](https://www.audio-ui.dev/llm/components/base/rack): Devices in parallel chains, summed on the same frame, each chain with its volume, pan, switch and solo, and eight macros over the parameters inside. Controlled, with no audio in it. - [Export dialog](https://www.audio-ui.dev/llm/components/base/export-dialog): The settings of an export: the file's format, its bit depth or bitrate, and its level, left as it is, brought to its peak or to a loudness target. - [Sound readouts](https://www.audio-ui.dev/llm/components/base/sound-readouts): The row of a sound's facts under its waveform, as parts: its level in the measure you pick, its sample rate and its channels, each a menu that says what to convert it to. - [Sound Report](https://www.audio-ui.dev/llm/components/base/sound-report): What a sound was read as, in a dialog: its loudness and true peak, its key and tempo when it has them, and each of ACX's audiobook requirements with whether the sound meets it. ## Devices - [Devices](https://www.audio-ui.dev/llm/devices): What a device is, the four pieces it comes in, and what every device shares: the sidechain, the tempo, the latency and the tools an agent drives it with. The catalog is grouped as in a mixer: dynamics, EQ and filters, distortion, delay and reverb, modulation, utility and instruments. - [Compressor](https://www.audio-ui.dev/llm/components/base/compressor): A compressor device: five models, threshold, ratio, attack, release, knee, make-up and mix, a panel that draws its transfer curve, a Web Audio engine and tools for agents. - [Multiband compressor](https://www.audio-ui.dev/llm/components/base/multiband): A multiband compressor device: two splits into three bands, a threshold and a ratio for each, a shared attack and release, a panel that draws the bands, a Web Audio engine and tools for agents. - [Limiter](https://www.audio-ui.dev/llm/components/base/limiter): A limiter device: input gain, ceiling, release and true peak, a panel that draws its transfer curve with a handle on the ceiling, a Web Audio engine and tools for agents. - [Gate](https://www.audio-ui.dev/llm/components/base/gate): A gate device: threshold, hysteresis, floor, attack, hold, release and look-ahead, a panel that draws its transfer curve, a Web Audio engine with a sidechain, and tools for agents. - [Expander](https://www.audio-ui.dev/llm/components/base/expander): An expander device: downward or upward, threshold, ratio, knee, range, attack and release, a panel that draws its transfer curve, a Web Audio engine and tools for agents. - [Ducker](https://www.audio-ui.dev/llm/components/base/ducker): A ducker device: threshold, ratio, knee, range, attack and release, a panel that draws the gain for the key's level, a Web Audio engine with a sidechain, and tools for agents. - [Compander](https://www.audio-ui.dev/llm/components/base/compander): A compander device: a transfer curve drawn with four points, attack and release, a panel with a handle on each point, a Web Audio engine and tools for agents. - [Unlimiter](https://www.audio-ui.dev/llm/components/base/unlimiter): An unlimiter device: amount, drive, crest, adaptive and a guarded ceiling, a panel that draws the lift for an attack's size, a Web Audio engine and tools for agents. - [De-esser](https://www.audio-ui.dev/llm/components/base/deesser): A de-esser device: three models, frequency, over body, ratio and range, a panel that draws what it does at each frequency, a Web Audio engine and tools for agents. - [Transient shaper](https://www.audio-ui.dev/llm/components/base/transient): A transient shaper device: attack and sustain, each up or down by 12 dB, a panel with one handle for both, a Web Audio engine and tools for agents. - [Equalizer](https://www.audio-ui.dev/llm/components/base/equalizer): An equalizer device: four bands with a type, a frequency, a gain and a width, a panel with a handle on each band, a Web Audio engine and tools for agents. - [Channel EQ](https://www.audio-ui.dev/llm/components/base/channel-eq): A channel EQ device: a low shelf, a sweepable mid bell, a high shelf, a high-pass switch and an output level, a panel with a handle on the mid band, a Web Audio engine and tools for agents. - [Graphic EQ](https://www.audio-ui.dev/llm/components/base/graphic-eq): A graphic EQ device: ten bands an octave apart on faders and an output level, a panel that draws the curve, a Web Audio engine and tools for agents. - [Tilt EQ](https://www.audio-ui.dev/llm/components/base/tilt-eq): A tilt EQ device: one knob that tilts the tone around a pivot and an output level, a panel that draws the curve, a Web Audio engine and tools for agents. - [Exciter](https://www.audio-ui.dev/llm/components/base/exciter): An exciter device: a frequency, a drive and an amount, a panel that draws the band it excites, a Web Audio engine and tools for agents. - [Bass Enhancer](https://www.audio-ui.dev/llm/components/base/bass-enhancer): A bass enhancer device: a frequency, a drive, an amount and the sub it keeps, a panel that draws its two bands, a Web Audio engine and tools for agents. - [Filter](https://www.audio-ui.dev/llm/components/base/filter): A filter device: a type, six circuits, a cutoff, a resonance and a drive, a panel with a handle on the curve and a live spectrum, a Web Audio engine and tools for agents. - [Overdrive](https://www.audio-ui.dev/llm/components/base/overdrive): An overdrive device: a band-pass before a soft clip, a drive, a tone and a mix, a panel that draws the band that reaches the clip, a Web Audio engine and tools for agents. - [Saturator](https://www.audio-ui.dev/llm/components/base/saturator): A saturator device: four curves, a drive, a mix and an output, a panel that draws the transfer curve, a Web Audio engine and tools for agents. - [Distortion](https://www.audio-ui.dev/llm/components/base/distortion): A distortion device: four curves, a drive, a tone, a mix and an output, a panel that draws the transfer curve, a Web Audio engine and tools for agents. - [Redux](https://www.audio-ui.dev/llm/components/base/redux): A redux device: a number of bits, a downsample factor and a mix, a panel that draws the stairs the bits make, a Web Audio engine and tools for agents. - [Lo-fi](https://www.audio-ui.dev/llm/components/base/lofi): A lo-fi device: wow, flutter, hiss, crackle, a high-pass and a low-pass and a tape drive, a panel that draws the band it leaves, a Web Audio engine and tools for agents. - [Delay](https://www.audio-ui.dev/llm/components/base/delay): A delay device: four modes, a time or a note value, a feedback, a tone and a mix, a panel that draws the echoes with a handle, a Web Audio engine and tools for agents. - [Reverb](https://www.audio-ui.dev/llm/components/base/reverb): A reverb device: six types of room, a decay, a pre-delay, a damping and a mix, a panel that draws the tail with a handle, a Web Audio engine and tools for agents. - [Chorus](https://www.audio-ui.dev/llm/components/base/chorus): A chorus device: a rate or a note value, a depth, a delay, one to eight voices and a mix, a panel that draws the sweep of each voice, a Web Audio engine and tools for agents. - [Phaser](https://www.audio-ui.dev/llm/components/base/phaser): A phaser device: a phaser, classic or flanger mode, a rate or a note value, a depth, a centre frequency, a delay, the classic phaser's stages, a feedback and a mix, a panel that draws the sweep, a Web Audio engine and tools for agents. - [Auto pan](https://www.audio-ui.dev/llm/components/base/auto-pan): An auto pan device: a pan or tremolo mode, a wave shape, a rate or a note value and a depth, a panel that draws the movement, a Web Audio engine and tools for agents. - [Vibe](https://www.audio-ui.dev/llm/components/base/vibe): A photocell vibe device: a lamp that pulses on four phase-shift stages, in chorus or vibrato, with its speed, intensity and level, a panel that draws the lamp, a Web Audio engine and tools for agents. - [Wah](https://www.audio-ui.dev/llm/components/base/wah): A wah device: an envelope, sweep or pedal mode, the band's frequency and resonance, an envelope's range and timing, an oscillator's rate and depth, a mix and an output, a panel that draws the band, a Web Audio engine and tools for agents. - [Frequency Shifter](https://www.audio-ui.dev/llm/components/base/frequency-shifter): A frequency shifter device: a shift or ring mode, the shift in hertz, the ring's frequency, a precision and a mix, a panel that draws what it does to a note, a Web Audio engine and tools for agents. - [Rotary](https://www.audio-ui.dev/llm/components/base/rotary): A rotary speaker device: a slow, fast or stop speed, a crossover, a depth, the horn's and the drum's ramps, a width and a mix, a panel that draws its two bands, a Web Audio engine and tools for agents. - [Stutter](https://www.audio-ui.dev/llm/components/base/stutter): A stutter device: an interval and a slice in note values, a decay and a mix, a panel that draws one interval, a Web Audio engine and tools for agents. - [Utility](https://www.audio-ui.dev/llm/components/base/utility): A utility device: a gain, a pan, a width, a mono switch and a phase invert, a panel without a display, a Web Audio engine and tools for agents. - [Mid/side](https://www.audio-ui.dev/llm/components/base/mid-side): A mid/side device: a widening, a level for the centre, a level for the sides and a bass mono frequency, a panel with one handle for the two levels, a Web Audio engine and tools for agents. - [Binaural Panner](https://www.audio-ui.dev/llm/components/base/binaural-panner): A binaural panner device: a direction, a distance, a head's size and a mix, a panel with the head seen from above, a Web Audio engine and tools for agents. - [Poly synth](https://www.audio-ui.dev/llm/components/base/poly-synth): An eighties polyphonic synth device: a saw, a pulse, a sub oscillator and noise into a resonant filter, an envelope, a vibrato and a chorus, with eight presets, a panel with a keyboard, a Web Audio engine and tools for agents. - [Mono synth](https://www.audio-ui.dev/llm/components/base/mono-synth): A monophonic analog synth device: a saw, square or triangle oscillator, a sub oscillator and noise into a resonant filter, an envelope, a glide and a vibrato, with eight presets, a panel with a keyboard, a Web Audio engine and tools for agents. - [Electric piano](https://www.audio-ui.dev/llm/components/base/electric-piano): A tine electric piano device: a body that barks, a bell that pings, a pickup that can be driven and a tremolo, with four presets, a panel with a keyboard, a Web Audio engine and tools for agents. - [Organ](https://www.audio-ui.dev/llm/components/base/organ): A tonewheel organ device: nine drawbars, a percussion, a key click, a drive and a rotary speaker, with six registrations, a panel with drawbars and a keyboard, a Web Audio engine and tools for agents. - [String machine](https://www.audio-ui.dev/llm/components/base/string-machine): A string machine device: a violin, a viola, a cello and a bass register, a brightness filter, a slow bow and an ensemble, with eight presets, a panel with a keyboard, a Web Audio engine and tools for agents. - [Tape keys](https://www.audio-ui.dev/llm/components/base/tape-keys): A tape-replay keyboard device: 35 keys, each a strip of tape with one note on it, on three tracks (flutes, strings and a choir), with the tape's speed, wow and flutter and a tone, a panel with its keys, a Web Audio engine and tools for agents. - [Guitar](https://www.audio-ui.dev/llm/components/base/guitar): A plucked guitar device: a string a pick strikes, that rings and fades with its highs first, through the body and a tone control, with its decay and palm mute, a panel with a keyboard, a Web Audio engine and tools for agents. - [Drum Synth](https://www.audio-ui.dev/llm/components/base/drum-synth): A synthesized drum device: a kick, a snare, a clap, a closed or an open hat, a tom, a rim or a cymbal from oscillators and noise, tuned, with its decay, tone and snap, a panel with a pad, a Web Audio engine and tools for agents. - [FM synth](https://www.audio-ui.dev/llm/components/base/fm-synth): A four-operator FM synth device: four sines at ratios of the pitch, each with its level and envelope, wired by eight algorithms, with feedback, eight presets, a panel with a keyboard, a Web Audio engine and tools for agents. - [Sampler](https://www.audio-ui.dev/llm/components/base/sampler): A slice sampler device: a sample cut into sixteen slices, a pad or a key each, through a filter, transposed, struck or gated, with a panel of pads, a Web Audio engine and tools for agents. - [Pocket synth](https://www.audio-ui.dev/llm/components/base/pocket-synth): A synth device: a waveform, a filter and a volume, a panel with a pad that plays it, a Web Audio engine with noteOn and noteOff, and tools for agents. - [Wave shaper](https://www.audio-ui.dev/llm/components/base/wave-shaper): A wave shaper synth device: a waveform, a drive, a tone, a detune, a mix and a volume, a panel with a pad that plays it, a Web Audio engine with noteOn and noteOff, and tools for agents. ## Icons - [Icons](https://www.audio-ui.dev/llm/icons): The glyphs audio/ui draws for itself: one thin stroke on a 24 grid, in four weights, named for what they draw. Install the package and draw them in React or any framework. ## For agents - [MCP server](https://www.audio-ui.dev/mcp): remote Streamable HTTP server with the tools search_docs, list_components, get_component_docs and search_catalog. - [Agent skills](https://github.com/ouestlabs/audio-ui/tree/main/skills): install with `npx skills add ouestlabs/audio-ui`. - [Full docs in one file](https://www.audio-ui.dev/llms-full.txt) - [REST API](https://www.audio-ui.dev/api/v1): the components, their docs and the catalog as JSON, versioned, with no key. Docs: https://www.audio-ui.dev/llm/api - [OpenAPI](https://www.audio-ui.dev/openapi.json): the REST API, the registry and the MCP server, described. - [API catalog](https://www.audio-ui.dev/.well-known/api-catalog): the APIs as an RFC 9727 linkset. - [Registry index](https://www.audio-ui.dev/r/registry.json): every installable item, as JSON. - [shadcn CLI](https://ui.shadcn.com/docs/cli): the command line that installs any item, `npx shadcn@latest add @audio-ui/`. ## Optional - [Component catalog](https://www.audio-ui.dev/components): 125 ready blocks and demos. - [Changelog feed](https://www.audio-ui.dev/rss.xml) - [About](https://www.audio-ui.dev/about): who makes audio/ui, and its license. - [Contact](https://www.audio-ui.dev/contact): questions, bugs and security reports. - [Privacy](https://www.audio-ui.dev/privacy): what the site and the MCP server record.