A powerful guitar tab and score previewer for VS Code. This fork of LSTM-Kirigaya/vscode-alphatab turns the preview into a fully working audition surface for arranging, featuring A/B compare, loop-a-phrase playback, and gate diagnostics directly in the Problems panel. (It also fixes upstream issues where the extension fails inside modern VS Code with repeated
importScriptsNetworkErrors and a blank preview).
Preview & playback
- Renders alphaTex, re-rendering as you type — without reloading the soundfont or losing your scroll and playback position.
- Transport: play/pause, stop, seek bar with bar and time readouts, playback speed, metronome, count-in, volume.
- Loop a bar range — the control you want when auditioning one phrase over and over.
- Zoom, page/horizontal layout, stave profile, display transpose, per-track mute/solo.
- Section navigator built from
\sectionmarkers. Print and MIDI export.
A/B compare
- One panel holds both your arrangement and its reference score.
Alt+Bswaps between them, keeping the bar position and resuming playback where it left off. - If a
sidecar.jsonsits next to the files, itstabBars/sourceBarsentries map bars between the two sides, so the swap lands on the corresponding bar even where they do not line up 1:1.
Editing
- Diagnostics in the Problems panel as you type, with precise positions, from alphaTab's own parser — a half-finished file still reports usefully instead of failing wholesale.
- Completions with documentation, hover on
\keywordsand on fret tokens (5.3→ G3 · string 3 (G) · fret 5), snippets, outline and folding from\section. - Click a note in the preview to jump the editor cursor there, and move the editor cursor to scroll the preview.
Companion tools
- Any CLI that takes a file and prints JSON can feed the Problems panel and a status-bar gate indicator. Ships with a preset for the Piano-to-Guitar toolchain.
Automatically jump to the alphaTab text for any note you select in the player.
Easily adjust the playback speed to practice at your own pace.
Seamlessly switch between different tab formats directly from the player interface.
An example exported using the 'print' function. View the exported PDF
Option A — prebuilt VSIX:
- Download
alphatab-0.1.0.vsixfrom this fork's Releases page. -
(or Extensions panel →
code --install-extension alphatab-0.1.0.vsix···→ Install from VSIX...) - Restart VS Code. If the upstream extension is installed, remove it first:
code --uninstall-extension kirigaya.alphatab.
Option B — build from source (Node.js 18+):
git clone https://github.com/starryark/vscode-alphatab.git
cd vscode-alphatab
npm ci
npx --yes @vscode/vsce package # produces alphatab-0.1.0.vsix (~2.4 MB)
code --install-extension alphatab-0.1.0.vsix
Then open a .alphatab file and click the preview button in the editor title bar.
Only a small general-purpose bank (1.3 MB) ships with the extension, which is why the package is
2.4 MB rather than the 137 MB it used to be. To use your own instrument banks, point
alphatab.soundFonts at them:
They stay on your disk and appear in the preview's soundfont picker.
| Key | Action |
|---|---|
Alt+Space |
Play / pause |
Alt+B |
Swap A/B |
Alt+L |
Toggle loop |
If the open file lives inside a Piano-to-Guitar project (detected by
walking up for tools/check.mjs and AGENTS.md), the extension runs that project's gate on save
and reports the results inline:
validate.mjsandplayability.mjsalways;check.mjsas well when asidecar.jsonand asource.jsondigest are present.- Findings land on the right bar in the Problems panel; the status bar shows the gate verdict.
- A
0/0comparison row is flagged as a vacuous pass rather than shown as green, andplayability's exit code is ignored in favour of itserrors[]— both are documented traps in that project. alphatab.companion.snapOnSave(off by default) runshistory.mjs snapbefore each save, closing the one gap in that workflow's history: a hand edit made in the editor.
Set alphatab.companion.transpose per project if the arrangement sits above its source, and
alphatab.companion.preset to none to turn the integration off.
Kept here because each looks removable and each breaks the extension:
importScriptsNetworkError / blank preview. alphaTab renders and synthesizes in Web Workers, but workers in a VS Code webview cannot load the cross-originvscode-cdn.netURL alphaTab auto-detects. Rendering moves to the main thread (core.useWorkers: false), and the bundle is fetched on the main thread and handed to the synthesizer worker as a same-originblob:URL (core.scriptFile). Audio uses the ScriptProcessor path because AudioWorklet'saddModule()hits the same wall.- Blank preview on open. The extension waits for a
readyhandshake before sending content; messages posted before the webview attaches its listener are silently dropped.
See CLAUDE.md for the full list and for the two index-numbering traps in alphaTab's API.
Built on AlphaTab. If you are new to alphaTex, the language tutorial is the place to start.
Upstream project: LSTM-Kirigaya/vscode-alphatab.


