Skip to the case study
wave. Case study Back to the instrument

Web Audio · Case study

The page is the instrument.

Wave is a browser synthesizer that doubles as its own landing page. Eight keys, five moods, zero samples. Every ring, particle and meter is drawn from the note you just played, because the page reads the live audio signal instead of a loop. The demo is the instrument.

Role
Product design and frontend
Stack
TypeScript, Vite
Sound
Web Audio, zero samples
Status
v0.3, November 2026
The Wave landing page at 1440 by 900: the headline Make some noise, the coral orb on the stage, and the console above eight keys.
The page at rest. Eight pads, five presets, and an orb waiting for a sound.
01

The problem

A page about sound usually forgets to make any.

Instrument and audio-tool pages are demos at arm's length. A video, a screenshot, a claim about latency. The visitor is asked to imagine the product.

The pattern is familiar:

  • A video loop. Autoplay is blocked, a muted video reads like an ad, and the sound belongs to someone else's performance.
  • A fake visualizer. The bars animate on a timer. They answer to the brand, not to audio.
  • A screenshot gallery. Pixels show the interface and hide the feel.
  • A spec sheet. Numbers describe the engine without letting anyone hear it.

Wave takes the shortest route. The landing page is an actual instrument. Nothing in the demo is a recording, and nothing on the stage is decorative data.

Before and after the demo video.

A normal product page asks you to evaluate a sound you cannot make. Wave puts the engine in the tab.

A comparison of a usual audio product page and Wave for the demo, the visual, the proof and the first sound
Criterion The usual audio page Wave
The demo A video with a play button. The page you are already on.
The visual Spectrum bars on a timer. A live AnalyserNode on the master bus.
The proof "Low latency" in the copy. A note you can play in the same tab.
The first sound Autoplay is blocked, so the page opens silent. Sound starts on your first gesture, by design.
The exit Watch, then leave. Play, then remember.
02

What it is

A landing page you can play, not a page about one.

Eight keys span C3 to C4. Five presets reshape the oscillators, the filter, the envelope, the delay, the space and the stage's way of moving. The arp turns a held chord into a pattern, First Light is an original 12-bar cue, and the record button captures the master mix as a take.

Every sound is synthesized at runtime. The page downloads no audio files, loads no runtime libraries and talks to no backend. The instrument is static files, Web Audio and Canvas 2D.

No samples. No backend. No video loop. One page that makes the sound it advertises.

The interface behaves like a small piece of hardware. Pads depress under a pointer and hold a note when glided across. Range sliders expose their values in Hz, percent and BPM. The orb leans toward the pointer and settles on springs. The design is dark, but the controls are not mysterious.

The Wave console: five preset buttons, filter, echo and space sliders, the Play First Light button, and the arpeggiator controls at 100 BPM.
Voice, five moods, three sends and a demo button. The console shapes the sound; the keybed makes it.
03

The walkthrough

The instrument in sixty seconds.

The 3:20 explainer is finished. This is the short route through the live page for a 60-second cut: six shots, no improvisation, and a result on screen for every beat.

The opening frame of the Wave explainer: the live landing page with the coral orb and the Play First Light button.

Explainer 3:20 · 1080p

The instrument, explained.

One key press, the shared chain, the analyser, the clock behind the arp, and the note data behind First Light.

Released on GitHub

Watch the explainer

A separate production with deterministic Canvas diagrams, Kokoro narration and an original score. The app still loads no video.

