Case study

Sonar

A beat studio you can see: make a beat, play it live, then train your ear.

Sonar started with four complete restyles and ended with a studio that keeps one idea at its centre: a scope that shows the beat as it plays.

Sound
Synthesised live with Web Audio, no sound files
Studio
4 kits, 7 sounds, 16 steps
Training
8 levels

Look

Finding the instrument

The first version already had the idea that stuck: a sonar scope that draws the loop as a circle. But it shared a coral accent and a kit of parts with my other concepts, so I went looking for a style of its own.

It went through four complete restyles: a studio rack with knobs and a VU meter, a printed drum score marked up in a teacher's magenta pencil, a dish of water that ripples with the beat, and a turntable that presses every beat into a record. Each was a believable brand, and each buried the tool under a costume.

The identity was already on the page. I went back to the first version with one change: the playhead no longer sweeps round like a radar. Each bar, a wave leaves the centre and reaches the rim as the bar ends. Time became the distance from the centre and every sound got its own slice, so a whole bar reads at a glance.

ChangeBeforeAfter
PlayheadA line sweeping round once per barA wave travelling out from the centre once per bar
TimeThe angle round the circleThe distance from the centre
SoundsOne ring per soundOne slice per sound, named at the rim

Finish

Finishing the instrument

With the structure settled, the work moved to finish. Coral was another concept's colour, so Sonar took magenta, checked to stay as legible as the coral it replaced.

The scope was then drawn as a real instrument: a lit body, a bezel with the sound names engraved along its curve, a glowing wave front, and hits that flare as the wave reaches them. Buttons got gradient fills with white text at a 4.6:1 contrast, and headings moved to Big Shoulders Display in capitals.

Then I took things away. The live waveform moved from a strip under the scope into the scope itself, as a ring round the edge that bulges on every kick. That made two guide circles redundant, and the ring round the centre dot went too, so the dot now sits alone in a clear centre.

BeforeSonar with a flat dark scope, flat magenta hits and mixed-case headings.
AfterSonar with a lit scope, an engraved bezel, glowing hits and capital headings.
The finish pass. A flat disc and flat magenta became an instrument with a lit body, an engraved bezel and glowing hits.
Eight frames of the scope across one bar, with the live waveform as a ring round its edge.
The live waveform became the scope's outer ring. Eight moments across one bar, on the light page the site had then.

Live mix

Playing it live

A sequencer is for writing a beat, and I also wanted a way to perform one. The scope's slices became channels: tap a slice and that sound drops out of the mix, tap it again and it comes back.

To keep it musical, a change waits for the next step, beat or bar, so it always lands in time, and a blinking light shows it is queued. Keys 1 to 7 do the same from the keyboard. The mix only changes what plays, never the saved beat, so performing can't break anything.

Three frames of the scope and the live mix pads as the kick, clap and bass are dropped and their slices go dark.
Mixing while the loop plays. A change waits for its beat, then the kick, clap and bass drop out and their slices go dark.

Layout

One screen for each job

The next round started from my mark-ups on the Figma rebuild. The hero became a single screen with a single action, Play, beside the big scope. Everything for making a beat moved into one dark Studio block that fits a screen from a 1366×768 laptop to a 1920×1080 monitor, with a mini sonar beside the live mix so you can mix without scrolling back up.

The page was capped at 1320 px, which left about 300 px of empty page on each side of a wide screen while the header ran edge to edge. The cap grew to 1920 px with the header aligned to it, and the heading and scope now grow with the window. The logo became plain SONAR, and the studio got its own Play button and kit switch.

The studio also had to be honest about state. Any change to a demo or a saved loop renames it Your beat: the old name flattens into a white soundwave and the new one rises out of it. A full test pass found two real bugs. Space pressed the last clicked button instead of playing, and sounds dropped from the mix stayed dimmed after Stop, which looked like lost hits. Both were fixed.

