"Le chansonnier" displays and print nicely-formatted songs whith chords name, diagrams, column layout ... but internally they are stored as plain text.
The song plain-text format is visible in two places:
A typical song text will look like the following:
It is composed of the following parts (always in this order). Each part is described in more details in a chapter below.
{propertyName: propertyValue}
# comment text # ...
{chords}
chord-name=chord-position
...
{block: label} block text ...
{tab: label} block text ...
The song properties hold data about the song. This data is used to make the 'header' part (displaying title, singer, creation date, authors... )
when the song is displayed.
The format of a property is:
{propertyName: propertyValue}Where the property name must be one of the names described below.
Available properties are:
Note: if you are editing the songs inside "Le Chansonnier" application, you will not see the properties as they are managed in the Song details edition dialog. They just appear when the song text is exported to the ".sng" format.
Example of song properties:
{Title: [A] hard day's night}
{Singer: [The] Beatles}
{Language: en}
{Year: 1964}
{Words: [John] Lennon, [Paul] Mc Cartney}
{Music: [John] Lennon, [Paul] Mc Cartney}
The comments put in the song text that are not visible in the rest of the application.
All line starting with a '#' character is a comment.
Example of comment:
# ----------------------------------- # # Encoded for learning purpose only # By O. Berlanger :-) # # -----------------------------------
The chord definition section is a way to define defaults positions globally for some chords in the song.
Use it when you use special fingering for some chords troughout the song, or to define positions of special chords that are not
known by default in the system.
The alternative is to define the positions in the song text each time the chord occurs.
Note that, chords definition has no visual conterpart. It's just definig defaults. So, the fact that chords diagrms are displayed
or the set of chords displayed as diagarms is not controlled by it.
The format of chord position definitions is:
{chords}
chordName1=position1
chordName2=position2
...
Go to Chord definitions to see what a chord name or chord position is.
Example of global chord position definitions:
{chords}
D/C=x30232
G7M/SI=x20032
Gm7M/Bb=x10032
D5=x00235
The default text/chord block is the block that is used to encode most of the songs. You tipycally use one block per verse and one block for the chorus. In this usual scheme, the verse have label "1.", "2.", "3." ... and the chorus simply "Chorus.".
This block can contain chords, the chords are inserted in the text between brackets. When the block is rendered, they will be displayed
in block in an inserted line above the line of text. The position of the chord on this above line is set to match the point
where the bracket are inserted in text.
Go to Chord definitions to see what a chord name or chord position is.
Note: A block cannot contain more than one consecutive blank line. WHen there are two (or more) consecutive blank lines, the program splits the block in two by creating a new block (without label).
Example of text/chord block:
{block: Chorus.} When I'm [Bm]home, Everything [Em]seems to be all [Bm]right, When I'm [G=320033]home, [Em]Feeling you holding me [C]tight, [D]tight, yeah.
The monosplaced block is a way to introduce small tablatures in your song book. It is typically used to display small introduction or bridge riffs.
Note that the application does not interpret the content in any way, So, even if it contains chords they will not have a special display and they will
not ne translated or transposed as the rest of the song.
Example of monospaced block:
{tab: Intro.}
B E A D
E|-----------------|--0---0---0---0---|-0---0---0---0--|-2----|
B|--4---4---4---4--|--0---0---0---0---|-2---2---2---2--|-3----|
G|--4---4---4---4--|--1---1---1---1---|-2---2---2---2--|-2----|
D|--4---4---4---4--|--2---0---2---2---|-2---2---2---2--|-0----|
A|--2---0---x---x--|----------4---2---|-0---0---0---0--|------|
E|----------4---2--|------------------|-----3---2---0--|------|
Chords are the central point of the application. So they deserve a powerful definition so that the system can detect them,
translate them (in english style: "A", "B", "C" or french style: "Do", "RĂ©", "Mi"), to transpose them and to generate finger position diagrams.
A chord is composed of two parts:
The chord name itself is composed of several parts (appearing in this order, where only the first 'note name' is mandatory):
The chord name is enough in simple cases, because the program knows the poistion of a lot of chords.
But when you want to use exotic chords, or exotic fingering for usual chords or simply two different fingering
for the same chord in one song, then you have to specify the chord position.
The chord position is composed of the following (in this order):
|
C=030210The simple C major chord. |
G=355433|The G chord using a barre at frett 3. |
|
|
C13=x32355|5The C13 chord is an example usage of a small barre |