Skip to content

ChordPro directives: every command at a glance

A directive sits in curly braces on a line of its own. Its name comes before the colon, the value after it: {title: Amazing Grace}. Some directives need no value, such as {soc}. Upper and lower case don’t matter in the name.

This page lists every directive GigSpace knows. A test compares the list with the app’s editor on every change. So what is listed here, the app really understands.

Metadata describes the song. GigSpace shows it at the top of the chord sheet with its own labels. If you don’t need it, turn it off under Display → More settings with Show metadata.

DirectiveLabel in GigSpace
{title: …} or short {t: …}Title
{subtitle: …} or short {st: …}Subtitle
{artist: …}Artist
{composer: …}Music
{lyricist: …}Lyrics
{album: …}Album
{year: …}Year
{copyright: …}Copyright
{key: G}Key
{capo: 2}Capo
{tempo: 80}Tempo
{time: 3/4}Time
{duration: 3:45}Duration
{tag: Wedding}Tag

If {key} appears in the middle of the song, it is a key change. GigSpace marks the spot in the chord sheet with “from here …”. More on the page Transpose and capo.

You write your own details with {meta: name value}, for example {meta: arrangement Big Band}. The known names work this way too: {meta: artist Traditional} acts like {artist: Traditional}.

Two details only control sorting: {sorttitle: Hallelujah Chorus} and {sortartist: Handel, George Frideric}. GigSpace copies them into the song’s sort fields when importing. They don’t appear in the chord sheet.

A section starts with start_of_… and ends with end_of_…. After the colon comes the label that appears above the section.

SectionShortLong
Verse{sov} {eov}{start_of_verse} {end_of_verse}
Chorus{soc} {eoc}{start_of_chorus} {end_of_chorus}
Bridge{sob} {eob}{start_of_bridge} {end_of_bridge}
Tablature{sot} {eot}{start_of_tab} {end_of_tab}
Intronone{start_of_intro} {end_of_intro}
Outronone{start_of_outro} {end_of_outro}

Without a label, the sections are called Verse, Chorus, Bridge, Tab, Intro and Outro.

The chorus gets a line at the left edge. That way you find it quickly while playing. The bridge sits on a light background. Intro, outro and tablature are set in a fixed-width font, so that tablature keeps its columns.

Your own names are allowed as long as they consist of lowercase letters, digits and underscores and start with a letter. {start_of_solo} and {end_of_solo} give a section labeled “Solo”.

Write the chorus out once. After that, {chorus} is enough wherever it comes back. GigSpace inserts the most recently written chorus again at that point.

Source

{start_of_chorus}
[C]Chorus, written out once
{end_of_chorus}
{start_of_verse: Verse 2}
[G]Second verse
{end_of_verse}
{chorus}

Result in GigSpace

CChorus, written out once
GSecond verse
CChorus, written out once

The simple forms {verse}, {bridge}, {intro}, {outro} and {tab}, on the other hand, open a new section, just like the start_of_… form.

These sections don’t contain lyrics with chords, but something else:

SectionWhat GigSpace makes of it
{start_of_grid} ({sog} to {eog}), also {start_of_grille}A grid of bars made of cells such as | C . . . | G . . . |. The chords in it are transposed too.
{start_of_abc}Sheet music in ABC notation. More on the page Sheet music in a ChordPro song.
{start_of_textblock}Text, exactly as written. Square brackets stay visible.
{start_of_strum}A strumming pattern, also verbatim.
{start_of_svg}An embedded SVG graphic. For security reasons, GigSpace only shows simple shapes and text, no scripts, links or images loaded from elsewhere.
{start_of_ly}GigSpace can’t typeset LilyPond. A notice appears at that point.

Comments are notes to the band. They appear in the chord sheet but are not part of the lyrics.

DirectiveLook
{comment: …} or short {c: …}gray and italic
{comment_italic: …} or short {ci: …}italic and a little paler
{comment_box: …} or short {cb: …}with a frame
{highlight: …}with a colored background

These directives change how a part of the song looks. They apply from the line they are on. The name combines the part and the property: font for the typeface, size for the size and colour (also color) for the color.

PartDirectives
Lyrics{textfont} {textsize} {textcolour}
Chords{chordfont} {chordsize} {chordcolour}
Chorus{chorusfont} {chorussize} {choruscolour}
Labels{labelfont} {labelsize} {labelcolour}
Tablature{tabfont} {tabsize} {tabcolour}
Grid{gridfont} {gridsize} {gridcolour}
Title{titlefont} {titlesize} {titlecolour}

The most common ones have short forms: {tf} and {ts} for the lyrics, {cf} and {cs} for the chords.

  • Font: serif, sans or mono. The names times, helvetica and courier work too.
  • Size: in points, such as {chordsize: 14}, or in percent, such as {textsize: 120%}. GigSpace converts this into a factor and stays between half and two and a half times the size. That way the sheet stays readable on every screen.
  • Color: a color name such as red or a color code such as #c00000.

If you add a hyphen and a word to the name of a directive, it only applies when a metadata item with that name is set:

Source

{meta: vocals yes}
{comment-vocals: Second voice a third above}
{comment-vocals!: Instrumental, the violin plays the melody}

Result in GigSpace

Second voice a third above

The first line appears because vocals is set. The ! reverses the condition. So the second line only appears when vocals is missing or is 0, false, no, none, off or null. This also works with whole sections: {start_of_verse-vocals}.

GigSpace only checks metadata in the song itself. Selectors for instruments or people that other apps offer don’t exist here. The editor tells you which sections it leaves out because of a selector.

{new_song} or short {ns} separates two songs. When importing, each becomes a song of its own.

{transpose: 2} shifts all following chords by two semitones. Details are on the page Transpose and capo.

Some directives are meant for printed songbooks. On a screen they have no equivalent. GigSpace reads them without an error and skips them. Below the input field, the editor shows which lines it skips and why.

DirectivesReason
{new_page} {np} {new_physical_page} {npp} {pagetype}There are no pages on a screen.
{columns} {col} {column_break} {colb}You set columns under Display, to fit the screen.
{diagrams} {grid} {g} {no_grid} {ng} {define} {chord}GigSpace doesn’t show chord diagrams.
{titles}GigSpace aligns the title itself.
{image}There are no images in a song.
{footerfont} {footersize} {footercolour} {tocfont} {tocsize} {toccolour} {diagramsfont} {diagramssize} {diagramscolour}Footer, table of contents and chord diagrams don’t exist on a screen.

Careful with {grid}: in other apps, the simple directive turns on chord diagrams and has nothing to do with the grid from {start_of_grid}.

Directives that start with x_ are reserved for individual apps. GigSpace skips other apps’ x_ directives without a warning. Directives GigSpace doesn’t know at all don’t appear in the chord sheet.