Doc: convert-ly on English docs.
[lilypond/patrick.git] / Documentation / snippets / new / fretted-headword.ly
blob32fafd0700c4b66b8ec353b179e9b9ad52af6fd0
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 %*****************************************************************%
6 \version "2.13.36"
8 #(set-global-staff-size 15)
9 \paper {
10 line-width = 17\cm
11 indent = 0\cm
14 \header {
15 lsrtags = "headwords"
16 texidoc = ""
17 doctitle = "headword"
21 \layout {
22 \context {
23 \Score
24 \remove "Bar_number_engraver"
25 \override PaperColumn #'keep-inside-line = ##t
26 \override NonMusicalPaperColumn #'keep-inside-line = ##t
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)
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)
43 % define fingering offset
44 FO = #(define-music-function (parser location offsetX offsetY) (number? number?)
46 \once \override Voice.Fingering #'extra-offset = #(cons $offsetX $offsetY)
47 #})
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.")))
56 %%% THE MUSIC %%%
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
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
76 d4\rest <b e>-> d4\rest^\rit <b e>4-> | % m. 3
77 <gis b e>1 | % m. 4
79 \bar "||"
80 \key a \minor
81 R1 % m. 5
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
86 \FO #'-0.3 #'0.3
87 <a-3>4 \times 2/3 { c4 b8 } a4 e'8. e16 | % m. 7
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
93 b4 \times 2/3 { d4-4 c8 } \sfou \FO #'-1.7 #'-1.5 <b-0>4 e | % end of m. 9
95 e4 e8. d16-4 d4 \times 2/3 { c4 b8 } | % m. 10
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
102 bass = \relative c {
103 \key d \major
104 \time 4/4
105 \voiceTwo
107 e,8\fp[ e'] e,[ e'] e, \sfol <c''-1> <a'-2> c, | % m. 1
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
112 e,,8 e' gis e e, e' gis_\dimin e | % m. 3
114 e,1 | % m. 4
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
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
124 \times 2/3 { a,8 <e'-2> a c e, b' a, e' a c a e } | % m. 7
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
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
131 \times 2/3 { a,8 e' a c a e e, e' gis c gis e } | % m. 10
133 \times 2/3 { a,8 e' a b a e f, f' a d a f } | % m. 11
136 \score {
137 \new Staff = "guitar" <<
138 \context Voice = "upper" { \melody }
139 \context Voice = "lower" { \bass }
141 \layout {
142 \context {
143 \Score
144 \override Fingering #'staff-padding = #'()
145 \override TupletNumber #'stencil = ##f
146 \override TupletBracket #'bracket-visibility = ##f
149 \midi { }