Skip to content

About

Chord detection & audio transcription web app — upload audio or paste a link to get chords, tempo, key, and lyrics, then export to tabs, MIDI, and MusicXML.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

🎸 Magic Chords

Browser-first music understanding for song analysis, chords, and lead sheets.

Analyze any song for its key, chords, tempo, structure, and lyrics, then turn it into a trustworthy chord sheet or lead sheet. Capture your own rough takes in Idea Studio and export them too.

Production site: magic-chords.dev


✨ Highlights

  • 🎵 Song analysis — upload audio or paste a YouTube/SoundCloud URL to detect chords, key, tempo, time signature, and structure
  • 🧠 Chord detection — BTC transformer-based recognition with music-theory scoring/validation, plus a non-TensorFlow librosa pYIN vocal-note path for a-cappella/voice-heavy audio
  • 📝 Smart transcription — OpenAI Whisper with automatic instrumental detection and word-level timing
  • 🎼 Interactive partition & lead sheets — audio-synced score view (alphaTab), chord symbols/voicings, lyrics, optional bass staff, print/PDF and MusicXML export
  • 🎹 Interactive playback — rolling chord display and real-time highlighting
  • 🎚️ Idea Studio — browser-based workspace to record local takes, layer/punch in, get harmonic suggestions, and export MusicXML/PDF/WAV
  • 📦 Multiple export formats — classical partition, iReal Pro, guitar & bass tabs, MIDI, MusicXML, PDF, WAV
  • 🥁 Stem separation — standalone stems workflow, plus Accurate + Bass analysis for bass-aware results
  • 📚 Local library & setlists — save analyzed songs locally, organize folders/setlists, re-analyze without losing data
  • ✏️ Editable metadata — adjust tempo, time signature, key, and bar offsets with live measure re-splitting
  • ⚡ Real-time progress — live WebSocket progress updates with fallback polling
  • 🌍 Multi-language support — localized UI and transcription language options
  • 🐳 Docker-ready — CPU and GPU deployment options

🧠 How it works

Magic Chords combines several analysis and processing components:

  • BTC for primary chord recognition (transformer-based)
  • Librosa for audio analysis, beat/tempo/key detection, and pYIN vocal/bass note detection
  • OpenAI Whisper for lyrics/vocal transcription
  • Demucs for optional source/stem separation
  • A custom music-theory scoring layer to produce musically coherent timelines and exports

Processing runs server-side with live progress streamed over WebSockets, and the frontend is lightweight vanilla JavaScript (no framework build step).


🛠️ Tech stack

Layer Technology
Backend Python 3.14, FastAPI
ML / audio BTC, Whisper, librosa, Demucs
Task queue Celery
Frontend Vanilla JS (Vite dev server, no framework runtime build step)
Storage Redis
Deploy Docker / Docker Compose, Caddy

🗂️ Project Board

Track development progress, upcoming features, and task planning on the GitHub Project Board.


If you'd like to reach out about the project, feel free to open an issue or a discussion.


© Magic Chords. All rights reserved.

About

Chord detection & audio transcription web app — upload audio or paste a link to get chords, tempo, key, and lyrics, then export to tabs, MIDI, and MusicXML.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors