]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/single-staff-template-with-notes,-lyrics,-chords-and-frets.ly
Docs: reorganize documentation directory structure
[lilypond.git] / Documentation / snippets / single-staff-template-with-notes,-lyrics,-chords-and-frets.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.13.1"
4
5 \header {
6   lsrtags = "vocal-music, chords, template"
7
8 %% Translation of GIT committish: 7e2910d2bc6167b10cfe328eb17a5f710f2a515a
9   texidoces = "
10 Presentamos a continuación un ejemplo de plantilla para una hoja
11 guía de acordes con melodía, letra, acordes y diagramas de
12 trastes.
13 "
14
15   doctitlees = "Plantilla para un pentagrama único con música, letra, acordes y trastes"
16
17   texidoc = "
18 Here is a simple lead sheet template with melody, lyrics, chords and
19 fret diagrams.
20
21 "
22   doctitle = "Single staff template with notes, lyrics, chords and frets"
23 } % begin verbatim
24
25 % Define the fret diagrams to be used
26 cFretDiagram = \markup {
27   \fret-diagram #"6-x;5-3-3;4-2-2;3-o;2-1-1;1-o;"
28 }
29
30 gFretDiagram = \markup {
31   \fret-diagram #"6-3-2;5-2-1;4-o;3-o;2-o;1-3-3;"
32 }
33
34 verseI = \lyricmode {
35   \set stanza = #"1."
36   This is the first verse
37 }
38
39 verseII = \lyricmode {
40   \set stanza = #"2."
41   This is the second verse.
42 }
43
44 theChords = \new ChordNames {
45   \chordmode {
46     % insert the chords for chordnames here
47     c2 g4 c
48   }
49 }
50
51 staffMelody = \new Staff  {
52  \context Voice = "voiceMelody" {
53    \key c \major
54    \clef treble
55    \relative c' {
56      % Type notes and fret diagram markups here
57      c4^\cFretDiagram d8 e f4^\gFretDiagram g^\cFretDiagram
58      \bar "|."
59    }
60  }
61 }
62
63 \score {
64   <<
65     \theChords
66     \staffMelody
67     \new Lyrics = "lyricsI" \lyricmode {
68       \lyricsto "voiceMelody" \verseI
69     }
70     \new Lyrics = "lyricsII" \lyricmode {
71       \lyricsto "voiceMelody" \verseII
72     }
73   >>
74   \layout { }
75   \midi { }
76 }
77