Contact
← All projects

Creative tools · Web · Open source

Music Controller

A gamepad that plays music.

Turns a PlayStation or Xbox gamepad into a low-latency musical instrument, and tests its sticks, triggers, and drift — all in the browser.

Stack
  • Next.js
  • TypeScript
  • Tone.js
  • Gamepad API
  • Zustand
Focus
Real-time input · Web Audio · Architecture
Platforms
Web

01 — Context

The problem

Hardware input and audio need low latency, which conflicts with re-rendering a React UI on every gamepad poll.

02 — Decisions

The approach

Hardware polling and audio live in framework-agnostic engines. An input engine emits button, axis, and trigger events, and React components only subscribe to stores.

03 — What’s inside

Key features

  • Profiles for DualSense, Xbox, and generic gamepads
  • Tone.js synth with ADSR, filter, reverb, delay, and distortion
  • Mapping editor, presets, and on-screen piano
  • Circle-of-fifths chord wheels driven by the sticks

Scope & constraints

Works best in Chromium-based browsers.