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