]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/single-staff-template-with-notes,-lyrics,-chords-and-frets.ly
0a386f2933d6c5183df1b23604061db0160027ad
[lilypond.git] / Documentation / snippets / single-staff-template-with-notes,-lyrics,-chords-and-frets.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.14.2"
8
9 \header {
10   lsrtags = "chords, template, vocal-music"
11
12   texidoc = "
13 Here is a simple lead sheet template with melody, lyrics, chords and
14 fret diagrams.
15
16 "
17   doctitle = "Single staff template with notes lyrics chords and frets"
18 } % begin verbatim
19
20
21 verseI = \lyricmode {
22   \set stanza = #"1."
23   This is the first verse
24 }
25
26 verseII = \lyricmode {
27   \set stanza = #"2."
28   This is the second verse.
29 }
30
31 theChords = \chordmode {
32   % insert chords for chordnames and fretboards here
33   c2 g4 c
34 }
35
36 staffMelody = \relative c' {
37    \key c \major
38    \clef treble
39    % Type notes for melody here
40    c4 d8 e f4 g
41    \bar "|."
42 }
43
44 \score {
45   <<
46     \context ChordNames { \theChords }
47     \context FretBoards { \theChords }
48     \new Staff {
49       \context Voice = "voiceMelody" { \staffMelody }
50     }
51     \new Lyrics = "lyricsI" {
52       \lyricsto "voiceMelody" \verseI
53     }
54     \new Lyrics = "lyricsII" {
55       \lyricsto "voiceMelody" \verseII
56     }
57   >>
58   \layout { }
59   \midi { }
60 }