]> git.donarmstrong.com Git - lilypond.git/blob - input/manual/fretted-headword.ly
85877d9785dcd082aaffa0f8d307ad0b6e7a635a
[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.57"
7
8 #(set-global-staff-size 15)
9 \paper{
10  ragged-end=##t
11  line-width=17\cm
12  indent=0\cm
13 }
14
15 \layout {
16  \context { \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
48 %%% THE MUSIC %%%
49
50 melody =  \relative c {
51   \clef "treble_8"
52   \key d \major
53   \time 4/4
54 %  \override Staff.TimeSignature #'transparent = ##t
55   \voiceOne
56   \override Fingering #'staff-padding = #'()
57   \sfol
58     e,32 a' c e 
59     e, a c e 
60     e,, a' c e 
61     e, a c e 
62     f4\rest <e'-4>4-> | % m. 1
63
64     e,,,32 gis' b e 
65     e, gis b e 
66     e,, gis' b e 
67     e, gis b e 
68     f4\rest \FO #'0.4 #'0.5 <gis-1 e'-4>4 | % m. 2
69
70     d4\rest <b e>-> d4\rest^\rit <b e>4->  | % m. 3
71     <gis b e>1  | % m. 4
72
73   \bar "||"
74   \key a \minor
75   \override TupletNumber #'stencil = ##f
76   \override TupletBracket #'bracket-visibility = ##f
77     R1  % m. 5
78
79     e'4^\benmarcato e8. d16-4 
80     d4-4 \times 2/3{\sfou \FO #'-0.3 #'0.6 <c-2>4 b8} | % end of m. 6
81
82   \FO #'-0.3 #'0.3 
83     <a-3>4 \times 2/3{c4 b8} a4 e'8. e16  | % m. 7
84
85   \FO #'-0.3 #'0.3 
86     <g-4>4 \times 2/3{\sfol \FO #'0.3 #'0.0 <f-1>4 e8} e4   % beg of m. 8
87       \times 2/3{\sfou <d-4>4 c8}                         | % end of m. 8
88
89     b4 \times 2/3{d4-4 c8} \sfou \FO #'-1.7 #'-1.5 <b-0>4 e | % end of m. 9
90
91     e4 e8. d16-4 d4 \times 2/3{c4 b8}                     | % m. 10
92
93     \times 2/3{a4 a8 b4 c8}                                 % beg of m. 11
94   \sfou \FO #'-0.3 #'0.3                                    
95     <d-4>4^\< \times 2/3{e4 <d f>8\!}                     | % end of m. 11
96 }
97
98 bass =  \relative c {
99   \key d \major
100   \time 4/4
101   \voiceTwo
102   \override Fingering #'staff-padding = #'()
103     
104     e,8\fp[ e'] e,[ e'] e,[ \sfol <c''-1> <a'-2> c,]  | % m. 1
105
106     e,,8\fp[ e'] e,[ e'] e,[ \sfod \FO #'0.2 #'-0.2 <b''-1>  % beg m. 2
107         \sfol \FO #'0.3 #'0.0 <e-2> b]  | % end m. 2
108
109     e,,8 e' gis e e, e' gis_\dim e      | % m. 3
110
111     e,1                                 | % m. 4
112
113 %% new section starts here in A minor
114   \override TupletNumber #'stencil = ##f
115   \override TupletBracket #'bracket-visibility = ##f
116   \set tupletSpannerDuration = #(ly:make-moment 1 4)
117   \once \override TextScript #'staff-padding = #1.7
118     \times 2/3{a8\p[^\andantino e' a c a e ] a,[ e' a c a e ]} | % m. 5   
119
120   \once \override DynamicText #'extra-offset = #'( -2.1 . 0.0 ) % beg m. 6
121   \once \override TextScript #'staff-padding = #'()
122   \once \override TextScript #'extra-offset = #'( 0.0 . 2.0 )
123     \times 2/3{a,8[\p_\markup {\italic { "dol." } } e' a c a e]}  
124     \times 2/3{e,8[ \sfou <e'-3> <gis-1> c gis e]}      | % end m. 6
125
126     \times 2/3{a,8[ <e'-2> a c e, b'] a,[ e' a c a e]}  | % m. 7
127
128     \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
129
130     \times 2/3{<g,-3>8[ d' g d' g, d]                                     % beg m. 9
131         \sfod \FO #'0.0 #'-2.0 <gis,-4>[ \sfou <e'-2> <gis-1> b gis e]} | % end m. 9
132
133     \times 2/3{a,8[ e' a c a e] e,[ e' gis c gis e]}                    | % m. 10
134
135     \times 2/3{a,8[ e' a b a e] f,[ f' a d a f]}                        | % m. 11
136 }
137
138
139 \score {
140     \context Staff = "guitar" << 
141         \context Voice = "upper" { \melody }
142         \context Voice = "lower"   { \bass }
143     >>
144     \layout { }
145     
146   \midi {
147     \context {
148       \Score
149     }
150   }
151 }
152
153
154