Lab · Experiment

Tone grid

Interactions · Ready to explore

A tiny pentatonic step sequencer: toggle notes and hear the loop.

Try this

Turn the sound on, then click cells to add or remove notes. Each column is one step of the loop.

Before you start

  • Sound needs a browser with the Web Audio API, and only starts when you turn it on.
An eight-by-eight grid with a diagonal melody of gold cells and the playing column highlighted
Starts muted.

The idea, and what I learned

The question: what's the smallest instrument that still feels musical? Eight steps and eight notes from the A minor pentatonic scale — a scale with no clashing intervals, so almost any pattern sounds reasonable.

Each note is a short triangle-wave tone with a quick fade, played through the Web Audio API. The audio engine isn't even created until you ask for sound.

What I learned: constraints make things approachable. Given every note, most people freeze; given a pentatonic grid, everyone makes something within seconds.

Walkthrough, without running it

  1. The grid has eight columns (time) and eight rows (pitch, lowest at the bottom).
  2. It starts with a simple melody already switched on, one note per column.
  3. A highlight sweeps from left to right; every lit cell in the highlighted column plays.
  4. Clicking a cell toggles its note, and stacking cells in one column plays a chord.
  5. The tempo slider sets the speed of the sweep, from 60 to 200 BPM.
  6. With the sound off the grid still animates, so you can compose silently and listen later.

Related