]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/fretted-headword.ly
Docs: run convert-ly for 2.14.0.
[lilypond.git] / Documentation / snippets / fretted-headword.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.13.36
8 % INSPIRATIONAL HEADER FOR LILYPOND DOCUMENTATION fretted-strings %
9 % Passage from Johann Kaspar Mertz "Opern Revue, Op. 8, no. 17"   %
10 % on melodies from Bellini's "Norma"                              %
11 %*****************************************************************%
12
13 \version "2.14.0"
14
15 #(set-global-staff-size 15)
16 \paper {
17   line-width = 17\cm
18   indent = 0\cm
19 }
20
21 \header {
22   lsrtags = "headwords"
23   texidoc = ""
24   doctitle = "headword"
25 } % begin verbatim
26
27
28
29 \layout {
30   \context {
31     \Score
32     \remove "Bar_number_engraver"
33   }
34 }
35
36 %%%% shortcuts
37 % fingering orientations
38 sfol = \set fingeringOrientations = #'(left)
39 sfor = \set fingeringOrientations = #'(right)
40 sfod = \set fingeringOrientations = #'(down)
41 sfou = \set fingeringOrientations = #'(up)
42
43 % string number orientations
44 ssnol = \set stringNumberOrientations = #'(left)  %(down right up)
45 ssnou = \set stringNumberOrientations = #'(up)
46 ssnod = \set stringNumberOrientations = #'(down)
47 ssnor = \set stringNumberOrientations = #'(right)
48
49 % define fingering offset
50 FO = #(define-music-function (parser location offsetX offsetY) (number? number?)
51 #{
52   \once \override Voice.Fingering #'extra-offset = #(cons $offsetX $offsetY)
53 #})
54
55 % markups
56 rit = \markup \center-align { \bold { \italic { " rit." } } }
57 dimin = \markup \center-align { \italic { " dim." } }
58 andantino = \markup \left-align { \italic { \bold { \fontsize #2.5 { "Andantino" } } } }
59 benmarcato = \markup { \italic { \bold { "il canto ben marcato" } } }
60 pdolce = #(make-dynamic-script (markup #:line (#:dynamic "p" #:normal-text #:italic "dol.")))
61
62 %%% THE MUSIC %%%
63
64 melody = \relative c {
65   \clef "treble_8"
66   \key d \major
67   \time 4/4
68   \voiceOne
69   \sfol
70   e,32 a' c e
71   e, a c e
72   e,, a' c e
73   e, a c e
74   f4\rest <e'-4>4-> | % m. 1
75
76   e,,,32 gis' b e
77   e, gis b e
78   e,, gis' b e
79   e, gis b e
80   f4\rest \FO #'0.4 #'0.5 <gis-1 e'-4>4 | % m. 2
81
82   d4\rest <b e>-> d4\rest^\rit <b e>4-> | % m. 3
83   <gis b e>1 | % m. 4
84
85   \bar "||"
86   \key a \minor
87   R1 % m. 5
88
89   e'4^\benmarcato e8. d16-4
90   d4-4 \times 2/3 { \sfou \FO #'-0.3 #'0.6 <c-2>4 b8 } | % end of m. 6
91
92   \FO #'-0.3 #'0.3
93   <a-3>4 \times 2/3 { c4 b8 } a4 e'8. e16 | % m. 7
94
95   \FO #'-0.3 #'0.3
96   <g-4>4 \times 2/3 { \sfol \FO #'0.3 #'0.0 <f-1>4 e8 } e4  % beg of m. 8
97   \times 2/3 { \sfou <d-4>4 c8 } | % end of m. 8
98
99   b4 \times 2/3 { d4-4 c8 } \sfou \FO #'-1.7 #'-1.5 <b-0>4 e | % end of m. 9
100
101   e4 e8. d16-4 d4 \times 2/3 { c4 b8 } | % m. 10
102
103   \times 2/3 { a4 a8 b4 c8 } % beg of m. 11
104   \sfou \FO #'-0.3 #'0.3
105   <d-4>4^\< \times 2/3 { e4 <d f>8\! } | % end of m. 11
106 }
107
108 bass = \relative c {
109   \key d \major
110   \time 4/4
111   \voiceTwo
112
113   e,8\fp[ e'] e,[ e'] e, \sfol <c''-1> <a'-2> c, | % m. 1
114
115   e,,8\fp[ e'] e,[ e'] e, \sfod \FO #'0.2 #'-0.2 <b''-1>  % beg m. 2
116   \sfol \FO #'0.3 #'0.0 <e-1> b | % end m. 2
117
118   e,,8 e' gis e e, e' gis_\dimin e | % m. 3
119
120   e,1 | % m. 4
121
122   %% new section starts here in A minor
123   \set Score.beamExceptions = #'()
124   \once \override TextScript #'staff-padding = #1.7
125   \times 2/3 { a8\p^\andantino e' a c a e a, e' a c a e } | % m. 5
126
127   \times 2/3 { a,8\pdolce e' a c a e } % beg m. 6
128   \times 2/3 { e,8 \sfou <e'-3> <gis-1> c gis e } | % end m. 6
129
130   \times 2/3 { a,8 <e'-2> a c e, b' a, e' a c a e } | % m. 7
131
132   \times 2/3 { f,8 f' a \sfol \FO #'0.3 #'-0.5 <d-4> a f fis, d' a' d a d, } | % m. 8
133
134   \times 2/3 { <g,-3>8 d' g d' g, d % beg m. 9
135     \sfod \FO #'0.0 #'-2.0 <gis,-4> \sfou <e'-2> <gis-1> b gis e } | % end m. 9
136
137   \times 2/3 { a,8 e' a c a e e, e' gis c gis e } | % m. 10
138
139   \times 2/3 { a,8 e' a b a e f, f' a d a f } | % m. 11
140 }
141
142 \score {
143   \new Staff = "guitar" <<
144     \context Voice = "upper" { \melody }
145     \context Voice = "lower" { \bass }
146   >>
147   \layout {
148     \context {
149       \Score
150       \override Fingering #'staff-padding = #'()
151       \override TupletNumber #'stencil = ##f
152       \override TupletBracket #'bracket-visibility = ##f
153     }
154   }
155   \midi { }
156 }