How jonahbkerr/jam-like-a-legend works
Jam Like a Legend is a browser-based drum trainer: users learn with guided lessons or import songs, then play charts using a MIDI kit or keyboard and review results. Song import decodes audio, analyzes drums and beats, and produces difficulty levels; optional drum separation improves parts of the chart. The graph preserves the documented practice, kit setup, and local-library capabilities. Some internal links are dashed where the sampled excerpts do not establish call ownership; README statements support documented product flows.
Main entry points: SongLibrary.tsx Song Library UI · App.tsx App Navigation · pipeline.ts Chart Analysis · PlayView.tsx Play Screen
Components 24
Learning and Play
- App Navigation
src/App.tsx - Guided Lessons
src/content/lessons.ts - Play Screen
src/ui/PlayView.tsx - Game Engine
src/engine/game.ts - Hit Judging
src/engine/judge.ts - Run Results
src/ui/ResultsView.tsx
Song Charting
- Song Library UI
src/ui/SongLibrary.tsx - Chart Preview
src/ui/ChartPreview.tsx - Audio Import
src/engine/transcribe.ts - Chart Worker Client
src/engine/chart/client.ts - Chart Worker
src/engine/chart/worker.ts - Chart Analysis
src/engine/chart/pipeline.ts - Drum Detection
src/engine/chart/adtof.ts - Beat Tracking
src/engine/chart/beats.ts - Chart Arrangement
src/engine/chart/arrange.ts - Drum Separation
src/engine/chart/demucs.ts
Kit and Audio
- MIDI and Keyboard
src/engine/midi.ts - Kit Setup
src/ui/KitSetup.tsx - Drum Synth
src/engine/audio.ts
Local Data
- Progress Tracking
src/state/progress.ts - Song Storage Client
src/engine/songstore.ts - Settings and Browser Store
src/state/library.ts - SQLite Library API
server/library.ts
Other components
- Drummer
Connections 26
- Drummer → App Navigation: opens and navigates
README.md - App Navigation → Guided Lessons: presents lessons
src/App.tsx - App Navigation → Song Library UI: opens songs
src/App.tsx - Drummer → Kit Setup: maps kit pads
README.md - Drummer → Play Screen: plays chart
README.md - Play Screen → Game Engine: controls play
src/ui/PlayView.tsx - Game Engine → Hit Judging: grades hits
src/engine/game.ts - Play Screen → MIDI and Keyboard: receives kit input
src/ui/PlayView.tsx - Game Engine → Drum Synth: plays drum sounds
src/engine/game.ts - App Navigation → Run Results: shows results
src/App.tsx - App Navigation → Progress Tracking: records results
src/App.tsx - Song Library UI → Audio Import: decodes audio
src/ui/SongLibrary.tsx - Song Library UI → Chart Worker Client: requests analysis
src/ui/SongLibrary.tsx - Chart Worker Client → Chart Worker: dispatches job
- Chart Worker → Chart Analysis: runs analysis
src/engine/chart/worker.ts - Chart Analysis → Drum Detection: detects drum hits
src/engine/chart/pipeline.ts - Chart Analysis → Beat Tracking: tracks beats
src/engine/chart/pipeline.ts - Chart Analysis → Chart Arrangement: arranges chart
src/engine/chart/pipeline.ts - Chart Worker → Drum Separation: separates drums
src/engine/chart/worker.ts - Song Library UI → Chart Preview: previews chart
src/ui/SongLibrary.tsx - Song Library UI → Song Storage Client: saves and loads songs
src/ui/SongLibrary.tsx - Song Storage Client → Audio Import: builds song charts
src/engine/songstore.ts - Song Storage Client → Settings and Browser Store: uses library storage
src/engine/songstore.ts - Progress Tracking → Settings and Browser Store: reads and writes settings
src/state/progress.ts - Settings and Browser Store → SQLite Library API: requests library API
src/state/library.ts - Drummer → Song Library UI: imports songs
README.md