mirror of https://github.com/patacrep/patacrep.git
Romain Goffe
14 years ago
2 changed files with 156 additions and 0 deletions
@ -0,0 +1,77 @@ |
|||||
|
% ******************************************************************************* |
||||
|
% Example file to write an sg file. |
||||
|
|
||||
|
% Every line starting with a % is a comment that |
||||
|
% will not appear in the final pdf |
||||
|
|
||||
|
% Neither use special characters nor spaces for file names |
||||
|
% Use the song title to name the .sg file (words separated by an _) |
||||
|
% Use the album name for the file .jpg of the cover (words separated by an -) |
||||
|
% Place ".sg" and ".jpg" files in a subdirectory named from artist name in ./songs |
||||
|
|
||||
|
% Refer to the Songs LaTeX Package documentation for advanced configuration |
||||
|
% http://songs.sourceforge.net/songsdoc/songs.html |
||||
|
|
||||
|
% You may find complementary information in the Patacrep documentation file |
||||
|
% http://www.patacrep.com/data/documents/doc.pdf |
||||
|
% ******************************************************************************* |
||||
|
|
||||
|
\selectlanguage{english} %defines the song main language |
||||
|
\songcolumns{2} %defines the number of columns |
||||
|
|
||||
|
% Sad robot: the song's title |
||||
|
% Pornophonique : the artist's name |
||||
|
% 8-bit-lagerfeuer : the file "8-bit-lagerfeuer.jpg" that corresponds to the album art |
||||
|
% 8 bit lagerfeuer : the album whose song is extracted from |
||||
|
\beginsong{Sad robot} |
||||
|
[by=Pornophonique,cov=8-bit-lagerfeuer,album=8 bit lagerfeuer] |
||||
|
|
||||
|
% inserts the album art (8-bit-lagerfeuer.jpg) |
||||
|
\cover |
||||
|
% \gtab{<chord>}{<fret>:<strings>} inserts a guitar chord diagram |
||||
|
% <chord> : the chord name to be placed above the diagram. |
||||
|
% <fret> : represents the top fret of the diagram (any number from 1 to 9). |
||||
|
% <strings> : series of six symbols, one for each string of the guitar from lowest pitch to highest. |
||||
|
% Each symbol should be one of: X if that string is not to be played, 0 (zero or the letter O) if that |
||||
|
% string is to be played open, or one of 1 through 9 if that string is to be played on the given numbered fret. |
||||
|
\gtab{Rém}{XX0231} |
||||
|
\gtab{Fa}{1:022100} |
||||
|
\gtab{Do}{X32010} |
||||
|
|
||||
|
% propose minimal information to play the song (do not repeat chords) |
||||
|
% insert a chord right before the corresponding syllabe (no space) |
||||
|
% put a verse between \beginverse and \endverse |
||||
|
% put a chorus between \beginchorus and \endchorus |
||||
|
% \beginverse* defines a not numbered verse |
||||
|
% use the \rep{n} macro for a sentence repeated n times |
||||
|
% use the \echo{text} macro for background singing lyrics |
||||
|
|
||||
|
\lilypond{Sad_robot} % inserts the music sheet corresponding to the Sad_robot.ly file in the ./lilypond directory |
||||
|
|
||||
|
\beginverse |
||||
|
His \[Rém]steely skin is covered |
||||
|
By \[Fa]centuries of dust |
||||
|
\[Do]Once he was a great one |
||||
|
\[Rém]Now he's dull and rust |
||||
|
\endverse |
||||
|
|
||||
|
\beginverse* |
||||
|
An oily tear he's crying |
||||
|
Can you feel the pain |
||||
|
Of the sad, sad robot |
||||
|
And it's driving him insane |
||||
|
\endverse |
||||
|
|
||||
|
\beginverse* |
||||
|
He can't turn back time nor history |
||||
|
So his life became a misery |
||||
|
He has to face the destiny |
||||
|
Nobody cares anymore |
||||
|
\endverse |
||||
|
|
||||
|
\beginchorus |
||||
|
Sad, sad robot \rep{3} |
||||
|
All alone |
||||
|
\endchorus |
||||
|
|
||||
|
\endsong |
@ -0,0 +1,79 @@ |
|||||
|
% ******************************************************************************* |
||||
|
% Fichier d'exemple pour écrire une chanson .sg |
||||
|
|
||||
|
% Chaque ligne commençant par un % est un commentaire qui n'apparaitra |
||||
|
% pas dans le pdf final |
||||
|
|
||||
|
% N'utilisez pas de caractères spéciaux ni d'espaces dans les noms de fichier |
||||
|
% Utilisez le titre de la chanson pour nommer le fichier .sg (mots séparés par un _) |
||||
|
% Utilisez le titre de l'album pour nommer le fichier .jpg de la pochette (mots séparés par un -) |
||||
|
% Placez les fichiers ".sg" et ".jpg" dans un sous-répertoire au nom de l'artiste dans ./songs |
||||
|
|
||||
|
% Référez-vous à la documentation du Songs LaTeX package pour une |
||||
|
% configuration avancée |
||||
|
% http://songs.sourceforge.net/songsdoc/songs.html |
||||
|
|
||||
|
% Vous trouverez des informations complémentations dans le fichier de |
||||
|
% documentation sur Patacrep |
||||
|
% http://www.patacrep.com/data/documents/doc.pdf |
||||
|
% ******************************************************************************* |
||||
|
|
||||
|
\selectlanguage{english} % définit la langue principale de la chanson |
||||
|
\songcolumns{2} %definit le nombre de colonnes |
||||
|
|
||||
|
% Sad robot: le titre de la chanson |
||||
|
% Pornophonique : le nom de l'artiste |
||||
|
% 8-bit-lagerfeuer : le fichier "8-bit-lagerfeuer.jpg" correspondant à la pochette de l'album |
||||
|
% 8 bit lagerfeuer : le nom de l'album dont la chanson est extraite |
||||
|
\beginsong{Sad robot} |
||||
|
[by=Pornophonique,cov=8-bit-lagerfeuer,album=8 bit lagerfeuer] |
||||
|
|
||||
|
% insère la pochette de l'album (8-bit-lagerfeuer.jpg) |
||||
|
\cover |
||||
|
% \gtab{<accord>}{<fret>:<cordes>} insère le digramme d'un accord de guitare |
||||
|
% <accord> : le nom de l'accord, placé au-dessus du diagramme |
||||
|
% <fret> : indique la 1ère fret du diagramme (nombre entre 1 et 9), utile pour les barrés |
||||
|
% <cordes> : série de 6 symboles, un pour chaque corde, de la plus grave à la plus aigue |
||||
|
% Ces symboles sont : X si la corde ne doit pas être jouée, 0 si la corde est jouée à vide, |
||||
|
% un chiffre de 1 à 9 indiquant la fret adéquate |
||||
|
\gtab{Rém}{XX0231} |
||||
|
\gtab{Fa}{1:022100} |
||||
|
\gtab{Do}{X32010} |
||||
|
|
||||
|
% proposez l'information minimale pour rejouer la chanson (ne pas répeter les accords) |
||||
|
% insérer chaque accord avant la syllable correspondante (pas d'espace) |
||||
|
% mettez un couplet entre \beginverse et \endverse |
||||
|
% mettez un refrain entre \beginchorus et \endchorus |
||||
|
% \beginverse* est un couplet non numéroté |
||||
|
% utilisez la macro \rep{n} pour une phrase répétée n fois |
||||
|
% utilisez la macro \echo{text} pour les phrases chantées en arrière plan |
||||
|
|
||||
|
\lilypond{Sad_robot} % insère la partition correspondant au fichier Sad_robot.ly du répertoire ./lilypond |
||||
|
|
||||
|
\beginverse |
||||
|
His \[Rém]steely skin is covered |
||||
|
By \[Fa]centuries of dust |
||||
|
\[Do]Once he was a great one |
||||
|
\[Rém]Now he's dull and rust |
||||
|
\endverse |
||||
|
|
||||
|
\beginverse* |
||||
|
An oily tear he's crying |
||||
|
Can you feel the pain |
||||
|
Of the sad, sad robot |
||||
|
And it's driving him insane |
||||
|
\endverse |
||||
|
|
||||
|
\beginverse* |
||||
|
He can't turn back time nor history |
||||
|
So his life became a misery |
||||
|
He has to face the destiny |
||||
|
Nobody cares anymore |
||||
|
\endverse |
||||
|
|
||||
|
\beginchorus |
||||
|
Sad, sad robot \rep{3} |
||||
|
All alone |
||||
|
\endchorus |
||||
|
|
||||
|
\endsong |
Loading…
Reference in new issue