product study · own product · game

E-Drum Hero

Notes come down a highway into an on-screen model of your own kit, and you play them on real drums over MIDI. It is a game and a practice tool: slow a song down, loop a hard bar, or let the band follow you instead.

type
own product
year
2026
status
proof of concept
role
solo, design to deploy

The hard parts

  1. 01

    Timing you can trust

    Hits are judged by the timestamp on the MIDI event, not by when the browser got round to handling it. The audio clock is the master and every input is converted into song time. Judging windows are ±25, 50 and 90 ms, and a 16-click calibration removes each player's own latency.

  2. 02

    Slow practice that still sounds right

    At 40% speed, parts made from notes are re-rendered at the new tempo and only real recordings are time-stretched, in a background worker. Long songs are prepared in 20-second windows, which removed a 2 GB memory crash at quarter speed.

  3. 03

    The band follows the drummer

    In jam mode the app works out where you are in the song and how fast you are playing from your last few hits, then brings the band in around you once it is confident.

  4. 04

    Any song, any kit

    It imports Clone Hero folders, drum MIDI files, Guitar Pro and MusicXML scores and pasted text drum tabs. For Guitar Pro files every instrument is rendered into its own mixer track. Charts written for a big kit fold down onto a small one.

  5. 05

    Past the browser's limits

    Safari on iPad has no Web MIDI, so a small Swift layer reads the kit through CoreMIDI and hands it to the same web code. For kits with only a USB port, firmware on a coin-sized ESP32 board resends the kit over Bluetooth with a 7.5 to 15 ms connection interval.

In numbers

  • ±25 ms tightest judging window
  • 4 song import formats
  • ~170 automated tests on timing, parsing and geometry
  • 3 platforms: browser, iPad and microcontroller

stack · TypeScript · Vite · Web MIDI · Web Audio · Canvas 2D · alphaTab · Capacitor · Swift (CoreMIDI) · C++ on ESP32-S3 (Bluetooth LE MIDI)

Score parsing and playback use alphaTab (MPL-2.0) and the SONiVOX SoundFont (Apache-2.0).

What it
shows

Real-time work where milliseconds matter, hardware integration down to firmware, and one codebase carried across web, iPad and embedded.