]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4614/6: Amend snippet single-staff-template-with-notes-and-chords.ly
authorDavid Kastrup <dak@gnu.org>
Sun, 20 Sep 2015 16:10:51 +0000 (18:10 +0200)
committerDavid Kastrup <dak@gnu.org>
Sat, 26 Sep 2015 10:29:11 +0000 (12:29 +0200)
Documentation/snippets/new/single-staff-template-with-notes-and-chords.ly [new file with mode: 0644]

diff --git a/Documentation/snippets/new/single-staff-template-with-notes-and-chords.ly b/Documentation/snippets/new/single-staff-template-with-notes-and-chords.ly
new file mode 100644 (file)
index 0000000..598f0b9
--- /dev/null
@@ -0,0 +1,37 @@
+\version "2.19.28"
+
+\header {
+  lsrtags = "chords, really-simple, template"
+
+  texidoc = "
+Want to prepare a lead sheet with a melody and chords? Look no further!
+
+
+"
+  doctitle = "Single staff template with notes and chords"
+}
+melody = \relative c' {
+  \clef treble
+  \key c \major
+  \time 4/4
+
+  f4 e8[ c] d4 g
+  a2 ~ a
+}
+
+harmonies = \chordmode {
+  c4:m f:min7 g:maj c:aug
+  d2:dim b4:5 e:sus
+}
+
+\score {
+  <<
+    \new ChordNames {
+      \set chordChanges = ##t
+      \harmonies
+    }
+    \new Staff \melody
+  >>
+  \layout{ }
+  \midi { }
+}