Tab header reference

The YAML front matter at the top of every .tab file. The format rules and an example are in tab_format.md; this page lists every field. Check files with scripts/check_headers.py PATH....

Top-level fields

YAML front matter at the top of a .tab file. Required fields produce a warning when missing. An optional field that is omitted means 'unknown'. capo, pitch and tuning may hold a default value (0, 0, standard) only while status.state is 'review' or 'incomplete' and a todo item says to check them.

Field Required Type Meaning
title yes string Song title. Must match the part of the filename after ' - ' (or the whole filename if it has no artist).
artist yes string Performer the song is credited to. Must match the part of the filename before ' - '. 'traditional' marks a folk song with no known author; its filename has no artist part. Examples: Guns N' Roses, traditional.
composer no string Who wrote the music, if different from the artist or worth stating.
lyricist no string Who wrote the lyrics, if different from the artist or worth stating.
capo yes integer ≥ 0 Capo fret the tab is written for. 0 = no capo. The default 0 is allowed only with status 'review' or 'incomplete' and a todo item to check it.
pitch yes integer Semitone offset of the whole guitar relative to the tuning, as if the capo were at this fret. -1 = every string one semitone down (e.g. Eb standard). 0 = no offset. The default 0 is allowed only with status 'review' or 'incomplete' and a todo item to check it.
tuning yes string Tuning of the strings relative to each other, before applying pitch: 'standard', 'drop D', 'DADGAD', ... The default 'standard' is allowed only with status 'review' or 'incomplete' and a todo item to check it. Examples: standard, drop D, DADGAD.
status yes object How far the tab is checked. 'review' and 'incomplete' must list the remaining work in todo; 'complete' must have an empty todo (the checker warns otherwise).
source yes list of Source entries References the tab is based on - its source of truth. At least one entry; use a note (e.g. 'by ear from the studio recording') when there is no link.
media no list of Media entries Recordings to listen or play along to, and tutorials.
notes no list of strings Free-text remarks about the song or the tab. Remaining work belongs in status.todo instead.

Fixes suggested by the checker: