.tab Format Specification

This document describes the .tab plain-text format used in this repository. Files are rendered to the website by scripts/build_site.py.


Directory Structure

Directory Contents
songs/czech/ Complete songs in Czech or Slovak
songs/english/ Complete songs in English
melodies/ Melody/solo-only arrangements (no full song)

Work in progress is marked by status.state (review or incomplete) in the header, not by directory.


File Naming

Artist - Song Title.tab

Artist and title are also stored in the header (artist, title) and must match the filename exactly. A folk song with no known author is named Song Title.tab and has artist: traditional.


File Structure

A .tab file has three zones in order:

  1. YAML header — required, see below
  2. Song body — sections with chords and lyrics
  3. [Fingerstyle] block — optional detailed tab notation

Header Block

YAML front matter between two --- lines at the very top of the file, then one blank line, then the song body. The machine-readable definition is tab-header.schema.json; scripts/check_headers.py checks files against it (warnings only, each with a suggested fix).

Required fields: title, artist, capo, pitch, tuning, status, source. A missing required field is a warning. Optional fields left out mean "not stated".

Never guess a value. The only exception are the defaults capo: 0, pitch: 0 and tuning: standard: they are allowed while status.state is review or incomplete and a todo item says to check that field.

status.state is one of:

review and incomplete must list the remaining work in todo; complete has no todo.

Every source entry needs a url or a note (for example note: by ear from the studio recording). All other source and media fields are optional.

---
title: Made Up Song
artist: Example Band
capo: 2
pitch: -1
tuning: standard
status:
  state: incomplete
  todo:
    - missing solo & solo chords
source:
  - url: https://example.com/example-band/made-up-song-chords
    used: [chords, lyrics]
    changes: minor
media:
  - url: https://example.com/made-up-song-video
    type: video
    setting: studio
    performer: artist
    release: official
    content: performance
---

Every field, its allowed values and the checker's fix hints are listed in tab-header.md, generated from the schema when the website is built (not stored in the repository; run scripts/schema_docs.py to view it locally).


Song Body

Sections

Each section starts with a label in square brackets at column 0. Chord and lyric lines are indented with 4 spaces. ASCII tab lines start at column 0 (see Tab Lines and Melodies).

[Verse 1]
    Am               G
    Here come the words

A line that starts with [ at column 0 always starts a new section, so bracketed text inside a section ([silence], [: ... :]) must be indented. Every body line belongs to a section: text before the first label is a parse error.

Old songbook labels such as 1., R:, REF: or *: are not part of the format; use [Verse 1], [Chorus], [repeat Chorus] and so on.

Label line

After the closing ] a label line may carry chords (a pattern for the whole section, see B), repeat counts [Nx] and notes in parentheses. The website shows the label line as written.

[Intro] A7 D7 E A7
[Solo]  Am F C G  [3x]
[Chorus]  (quietly)
[repeat Chorus]  [2x]

Standard section names:

Qualified names — freeform words can be added to describe variants:

[loud Chorus]
[last Chorus]
[Verse calm]
[Guitar Solo]
[Verse 3 intense]

Numbered sections — use numbers when the same section type has different content:

[Verse 1]
[Verse 2]
[Chorus 1]
[Chorus 2]

Repeat reference:

[repeat Chorus]
[repeat Verse 1]  [2x]

Means: play the named section again, word for word, with its chords. The section must appear earlier in the file under exactly that name. The label line may carry chords, [Nx] and notes like any label. A note may change how the section is played (dynamics, strumming, transposition), not the notes or the lyrics. The website shows the label line, not a copy of the section.

Lines after [repeat X] are allowed only as extras marked with + (see "The + prefix" below):

[repeat Chorus]
+   and one more line at the end

A repeat that is not word for word (a different ending, a part only) is written as its own section, e.g. [Chorus end].


Chord Placement

A. Chords above lyrics (standard)

Chord names sit on their own line, horizontally aligned above the syllable where the change occurs:

    Am               G             C
    Darkness creeping in from the side

B. Chords on the section header line (compact)

When the chord pattern is simple and uniform throughout the section:

[Verse 1] Am G C F  [2x]
    First line of lyrics
    Second line of lyrics

Label-line chords are a pattern for the whole section. Do not use the label line as an aligned chord line for the first lyric line; put such chords on their own line (A).

C. Chord-only section (no lyrics)

For instrumental passages, solos, or intros:

[Intro]  G D Am Am  G D C C  [2x]

[Solo]  Am F C G  [3x]

Pipe markers (convert when touching a file)

A few files embed | characters inside lyric lines to mark where chord changes fall, without naming the chords. Write new tabs with chords above lyrics (A) instead, and convert pipe markers when editing such a file.


Chord Notation

Root notes

Use English notation throughout: A B C D E F G.

