# ChordPro

> The inline editor format. Chords go in square brackets right where they fall in the lyric. What Fretlist renders: inline chords, section directives, notes, diagrams, tabs, and what it skips.

Source: https://fretlist.com/docs/chordpro

ChordPro is the second editor tab. Instead of a chord line above the words, the chords go inline, in square brackets, right where they fall in the lyric. ChordPro is an open, portable plain-text format. The standard is maintained at [chordpro.org](https://www.chordpro.org/), which has the full reference for every directive.

This page covers what the editor renders. For the full background on ChordPro, including its history, converting from other apps, and how transposition works, see the blog post [ChordPro explained](https://fretlist.com/blog/chordpro-complete-guide.md). For the chords-above-words style, see [Chords over Lyrics](https://fretlist.com/docs/chords-over-lyrics.md).

## Inline chords

Each chord sits above the character right after its bracket, so put the bracket exactly where the chord changes:

```
[G]Strumming on my [C]guitar tonight
[Em]Singing songs beneath the [Am]light
```

What counts as a chord is the same everywhere in Fretlist: a root note (A to G), optionally sharp or flat, with quality, extension, and an optional slash bass, like `Am`, `C7`, `F#m7`, `Cmaj7`, `G/B`.

## Section headers

Mark a section with a comment directive:

```
{c: Verse}
[G]Strumming on my [C]guitar tonight
```

`{comment: ...}` is the long form of `{c: ...}`. Environment directives work too: `{start_of_chorus}` (or `{soc}`), `{start_of_verse: Verse 2}`, and `{chorus}` to repeat a chorus without writing it out again.

A comment only becomes a heading when it holds a common English section name, like `{c: Chorus}` or `{c: Verse 2}`. Any other comment stays a comment, as in the ChordPro standard, so for a heading in another language use an environment with a label: `{start_of_verse: Strophe 1}`. A name followed by a colon on its own line, like `Refrein:`, is a heading in any language too.

## Notes that aren't chords

Mark a non-chord cue with an asterisk right after the bracket. It renders above the lyric in the lyric color, and its words never change with the key. Only a note that starts with a chord, like `[*Dm7 (twice)]`, transposes that chord:

```
I found a [G]love [*Stop]for me
```

It is the same note that Chords over Lyrics writes as `(Stop)`, and switching tabs converts between the two. Fretlist also accepts bare brackets like `[Mute]` or `[(stop)]` as notes.

A chord in parentheses is still a chord. `[(G)]` is the ChordPro way to write an alternative or passing chord: it transposes, gets its chord diagram, and keeps its parentheses on the sheet:

```
I [(G)]found a [C]love
```

## Chord diagrams

Define shapes with `{define:}` and they render as fingering diagrams:

```
{define: C base-fret 1 frets x 3 2 0 1 0}
{define: G base-fret 1 frets 3 2 0 0 0 3}
{define: Am base-fret 1 frets x 0 2 2 1 0}
```

See [Getting the most out of Frets](https://fretlist.com/docs/getting-the-most-out-of-frets.md) for the full diagram system.

## Tabs

Wrap tab in `{start_of_tab}` and `{end_of_tab}`. Fretlist also auto-detects tab lines, so the wrapper is optional:

```
{start_of_tab}
e|--------------0--|
B|----------0-1----|
G|------0-2--------|
D|--2-3------------|
A|-----------------|
E|-----------------|
{end_of_tab}
```

## Chord grids

Chart bars without lyrics in a `{start_of_grid}` environment. Real barlines divide the bars and a dot is a beat with no new chord:

```
{start_of_grid}
| C . . . | F . . . | Am7 . . . | Dm . . . |
{end_of_grid}
```

See [Chord grids](https://fretlist.com/docs/grids.md) for split bars, repeats, first and second endings, and strum patterns.

## What the editor skips

A line starting with a single `#` is a hidden comment, and metadata or layout directives (`{title}`, `{artist}`, `{key}`, `{capo}`, custom `{x_...}`) are not drawn in the chord-sheet body. In this example only the two lyric lines render:

```
# reminder: capo 2 live
{title: Perfect}
[G]Everything in brackets [C]renders
{x_layout: ignored}
[Em]but the directives [D]do not
```

They stay in the song text exactly as you wrote them. Type or paste `{key}`, `{capo}`, `{tempo}`, `{time}`, `{duration}`, `{tuning}` or `{year}` and those values fill in the song's details, for a new song and an existing one. Change one of those details later and the matching directive in the text changes with it.

## Tags and fill-ins inside a line

Fretlist hides ChordPro's text tags and keeps the words. `<b>my love</b>` shows as "my love", and the tags stay in your file, so another app that draws them still can. This goes for `b`, `big`, `i`, `s`, `small`, `sub`, `sup`, `tt` and `u`, when the closing tag is on the same line. Anything else in angle brackets, like `<Chorus>` or `<x2>`, is yours and stays visible.

`%{...}` fills in a value from the song's own directives:

```
{meta: year 1790}
Written in %{year}
With %{crew|24|four and twenty} seamen
```

`%{name|a|b}` shows `a` when the name has a value and `b` when it does not. A plain `%{name}` with no value stays as you typed it.

A section with a selector, like `{start_of_verse-guitar}`, shows as a plain verse, words included. Other directives with a selector, like `{capo-guitar: 2}` or `{comment-alto: Softly}`, stay in your file but do nothing in Fretlist yet.

## Directive support at a glance

Here is where the major ChordPro directives stand in Fretlist. When something is not drawn, it is kept in the file rather than dropped, so nothing is lost on export.

## The preview, and switching formats

The preview renders the finished sheet live. Switch to the **Chords over Lyrics** tab to see the same song in the chords-above-words style, then switch back for ChordPro. A few ChordPro directives have no Chords-over-Lyrics equivalent, so Fretlist warns you before you edit in that view.
