Guitar Tab AI
Turns a recording, a song link or a video into guitar tab you can read, hear and download.
- Year
- 2026
- Stack
- React, Vite, Flask, basic-pitch, Demucs, librosa, OpenCV

01 — The problem
Most songs never get an accurate tab, and working one out by ear is slow. Lessons and play-alongs often show the tab on screen or name the capo and tuning out loud, but that information is stuck inside the video.
02 — What I built
A Flask pipeline that downloads links with yt-dlp, isolates the guitar with Demucs, retunes off-pitch audio, detects polyphonic notes with basic-pitch and snaps them to a librosa beat grid. Tutorial mode reads captions or runs Whisper locally to pick up the capo, tuning and chords a teacher mentions. Tabs-on-screen mode uses OpenCV and a digit reader I trained to read the tab shown in the video. The React front end plays the result back with a Karplus-Strong synth and exports TXT or MIDI.
03 — A decision
Pick strings and frets with a Viterbi search
The same pitch can be played in several places on the neck, so a note-by-note lookup gives tabs no one can play. A Viterbi search over every possible position picks the path that keeps the hand still and avoids big stretches. A second model, fitted on GuitarSet, then rechecks each note against the audio and hides near-certain ghost notes.
04 — Outcomes
- 72.9% note-onset F1 on 60 held-out GuitarSet clips with the tab check (71.3% without).
- 94.5% exact string and fret when a tab is shown on screen, vs 68.2% from audio alone on the same clips.
- Runs entirely on open-source models, with no paid APIs.