Note on H and mi: Some files (especially Czech/Slovak) use H for B-natural following the German/Czech convention, B for B-flat, and mi for minor (Ami, Hmi). Convert them to English notation when touching a file: H → B, mi → m (Ami → Am, Hmi → Bm). A plain B in a Czech file may mean B flat. Convert it to Bb only when the key shows it; otherwise keep it and add a todo to check it.

A chord rename keeps the columns of the later chords on the same line; pad with spaces:

    Ami    C      Hmi        becomes        Am     C      Bm

Modifiers

Notation Meaning
Am, Em Minor
A7, G7 Dominant 7th
Cmaj7, Fmaj7 Major 7th
Dsus2, Asus4 Suspended
Cadd9 Added 9th
Edim, Bdim7 Diminished
Eaug Augmented
D6, Am7, Em9 6th, minor 7th, 9th
Dm7b5 Half-diminished
G/B, D/F#, Am/C Slash chord (bass note after slash)
F#m, C#m, Bb, Eb Sharp/flat roots

Unknown or uncertain chords

?           ← chord is unknown
F#m?        ← chord is present but may be wrong, needs verification

Duration suffixes

These are appended directly to the chord name (no space) to indicate how long the chord lasts within the beat pattern. The baseline is one full beat.

Suffix Duration
(none) Full beat
. (dot) Half beat
, (comma) 3/4 beat
' (apostrophe) 1/4 beat or single strum

INCOMPLETE: The distinction between ' as a strict 1/4 beat vs. a single strum (which may not map to a fixed subdivision) has not been fully settled. This may be differentiated in a future revision.

Suffixes can be combined and chained:

G.G'        ← half-beat G, then quarter-beat G
Am.C.       ← half-beat Am, half-beat C (two chords in one beat)

Repeat Markers

[Nx] means "repeat this N times". It goes after a chord sequence or at the end of a label line, including a repeat label:

[Chorus] Am G C F  [4x]
[repeat Chorus]  [2x]
    F  C  Gm  [4x]

After label chords, [Nx] repeats the chord pattern; on a label without chords it repeats the whole section.

This is the only spelling of a count. Do not write [2x repeat Chorus], [repeat Chorus 2x], [Chorus 2x] or (4x).

[: ... :] around one or more lines marks a repeated passage:

INCOMPLETE: This notation appears in a small number of files (e.g. Bastion - Build That Wall). Its exact semantics and whether it is officially supported has not been confirmed.


Lyrics Conventions

The + prefix

A + marks a line that differs from the usual: an extra lyric line, or extra chords compared to the other occurrences of the section. The + goes at column 0 in place of the first indent character, so the text stays at column 4:

[Verse 2]
    Am               G
    Here come the words
+   and a line the other verses do not have

[repeat Chorus]
+   D  A7  D

+ is allowed in any section, and it is the only way to add lines after a [repeat X]. Do not write it inside the indent (+ text).


Tab Lines and Melodies

ASCII tab lines (e|---) start at column 0; the 4-space indent is for chord and lyric lines only. A chord line above tab lines is aligned to the tab columns.

A melody file puts its tab under a normal section label, e.g. [Melody] for a single part, or [Intro], [Part 1], [Part 2].


The [Fingerstyle] Section

Optional. Always placed at the bottom of the file. Contains standard ASCII guitar tablature.

[Fingerstyle]

[Intro]
   Am          G
e|------------|------------|
B|----1-------|----0-------|
G|---0--2-----|---0--0-----|
D|--2-----2---|--0-----0---|
A|-0----------|------------|
E|------------|-3----------|

String order (high to low): e B G D A E

Sub-sections within [Fingerstyle] mirror the song sections ([Intro], [Verse], [Chorus], etc.); not every section needs to be present.

R| strumming guide line:

R|---v---v---^---v---|

v = downstroke, ^ = upstroke.

[Chords] variant

When only chord voicings are needed (no full tab), a top-level [Chords] section lists chord shapes:

[Chords]
   Am    G     C     F
e|-0-|--3-|--0-|--1-|
B|-1-|--0-|--1-|--1-|
G|-2-|--0-|--0-|--2-|
D|-2-|--0-|--2-|--3-|
A|-0-|--2-|--3-|--3-|
E|---|--3-|----|--1-|

ASCII Tab Technique Symbols

Symbol Technique
h Hammer-on
p Pull-off
b Bend string up
r Release bend
/ Slide up
\ Slide down
v or ~ Vibrato
t or T Right-hand tap
s Legato slide
S Shift slide
* Natural harmonic
[n] Artificial harmonic
n(n) Tapped harmonic
tr Trill
TP Tremolo picking
PM or _ Palm muting
\n/ Tremolo arm dip (n = amount)
= Hold bend / connector for hammers/pulls
<> Volume swell
x Muted note
o Open/single note on rhythm slash
(n) Optional or ghost note

Known Format Issues / Migration Notes