The 60-second shot list

  1. 0:00 to 0:06

    Open on the idle page

    Action
    Load the page at 1440 × 900. Leave the instrument untouched.
    On screen
    The headline, the orb, the console and the eight pads. The meter reads silence.
    Narration
    "This is Wave. Nothing is playing. Eight keys, five moods, no samples."
  2. 0:06 to 0:16

    Hold A, then a chord

    Action
    Hold A. Add G and K. Let the orb catch up before releasing.
    On screen
    Three pads light, the readout names C4, the meter jumps, and the orb throws particles.
    Narration
    "One key wakes a voice: a saw, a triangle and a sine. Hold more, and the page draws them."
  3. 0:16 to 0:26

    Change the mood

    Action
    Play a note under Glass, then Tape, then Haze.
    On screen
    The palette, rings, ticks and motion change with the preset. The filter and sends move with them.
    Narration
    "Five presets, five ways of moving. Glass shimmers. Tape drags. Haze drifts."
  4. 0:26 to 0:36

    Let the arp run

    Action
    Hold a chord, turn the arp on, press Latch, then step through Up/Down and 1/16.
    On screen
    Pads flash in step, the readout follows the pattern and the tempo stays steady.
    Narration
    "The arp looks 120 milliseconds ahead and schedules notes on the audio clock."
  5. 0:36 to 0:48

    Play First Light

    Action
    Press Play First Light. Let the cue build through the opening chord and the arpeggio.
    On screen
    Pads play the arrangement, the filter opens as the cue builds, and the readout follows the melody.
    Narration
    "First Light is note data, not a recording. It plays through the same voices as my hands."
  6. 0:48 to 1:00

    Record a take

    Action
    Press Rec, play four notes, then stop. The take dialog opens on its own.
    On screen
    The record pill counts time. The take dialog appears with a player, a duration, a size and a download.
    Narration
    "Record the master mix, open the take, keep the file. No account, no upload."
Wave during First Light: the orb ringed by spectrum ticks, A3 in the voice readout, active pads and a filter at 2.6 kHz.
First Light in the lift. The cue rides the shared filter, and every note goes through the same voices as a keypress.
04

How it works

Six ideas hold the whole instrument up.

The instrument is small on purpose. One voice design, one effect chain, one analyser, one canvas. No scene graph, no audio files, and no second copy of the sound.

  1. A voice is three oscillators and an envelope.

    Press A and createVoice() builds a saw, a triangle and a sine. The saw and triangle detune in opposite directions; the sine sits an octave down. A short attack and decay fall to the preset's sustain, then the release stretches when you let go. Eight voices can run at once.

  2. Every voice shares one chain.

    The dry signal joins a bus, a resonant low-pass, a 45 Hz high-pass, a soft clipper and a compressor. A ping-pong delay and a 2.6-second convolution reverb are sends. Both returns pass back through the same filter, so the filter darkens the tail as well as the note.

  3. Mute lives after the analyser.

    The analyser taps the chain before the master and the mute. Turn the sound off and the speakers go quiet, but the orb and the meters keep drawing the signal. The visualizer never performs a loop, even when the room is silent.

  4. The arp trusts the audio clock.

    A 28 ms timer looks 120 ms ahead and schedules notes against AudioContext.currentTime. Pad flashes are cosmetic and use setTimeout; the notes themselves do not depend on the page clock. Patterns are up, down, up/down and random, at 1/4, 1/8, 1/16 and 1/8T.

  5. First Light is data, not a recording.

    The cue is 48 beats of note events: start, note, length, velocity and release. It plays through the same voices as your hands, rides the filter with keyframes, and hands the filter back the moment you touch it. The arrangement is fixed; the tempo is yours.

  6. The stage is a mirror.

    A 2048-point analyser feeds the orb, the ring, the spectrum ticks and the output meter. Springs smooth level, bass and treble so motion has weight. Each preset carries its own palette and motion, and reduced motion stops the loop without stopping the instrument.

The chain

voice
  → bus
  → low-pass filter
  → high-pass rumble filter
  → soft clipper
  → compressor
  → analyser  →  meter + orb
  → master
  → mute
  → speakers

delay send   ─┐
reverb send  ─┴→ return to the filter

The cue, as data

// [beat, note, length, velocity, release]
[0,  A3, 7.4, 0.46, 0.9]  // ignition
[24, F3, 2.2, 0.48, 0.5]  // lift
[44, C3, 4.0, 0.50, 1.8]  // resolve
Scope view with sound muted: a live waveform crosses the stage while the output meter still moves and the mute pill reads Muted.
Sound off, signal on. The scope keeps drawing because the analyser sits before the mute.
05

Performance

Nothing is decoded. Everything is drawn.

The page ships no audio files, so there is no decode step and no buffer to wait for. Sound is built from oscillators. Pixels are built from an analyser buffer.

Full polyphony
24 eight voices, three oscillators each
Audio files
0 every sound synthesized at runtime
Arp lookahead
120 ms scheduled on the audio clock
Scheduler tick
28 ms sixteen steps per pass, at most
Stage
60 fps 30 fps for the low-power easter egg
First Light
29 s 12 bars at the shared tempo

