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