Claude a63b7b3842 Add 3 new genres: Video Games, Chiptune Originals, Folk (45 pieces total)
Video Games (5 pieces):
- Korobeiniki / Tetris Theme (Russian folk, 1861) — public domain
- Turkish March (Mozart) — used in countless retro games
- Hungarian Rhapsody No. 2 (Liszt) — classic boss/cartoon music
- Can-Can (Offenbach) — bonus stage energy
- Kalinka (Russian folk) — Tetris B-side vibes

Chiptune Originals (6 pieces, composed by Claude.ai):
- Pixel Quest — bouncy platformer theme
- Starfield — space shooter pulse
- Dragon's Keep — RPG overworld adventure
- Turbo Dash — fast racing theme
- Dungeon Crawl — dark adventure in D minor
- Victory Fanfare — boss defeated celebration
All use square wave (brass) oscillator for authentic 8-bit character
with pulse bass and arpeggiated accompaniment building per pass.

Folk (8 pieces, all public domain):
- Oh! Susanna, Camptown Races (Stephen Foster, 1848-50)
- Greensleeves (English Traditional, 1580)
- Red River Valley, Home on the Range (American, 1870s)
- Yankee Doodle (American, 1770s)
- Turkey in the Straw (American, 1820s)
- Danny Boy (Irish Traditional, 1910s)

Architecture: Replaced hardcoded "Classical" checks with generic
SYNTH_GENRES lookup object. Adding new synth genres now requires
only defining the piece array and adding one entry to SYNTH_GENRES.

Genre tabs now show: Rock, Metal, Jazz, Hip Hop, Funk, Latin,
Electronic, Country, Classical, Video Games, Chiptune Originals, Folk

Total: 12 genres, 45 synth pieces, 31 minutes, 5604 melody notes

https://claude.ai/code/session_01GdFrFqAe9e2DaJ86jZPEZE
2026-03-30 13:15:34 +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%