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.
| Change | Before | After |
|---|---|---|
| Playhead | A line sweeping round once per bar | A wave travelling out from the centre once per bar |
| Time | The angle round the circle | The distance from the centre |
| Sounds | One ring per sound | One slice per sound, named at the rim |
The first scope
Studio rack
Drum score
Water dish
Record
Back to the first scope, with a wave from the centreFinish
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.



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.

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.
| Change | Before | After |
|---|---|---|
| Content width | Up to 1320 px | Up to 1920 px, header aligned to it |
| Studio | Grid only, played from the hero | Own Play button, kit switch, mini sonar and live mix |
| Beat name | Kept the demo's name after edits | Turns into Your beat on any change |





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.
| Change | Before | After |
|---|---|---|
| Listens | Unlimited | Three |
| Checks | Unlimited | One |
| Hits on the scope | Shown on the early levels | Never shown while listening |
| Stars | Fewer listens and wrong checks | Accuracy |


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.


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.
| Change | Before | After |
|---|---|---|
| Hero while playing | 28 to 30 fps | 41 to 59 fps |
| Play ripple | 16 fps | 38 to 46 fps |
| Theme | Followed the system setting | Dark only |


Hero
Studio
TrainingWhat 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.