]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/piano-template-with-melody-and-lyrics.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / Documentation / snippets / piano-template-with-melody-and-lyrics.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.18.0"
8
9 \header {
10   lsrtags = "keyboards, really-simple, template, vocal-music"
11
12   texidoc = "
13 Here is a typical song format: one staff with the melody and lyrics,
14 with piano accompaniment underneath.
15
16 "
17   doctitle = "Piano template with melody and lyrics"
18 } % begin verbatim
19
20 melody = \relative c'' {
21   \clef treble
22   \key c \major
23   \time 4/4
24
25   a b c d
26 }
27
28 text = \lyricmode {
29   Aaa Bee Cee Dee
30 }
31
32 upper = \relative c'' {
33   \clef treble
34   \key c \major
35   \time 4/4
36
37   a4 b c d
38 }
39
40 lower = \relative c {
41   \clef bass
42   \key c \major
43   \time 4/4
44
45   a2 c
46 }
47
48 \score {
49   <<
50     \new Voice = "mel" { \autoBeamOff \melody }
51     \new Lyrics \lyricsto mel \text
52     \new PianoStaff <<
53       \new Staff = "upper" \upper
54       \new Staff = "lower" \lower
55     >>
56   >>
57   \layout {
58     \context { \Staff \RemoveEmptyStaves }
59   }
60   \midi { }
61 }