]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/single-staff-template-with-notes-and-chords.ly
dceb9402919023ec51f94c44fcccbdc75ea3f86b
[lilypond.git] / Documentation / snippets / single-staff-template-with-notes-and-chords.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.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.19.28"
8
9 \header {
10   lsrtags = "chords, really-simple, template"
11
12   texidoc = "
13 Want to prepare a lead sheet with a melody and chords? Look no further!
14
15
16 "
17   doctitle = "Single staff template with notes and chords"
18 } % begin verbatim
19
20 melody = \relative c' {
21   \clef treble
22   \key c \major
23   \time 4/4
24
25   f4 e8[ c] d4 g
26   a2 ~ a
27 }
28
29 harmonies = \chordmode {
30   c4:m f:min7 g:maj c:aug
31   d2:dim b:5
32 }
33
34 \score {
35   <<
36     \new ChordNames {
37       \set chordChanges = ##t
38       \harmonies
39     }
40     \new Staff \melody
41   >>
42   \layout{ }
43   \midi { }
44 }