AC

TRACK 04 · GAMES

Bonus tracks

Four music games I built from scratch with the Web Audio API — a sampled grand piano for the ear games, synthesized drums for the beat game. Works with mouse, touch, or keyboard. Turn your sound on.

Under the hood

A shared audio engine schedules notes ahead on the audio clock for tight timing, each game is a pure TypeScript state machine with unit tests, and scores are saved only in your browser. Piano: Splendid Grand Piano samples (Akai Steinway, public domain), about 850 KB, loaded once and cached.

  • Web Audio API
  • Sampled piano
  • React
  • TypeScript
  • Vitest
  • localStorage