ChangeBeforeAfter
Content widthUp to 1320 pxUp to 1920 px, header aligned to it
StudioGrid only, played from the heroOwn Play button, kit switch, mini sonar and live mix
Beat nameKept the demo's name after editsTurns into Your beat on any change
BeforeThe Sonar hero with a three-line heading, a scope and a live mix panel under it.
AfterThe Sonar hero with a two-line heading on the left and a large scope on the right.
The hero before and after the rework, on the light page of the time. One long sentence and a mix panel became two fixed lines, one action and a bigger scope.
BeforeThe Sonar studio panel with the step and bass grids only.
AfterThe Sonar studio panel titled TRY IT YOURSELF with a Play button, grids, a mini sonar and live mix pads.
The studio before and after. The mini sonar and the live mix now sit under the grid, all on one screen.
Frames of the beat name turning into a white soundwave and back into the words YOUR BEAT.
Editing a demo renames it. The old name flattens into a soundwave that becomes Your beat.

Training

Ear training without crutches

Training plays a beat and you rebuild it from memory on the grid. It started out generous: unlimited listens and checks, the hits shown on the scope while you listened, and a hint for every step. That made it a puzzle you could solve by trial and error rather than by ear.

Now you get three listens (Listen, Relisten, Last relisten) and one check. The scope shows only the wave while you listen, never the hits. Stars come from accuracy: an exact beat earns three, one step off earns two, up to three off earns one. Locked levels show only their number, so nothing gives the next pattern away. The heading now says what it is: Check your beat perception.

ChangeBeforeAfter
ListensUnlimitedThree
ChecksUnlimitedOne
Hits on the scopeShown on the early levelsNever shown while listening
StarsFewer listens and wrong checksAccuracy
BeforeThe training section with level descriptions, a hint line and a listens counter.
AfterThe training section titled CHECK YOUR BEAT PERCEPTION with a clean level panel.
The training panel before and after, on the light page of the time. Hints, counters and level descriptions are gone.

Colour

A colour for every kit

Each kit now has its own colour: House magenta, Trap green, Boom bap yellow and Lo-fi blue. All four are matched to the magenta's lightness and strength in OKLCH, so none shouts louder than the others. An earlier set put cyan only 65° round the colour wheel from the green, and the two read as one. Moving to blue and yellow spread the four far apart, at 9°, 100°, 150° and 262°.

Switching kit doesn't just swap a colour. A soft glowing ring leaves the sonar next to the control you used and recolours the page only where it has passed, so a button it is crossing is half old colour and half new. Just behind the front, the page ripples like water.

Pressing Play sends a thinner ping that lights the titles in the kit's colour with a soft glow, and they shake slightly on every kick. Stop pulls a quick ring back into the sonar you pressed. Every kit also opens on its own example loop.

Four frames of the hero as a green ring spreads from the scope and turns the magenta controls green.
Switching from House to Trap. The ring recolours the page as it passes, on the light page of the time.
Four frames of the dark hero as a magenta ping leaves the scope and the heading lights up magenta.
Pressing Play. A ping leaves the sonar and lights the titles as it crosses them.

Performance

Fast and finished

All that light had a cost: the hero dropped to about 30 frames per second while playing. The scopes' shadows and the titles' glow were CSS filters, re-blurred on every frame, and the play ripple restyled the whole page each frame. Shadows drawn once, and touching only the titles a ring is crossing, brought the playing hero to 41 to 59 fps and the ripple from 16 to about 40.

The last pass simplified. The hit arcs went from thick bars to 2 px lines that match the waveform ring. The site went dark only, because the glow and the kit colours work best on a dark page. And the heading settled on its final words: Studio in your browser. A haven for your beats.

ChangeBeforeAfter
Hero while playing28 to 30 fps41 to 59 fps
Play ripple16 fps38 to 46 fps
ThemeFollowed the system settingDark only
BeforeThe hero scope with thick magenta hit arcs.
AfterThe hero scope with thin magenta hit arcs.
Thick hit arcs became 2 px lines that match the waveform ring.

What I took from it

A live scene that is the tool beats any costume. Four restyles taught me that Sonar's character was the scope itself, and every later round made that scope clearer, quieter and more alive.

Constraints make a game. Training only became training once the hints, the free checks and the visible hits were gone.

Motion and colour need a performance budget. The kit wave and the glowing titles are only worth having because they run smoothly.

Next case study Tenon