]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/piano-template-with-melody-and-lyrics.ly
Fix 2241: Proper copyright/header/tagline handling with multiple bookparts
[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.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 = "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
21 melody = \relative c'' {
22   \clef treble
23   \key c \major
24   \time 4/4
25
26   a b c d
27 }
28
29 text = \lyricmode {
30   Aaa Bee Cee Dee
31 }
32
33 upper = \relative c'' {
34   \clef treble
35   \key c \major
36   \time 4/4
37
38   a4 b c d
39 }
40
41 lower = \relative c {
42   \clef bass
43   \key c \major
44   \time 4/4
45
46   a2 c
47 }
48
49 \score {
50   <<
51     \new Voice = "mel" { \autoBeamOff \melody }
52     \new Lyrics \lyricsto mel \text
53     \new PianoStaff <<
54       \new Staff = "upper" \upper
55       \new Staff = "lower" \lower
56     >>
57   >>
58   \layout {
59     \context { \Staff \RemoveEmptyStaves }
60   }
61   \midi { }
62 }