The canvas stops when it leaves the viewport and when the tab is hidden. The easter egg halves the frame cap and schedules its music two seconds ahead, so a one-minute arrangement never creates every oscillator at once. The recorder takes 250 ms chunks and stops itself at three minutes.

The audio context asks for interactive latency, and the page waits for a gesture before it starts. These are design budgets and constants from the build, not a published benchmark. Frame pacing and audio latency still depend on the machine, the browser and the audio interface. A public trace is on the next list.

06

Accessibility

Playable by keyboard. Readable by a screen reader. Honest about sound.

The instrument is built from real controls. The canvas is the face, not the interface.

  • The pads are buttons. Each pad is a <button> with a name such as "Play C3 with the A key" and an aria-pressed state. Space and Enter play notes, and a release on blur prevents a stuck voice.
  • The keys keep their keys. Letter shortcuts do not fire while a text field or slider has focus. Range inputs keep their arrow keys and expose values as Hz, percent and BPM.
  • Toggles announce state. Presets, arp, latch, mute, record and Orb/Scope use aria-pressed; the visible label changes along with the sound.
  • Dialogs are native. About and Take are <dialog> elements with Escape, focus containment and a backdrop click to close.
  • Motion is optional. With reduced motion, the canvas stops its loop, draws a static scene and samples the meter every 150 ms. The synth still plays, and the state still updates.
  • Silence is a feature. Mute sits after the analyser, so the instrument can be used in a quiet room without losing the visual response.
  • This page follows the same rules. One heading, semantic landmarks, a skip link, visible focus, table captions and alt text. No meaning depends on color alone.
The eight Wave pads, labelled C3 to C4 with keys A to K, under the line Hold a key. Shape the wave.
Eight real buttons, one octave. Each pad names its note, its key and its status to assistive tech.

The honest limit: the instrument is auditory. The visualizer is aria-hidden, and there is no text or haptic equivalent for pitch. A screen reader can operate every control and read every state, but it cannot hear the result for the user. That belongs in the limitations, not in a claim.

07

Limitations

What this does not claim.

A prototype is more useful when it names its edges.

  • The keybed is one octave, C3 to C4. First Light uses D4 and E4 above it; the pads stop at C4.
  • The arp is monophonic per step. There is no swing, no per-step gate and no 1/32 rate.
  • First Light is a fixed 12-bar cue. Tempo changes; the arrangement does not.
  • Recording is session-only MediaRecorder output, capped at three minutes. There is no WAV export and no sharing. Some browsers omit duration metadata until playback.
  • MIDI covers note on, note off and velocity. CC, pitch bend and clock are ignored.
  • Audio needs a user gesture and Web Audio support. The page is silent until that gesture, by design.
  • The visualizer is an enhancement and is hidden from assistive tech. The instrument is auditory; there is no text or haptic equivalent for pitch.
  • Frame pacing and latency depend on the device. There is no published benchmark yet.
  • The easter egg is a short synthesized quote of a copyrighted song, credited in About and the README. It is an egg, not a feature.
The Wave page at 390 by 844: the headline, the orb, the stacked console and the eight pads in four columns.
The instrument at 390 × 844. The keybed becomes four columns, the console stacks, and the stage stays live.
08

What is next

The next version should make the instrument more playable, not bigger.

The demo has proved the argument. The remaining work is evidence, reach and range.

  1. Publish a frame and latency trace.

    Measure pan, animation and input latency on a mid-range laptop and a phone, then put the numbers beside the budgets.

  2. Add a second octave.

    An octave shift or a 16-pad mode, without losing the one-octave clarity.

  3. Give the arp a feel.

    Swing, per-step gates and a 1/32 rate. The clock is already sample-accurate; the pattern needs a human lean.

  4. Export a take as WAV.

    Render offline for a lossless file, then add a share link so a take can leave the tab.

  5. Teach MIDI more.

    Map CC to filter, echo and space. Accept clock and pitch bend.

  6. Cut a 60-second explainer.

    Use the shot list above, then put the short cut at the top of the README.

  7. Build a second instrument.

    Reuse the engine and the stage to prove the pattern is a product, not a one-off.