Claude 18bcb192ab Fix classical playability: louder orchestra, no stacked notes
Three fixes for classical mode:

1. Louder background orchestra: bg volume boosted 1.5x in
   beginClassical so the full orchestra is clearly audible
   during gameplay, not drowned out by hit sounds

2. No more impossible stacked notes: buildClassicalNotes now
   enforces a 0.12s minimum gap between consecutive hittable
   notes. This removes physically impossible simultaneous hits
   while keeping 94-100% of notes in most pieces. Flight of the
   Bumblebee goes from 206 to 140 notes (still 4 notes/sec).

3. Balanced hit volumes: drum hits during classical mode reduced
   from gain 8 to gain 3 so they don't overpower the orchestra.
   Orchestra hit sounds boosted (strings 0.7, brass 0.4). Miss
   feedback reduced to gain 2.

https://claude.ai/code/session_01GdFrFqAe9e2DaJ86jZPEZE
2026-03-30 12:56:28 +00:00
2026-03-29 22:02:15 -04:00
2026-03-29 21:51:14 -04:00

Drum Rhythm Game

A browser-based drum rhythm game. Notes scroll down the screen and you hit the matching drum pad in time — like Rock Band, but it runs entirely in your browser with no server, no dependencies, no install. Just open index.html.

Works with keyboard, Wii Rock Band drum kit via USB, or any gamepad.

How to Play

  1. Open index.html in Chrome or Edge
  2. Pick a genre and rhythm (or a classical piece)
  3. Click Start
  4. Hit the pads when notes reach the line:
    • F = Red (Tom)
    • G = Yellow (Snare)
    • H = Blue (Hi-hat)
    • J = Green (Tom)
    • Space = Kick (Bass drum)

Features

  • 9 Genres: Rock, Metal, Jazz, Hip Hop, Funk, Latin, Electronic, Country, Classical
  • 146 Rhythms: 120 drum patterns + 26 classical orchestral pieces
  • Classical Mode: Synthesized orchestra plays automatically while you hit the melody notes on the pads. Choose between drum sounds or orchestral hit sounds.
  • 26 Classical Pieces: Beethoven's 5th, Hall of the Mountain King, O Fortuna, Ride of the Valkyries, Toccata & Fugue, Bolero, Also Sprach Zarathustra (2001), The Blue Danube, Flight of the Bumblebee, Fur Elise, Canon in D, Ode to Joy, 1812 Overture, and more
  • MP3 Jam Mode: Load your own music and drum along freely
  • Multiplayer: Take turns on the same rhythm, scores compared at the end
  • Pad Toggles: Turn pads on/off to adjust difficulty — start with kick+snare, add more as you improve
  • Leaderboard: Scores saved locally with player name, accuracy, and streak
  • Preview: Hear any rhythm before playing
  • Gamepad Support: Wii Rock Band drums via USB, auto-detected

Synthesizer

All sounds are generated in real-time using the Web Audio API — no audio files needed:

Sound Method
Kick Sine oscillator, 180Hz to 40Hz sweep
Snare Highpass noise burst + 180Hz tone
Hi-hat Highpass noise burst, very short
Toms Sine oscillator pitch sweep
Strings Sawtooth oscillator + lowpass filter
Brass Square oscillator + lowpass filter
Woodwind Triangle oscillator
Bass Sine oscillator, low frequency
Timpani Sine frequency sweep
Choir Multiple detuned sine oscillators

Tech

  • Pure vanilla JavaScript — no libraries, no build step, no server
  • Single index.html file
  • Web Audio API for all sound synthesis
  • Canvas 2D for the note highway
  • Gamepad API for drum kit input
  • localStorage for score persistence
  • Works on Windows, Linux, and Mac

License

MIT

S
Description
Mirror of outis1one/drum-rhythm-game from GitHub
Readme MIT
3.2 MiB
Languages
HTML 100%