]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/single-staff-template-with-notes,-lyrics,-chords-and-frets.ly
Run scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / Documentation / snippets / single-staff-template-with-notes,-lyrics,-chords-and-frets.ly
index e67156b7c56d103bf1cb5a60ba3f10015d208d29..4cd409c667a791859fe2571f4cb7ad8d16d8fa53 100644 (file)
@@ -1,35 +1,22 @@
-%% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.dsi.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
 %% This file is in the public domain.
-\version "2.13.1"
+\version "2.16.0"
 
 \header {
-  lsrtags = "vocal-music, chords, template"
-
-%% Translation of GIT committish: 7e2910d2bc6167b10cfe328eb17a5f710f2a515a
-  texidoces = "
-Presentamos a continuación un ejemplo de plantilla para una hoja
-guía de acordes con melodía, letra, acordes y diagramas de
-trastes.
-"
-
-  doctitlees = "Plantilla para un pentagrama único con música, letra, acordes y trastes"
+  lsrtags = "chords, template, vocal-music"
 
   texidoc = "
 Here is a simple lead sheet template with melody, lyrics, chords and
 fret diagrams.
 
 "
-  doctitle = "Single staff template with notes, lyrics, chords and frets"
+  doctitle = "Single staff template with notes lyrics chords and frets"
 } % begin verbatim
 
-% Define the fret diagrams to be used
-cFretDiagram = \markup {
-  \fret-diagram #"6-x;5-3-3;4-2-2;3-o;2-1-1;1-o;"
-}
-
-gFretDiagram = \markup {
-  \fret-diagram #"6-3-2;5-2-1;4-o;3-o;2-o;1-3-3;"
-}
 
 verseI = \lyricmode {
   \set stanza = #"1."
@@ -41,37 +28,33 @@ verseII = \lyricmode {
   This is the second verse.
 }
 
-theChords = \new ChordNames {
-  \chordmode {
-    % insert the chords for chordnames here
-    c2 g4 c
-  }
+theChords = \chordmode {
+  % insert chords for chordnames and fretboards here
+  c2 g4 c
 }
 
-staffMelody = \new Staff  {
- \context Voice = "voiceMelody" {
+staffMelody = \relative c' {
    \key c \major
    \clef treble
-   \relative c' {
-     % Type notes and fret diagram markups here
-     c4^\cFretDiagram d8 e f4^\gFretDiagram g^\cFretDiagram
-     \bar "|."
-   }
- }
+   % Type notes for melody here
+   c4 d8 e f4 g
+   \bar "|."
 }
 
 \score {
   <<
-    \theChords
-    \staffMelody
-    \new Lyrics = "lyricsI" \lyricmode {
+    \context ChordNames { \theChords }
+    \context FretBoards { \theChords }
+    \new Staff {
+      \context Voice = "voiceMelody" { \staffMelody }
+    }
+    \new Lyrics = "lyricsI" {
       \lyricsto "voiceMelody" \verseI
     }
-    \new Lyrics = "lyricsII" \lyricmode {
+    \new Lyrics = "lyricsII" {
       \lyricsto "voiceMelody" \verseII
     }
   >>
   \layout { }
   \midi { }
 }
-