]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/single-staff-template-with-notes-and-chords.ly
lilypond-manuals.css: edit color scheme and some spacing
[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 Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
5 %
6 % This file is in the public domain.
7 %% Note: this file works from version 2.19.28
8 \version "2.19.28"
9
10 \header {
11   lsrtags = "chords, really-simple, template"
12
13   texidoc = "
14 Want to prepare a lead sheet with a melody and chords? Look no further!
15
16
17 "
18   doctitle = "Single staff template with notes and chords"
19 } % begin verbatim
20
21 melody = \relative c' {
22   \clef treble
23   \key c \major
24   \time 4/4
25
26   f4 e8[ c] d4 g
27   a2 ~ a
28 }
29
30 harmonies = \chordmode {
31   c4:m f:min7 g:maj c:aug
32   d2:dim b4:5 e:sus
33 }
34
35 \score {
36   <<
37     \new ChordNames {
38       \set chordChanges = ##t
39       \harmonies
40     }
41     \new Staff \melody
42   >>
43   \layout{ }
44   \midi { }
45 }