Revised autobeam settings patch and ran makelsr.py
[lilypond/mpolesky.git] / Documentation / snippets / incipit.ly
blob60c8336fb790e6c34619f47526000dc67a608682
1 % Do not edit this file; it is automatically
2 % generated from Documentation/snippets/new
3 % This file is in the public domain.
4 %% Note: this file works from version 2.13.4
5 \version "2.13.29"
7 \header {
8 %% Translation of GIT committish: 0b55335aeca1de539bf1125b717e0c21bb6fa31b
9 texidoces = "
10 Los «incipit» se pueden escribir utilizando el grob del nombre del
11 instruemento, pero manteniendo independientes las definiciones del
12 nombre del instrumento y del incipit."
14 doctitlees = "Incipit"
16 lsrtags = "staff-notation, ancient-notation"
17 texidoc = "
18 Incipits can be added using the instrument name grob, but keeping
19 separate the instrument name definition and the incipit definition.
21 doctitle = "Incipit"
22 } % begin verbatim
25 incipit =
26 #(define-music-function (parser location incipit-music) (ly:music?)
28 \once \override Staff.InstrumentName #'self-alignment-X = #RIGHT
29 \once \override Staff.InstrumentName #'self-alignment-Y = #UP
30 \once \override Staff.InstrumentName #'Y-offset =
31 #(lambda (grob)
32 (+ 4 (system-start-text::calc-y-offset grob)))
33 \once \override Staff.InstrumentName #'padding = #0.3
34 \once \override Staff.InstrumentName #'stencil =
35 #(lambda (grob)
36 (let* ((instrument-name (ly:grob-property grob 'long-text))
37 (layout (ly:output-def-clone (ly:grob-layout grob)))
38 (music (make-sequential-music
39 (list (context-spec-music
40 (make-sequential-music
41 (list (make-property-set
42 'instrumentName instrument-name)
43 (make-grob-property-set
44 'VerticalAxisGroup
45 'Y-extent '(-4 . 4))))
46 'MensuralStaff)
47 $incipit-music)))
48 (score (ly:make-score music))
49 (mm (ly:output-def-lookup layout 'mm))
50 (indent (ly:output-def-lookup layout 'indent))
51 (width (ly:output-def-lookup layout 'incipit-width))
52 (incipit-width (if (number? width)
53 (* width mm)
54 (* indent 0.5))))
56 (ly:output-def-set-variable! layout 'indent (- indent
57 incipit-width))
58 (ly:output-def-set-variable! layout 'line-width indent)
59 (ly:output-def-set-variable! layout 'ragged-right #f)
60 (ly:output-def-set-variable! layout 'ragged-last #f)
61 (ly:output-def-set-variable! layout 'system-count 1)
62 (ly:score-add-output-def! score layout)
63 (ly:grob-set-property! grob 'long-text
64 (markup #:score score))
65 (system-start-text::print grob)))
66 #})
68 %%%%%%%%%%%%%%%%%%%%%%%%%
70 global = {
71 \set Score.skipBars = ##t
72 \key g \major
73 \time 4/4
75 % the actual music
76 \skip 1*8
78 % let finis bar go through all staves
79 \override Staff.BarLine #'transparent = ##f
81 % finis bar
82 \bar "|."
85 discantusIncipit = <<
86 \new MensuralVoice = "discantusIncipit" <<
87 \repeat unfold 9 { s1 \noBreak }
89 \clef "neomensural-c1"
90 \key f \major
91 \time 2/2
92 c''1.
95 \new Lyrics \lyricsto discantusIncipit { IV- }
98 discantusNotes = {
99 \transpose c' c'' {
100 \clef "treble"
101 d'2. d'4 |
102 b e' d'2 |
103 c'4 e'4.( d'8 c' b |
104 a4) b a2 |
105 b4.( c'8 d'4) c'4 |
106 \once \override NoteHead #'transparent = ##t
107 c'1 |
108 b\breve |
112 discantusLyrics = \lyricmode {
113 Ju -- bi -- |
114 la -- te De -- |
115 o, om --
116 nis ter -- |
117 ra, __ om- |
118 "..." |
119 -us. |
122 altusIncipit = <<
123 \new MensuralVoice = "altusIncipit" <<
124 \repeat unfold 9 { s1 \noBreak }
126 \clef "neomensural-c3"
127 \key f \major
128 \time 2/2
129 r1 f'1.
132 \new Lyrics \lyricsto altusIncipit { IV- }
135 altusNotes = {
136 \transpose c' c'' {
137 \clef "treble"
138 % two measures
139 r2 g2. e4 fis g |
140 a2 g4 e |
141 fis g4.( fis16 e fis4) |
142 g1 |
143 \once \override NoteHead #'transparent = ##t
144 g1 |
145 g\breve |
149 altusLyrics = \lyricmode {
150 % two measures
151 Ju -- bi -- la -- te |
152 De -- o, om -- |
153 nis ter -- ra, |
154 "..." |
155 -us. |
158 tenorIncipit = <<
159 \new MensuralVoice = "tenorIncipit" <<
160 \repeat unfold 9 { s1 \noBreak }
162 \clef "neomensural-c4"
163 \key f \major
164 \time 2/2
165 r\longa
166 r\breve
167 r1 c'1.
170 \new Lyrics \lyricsto tenorIncipit { IV- }
173 tenorNotes = {
174 \transpose c' c' {
175 \clef "treble_8"
176 R1 |
177 R1 |
178 R1 |
179 % two measures
180 r2 d'2. d'4 b e' |
181 \once \override NoteHead #'transparent = ##t
182 e'1 |
183 d'\breve |
187 tenorLyrics = \lyricmode {
188 % two measures
189 Ju -- bi -- la -- te |
190 "..." |
191 -us.
194 bassusIncipit = <<
195 \new MensuralVoice = "bassusIncipit" <<
196 \repeat unfold 9 { s1 \noBreak }
198 \clef "bass"
199 \key f \major
200 \time 2/2
201 %% incipit
202 r\maxima
206 \new Lyrics \lyricsto bassusIncipit { IV- }
209 bassusNotes = {
210 \transpose c' c' {
211 \clef "bass"
212 R1 |
213 R1 |
214 R1 |
215 R1 |
216 g2. e4 |
217 \once \override NoteHead #'transparent = ##t
218 e1 |
219 g\breve |
223 bassusLyrics = \lyricmode {
224 Ju -- bi- |
225 "..." |
226 -us.
229 \score {
231 \new StaffGroup = choirStaff <<
232 \new Voice = "discantusNotes" <<
233 \global
234 \set Staff.instrumentName = #"Discantus"
235 \incipit \discantusIncipit
236 \discantusNotes
238 \new Lyrics = "discantusLyrics" \lyricsto discantusNotes { \discantusLyrics }
239 \new Voice = "altusNotes" <<
240 \global
241 \set Staff.instrumentName = #"Altus"
242 \incipit \altusIncipit
243 \altusNotes
245 \new Lyrics = "altusLyrics" \lyricsto altusNotes { \altusLyrics }
246 \new Voice = "tenorNotes" <<
247 \global
248 \set Staff.instrumentName = #"Tenor"
249 \incipit \tenorIncipit
250 \tenorNotes
252 \new Lyrics = "tenorLyrics" \lyricsto tenorNotes { \tenorLyrics }
253 \new Voice = "bassusNotes" <<
254 \global
255 \set Staff.instrumentName = #"Bassus"
256 \incipit \bassusIncipit
257 \bassusNotes
259 \new Lyrics = "bassusLyrics" \lyricsto bassusNotes { \bassusLyrics }
262 \layout {
263 \context {
264 \Score
265 %% no bar lines in staves or lyrics
266 \override BarLine #'transparent = ##t
268 %% the next two instructions keep the lyrics between the bar lines
269 \context {
270 \Lyrics
271 \consists "Bar_engraver"
272 \consists "Separating_line_group_engraver"
274 \context {
275 \Voice
276 %% no slurs
277 \override Slur #'transparent = ##t
278 %% Comment in the below "\remove" command to allow line
279 %% breaking also at those bar lines where a note overlaps
280 %% into the next measure. The command is commented out in this
281 %% short example score, but especially for large scores, you
282 %% will typically yield better line breaking and thus improve
283 %% overall spacing if you comment in the following command.
284 %%\remove "Forbid_line_break_engraver"
286 indent = 6\cm
287 incipit-width = 4\cm