RepositoryTypeScriptUSUnited States
mxfng

mxfng/drumhaus

A drum machine for the browser built with React + Tone.js

170stars
23forks
0issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: beatmaking

#1 Repository of the week

1
TINIX TRENDING·Topic: drum-machine

#1 Repository of the week

1
TINIX TRENDING·Topic: music-composition

#1 Repository of the week

Drumhaus

A drum machine for the browser.

Play at drumha.us

License

Drumhaus is a drum machine for the browser. It's sample-based, performant, and built with a powerful sequencer for sketching ideas quickly and performing full patterns live. Inspired by classic Roland hardware and the Bauhaus school, it was designed to feel more like a physical product than software. Share beats as compressed URLs, export to WAV, or install it as an offline PWA.

Features

Sequencer

  • 8 voices, 16 steps, four chainable A/B/C/D variations up to 8 bars
  • Per-step velocity, flam, ratchet, and accent controls
  • Per-voice timing nudge for humanized grooves
  • Click-drag step entry, copy/paste/clear per voice or variation

Sound

  • Per-voice decay envelope, HP/LP filters, pan, volume, semitone pitch, mute/solo
  • Master bus: HP/LP filters, saturation, phaser, reverb, compressor
  • 10 curated sample kits with instant hot-swap

Workflow

  • Presets: save locally, export as .dh files, or share as compressed URLs
  • WAV export via offline rendering with configurable bar length and FX tail
  • Keyboard shortcuts, responsive layout scaling, night mode

Technical highlights

The audio engine is built on Tone.js with a custom sequencing layer that precomputes patterns on every update, keeping playback tight and timing-consistent between live and offline rendering. Preset sharing uses a custom serialization pipeline with bit-packing, pako compression, and base64url encoding to compress full rig snapshots into ~200 character URL parameters. A centralized animation clock synchronizes all visual feedback (step indicators, gain meters, frequency analysis, intro lightshow) to a shared frame timeline, bypassing React renders in favor of direct DOM writes via data attributes.

Writing

License

© 2023-present Max Fung. Licensed under CC BY-NC-SA 4.0.

If this project brings you joy, consider buying me a coffee.

Similar Projects

Discover other similar projects and AI models.

RepositoryC++
psemiletov/drumlabooh

LV2/VSTi drum machine that can use Hydrogen, SFZ, and own drumkit formats

143
Nov 24, 2026
RepositoryTypeScript
katspaugh/wavesurfer.js

Audio waveform player

10.5k
Nov 24, 2026
RepositoryTypeScript
AppsYogi-com/ComposeYogi

The open-source Ableton-style music composer for the web.

164
Nov 23, 2026
RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

459.9k
Dec 2, 2026
RepositoryPHP
koel/koel

Music streaming solution that works.

17.4k
Dec 1, 2026
RepositoryC++
sonic-pi-net/sonic-pi

Code. Music. Live.

12.3k
Nov 27, 2026
RepositorySwift
AudioKit/AudioKit

Audio synthesis, processing, & analysis platform for iOS, macOS and tvOS

11.5k
Jul 26, 2026
RepositoryRust
crmne/spotifast

Spotify, native and fast. One lightweight Rust app for your whole library, local playback, and Spotify Connect on Linux, macOS, and Windows.

11.0k
Dec 1, 2026
RepositoryC++
LMMS/lmms

Cross-platform music production software

10.8k
Nov 29, 2026