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
Section titled “Metadata”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.
| Directive | Label 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.
Sections
Section titled “Sections”A section starts with start_of_… and ends with end_of_…. After the colon comes
the label that appears above the section.
| Section | Short | Long |
|---|---|---|
| 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} |
| Intro | none | {start_of_intro} {end_of_intro} |
| Outro | none | {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”.
Repeat the chorus
Section titled “Repeat the chorus”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
The simple forms {verse}, {bridge}, {intro}, {outro} and {tab}, on the other hand, open
a new section, just like the start_of_… form.
Sections with their own content
Section titled “Sections with their own content”These sections don’t contain lyrics with chords, but something else:
| Section | What 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
Section titled “Comments”Comments are notes to the band. They appear in the chord sheet but are not part of the lyrics.
| Directive | Look |
|---|---|
{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 |
Font, size and color
Section titled “Font, size and color”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.
| Part | Directives |
|---|---|
| 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,sansormono. The namestimes,helveticaandcourierwork 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
redor a color code such as#c00000.
Selectors: lines only under a condition
Section titled “Selectors: lines only under a condition”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
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.
Several songs in one file
Section titled “Several songs in one file”{new_song} or short {ns} separates two songs. When importing, each becomes a
song of its own.
Transpose
Section titled “Transpose”{transpose: 2} shifts all following chords by two semitones. Details are on the
page Transpose and capo.
What GigSpace deliberately ignores
Section titled “What GigSpace deliberately ignores”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.
| Directives | Reason |
|---|---|
{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.