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
8 %% Translation of GIT committish: 0b55335aeca1de539bf1125b717e0c21bb6fa31b
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"
18 Incipits can be added using the instrument name grob, but keeping
19 separate the instrument name definition and the incipit definition.
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
=
32 (+
4 (system-start-text
::calc-y-offset grob
)))
33 \once \override Staff
.InstrumentName
#'padding
= #0.3
34 \once \override Staff
.InstrumentName
#'stencil
=
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
45 'Y-extent
'(-
4 . 4))))
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
)
56 (ly
:output-def-set-variable
! layout
'indent
(- indent
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
)))
68 %%%%%%%%%%%%%%%%%%%%%%%%%
71 \set Score
.skipBars
= ##t
78 % let finis bar go through all staves
79 \override Staff
.BarLine
#'transparent
= ##f
86 \new MensuralVoice
= "discantusIncipit" <<
87 \repeat unfold
9 { s1 \noBreak }
89 \clef "neomensural-c1"
95 \new Lyrics
\lyricsto discantusIncipit
{ IV-
}
106 \once \override NoteHead
#'transparent
= ##t
112 discantusLyrics
= \lyricmode {
123 \new MensuralVoice
= "altusIncipit" <<
124 \repeat unfold
9 { s1 \noBreak }
126 \clef "neomensural-c3"
132 \new Lyrics
\lyricsto altusIncipit
{ IV-
}
141 fis g4.( fis16 e fis4) |
143 \once \override NoteHead
#'transparent
= ##t
149 altusLyrics
= \lyricmode {
151 Ju -- bi -- la -- te |
159 \new MensuralVoice
= "tenorIncipit" <<
160 \repeat unfold
9 { s1 \noBreak }
162 \clef "neomensural-c4"
170 \new Lyrics
\lyricsto tenorIncipit
{ IV-
}
181 \once \override NoteHead
#'transparent
= ##t
187 tenorLyrics
= \lyricmode {
189 Ju -- bi -- la -- te |
195 \new MensuralVoice
= "bassusIncipit" <<
196 \repeat unfold
9 { s1 \noBreak }
206 \new Lyrics
\lyricsto bassusIncipit
{ IV-
}
217 \once \override NoteHead
#'transparent
= ##t
223 bassusLyrics
= \lyricmode {
231 \new StaffGroup
= choirStaff
<<
232 \new Voice
= "discantusNotes" <<
234 \set Staff
.instrumentName
= #"Discantus"
235 \incipit \discantusIncipit
238 \new Lyrics
= "discantusLyrics" \lyricsto discantusNotes
{ \discantusLyrics }
239 \new Voice
= "altusNotes" <<
241 \set Staff
.instrumentName
= #"Altus"
242 \incipit \altusIncipit
245 \new Lyrics
= "altusLyrics" \lyricsto altusNotes
{ \altusLyrics }
246 \new Voice
= "tenorNotes" <<
248 \set Staff
.instrumentName
= #"Tenor"
249 \incipit \tenorIncipit
252 \new Lyrics
= "tenorLyrics" \lyricsto tenorNotes
{ \tenorLyrics }
253 \new Voice
= "bassusNotes" <<
255 \set Staff
.instrumentName
= #"Bassus"
256 \incipit \bassusIncipit
259 \new Lyrics
= "bassusLyrics" \lyricsto bassusNotes
{ \bassusLyrics }
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
271 \consists "Bar_engraver"
272 \consists "Separating_line_group_engraver"
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"