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