Pagode Hero – Brazilian Pagode Rhythm Game

A Guitar Hero-style rhythm game built around Brazilian pagode: the player hits the cavaquinho notes on the keyboard (A, S, K, L) while the band plays. It runs entirely in the browser.

Highlights

  • Automatic note charts: instead of mapping notes by hand, the game analyses the isolated cavaquinho track with spectral flux (FFT 1024, hop 512) to detect each strum, and uses the spectral centroid to assign the lane.
  • Three difficulty levels generated from the same analysis by changing the minimum gap between notes – the strongest strums win.
  • Dynamic mix with Web Audio API: each instrument is a separate stem, and every mistake mutes one more instrument (cavaquinho, pandeiro, bass, guitar and banjo) until only the vocals remain.
  • Game mechanics: combo multiplier up to 4×, Star Power notes and a “resenha meter”, with scores and settings saved locally.
  • Animated home screen drawn entirely in SVG and synced to the song’s BPM.

Stack: TypeScript · Vite · Web Audio API · Canvas 2D · FFT / Signal Processing · SVG · GitHub Actions · GitHub Pages

🔗 Live app: https://meneguinha.github.io/pagode-hero/
💻 Source code: https://github.com/meneguinha/pagode-hero

Description