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: b2d4318d6c53df8469dfa4da09b27c15a374d0ca
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-
}
175 \once \override Staff
.VerticalAxisGroup
#'minimum-Y-extent
= #'(-
6 . 3)
182 \once \override NoteHead
#'transparent
= ##t
188 tenorLyrics
= \lyricmode {
190 Ju -- bi -- la -- te |
196 \new MensuralVoice
= "bassusIncipit" <<
197 \repeat unfold
9 { s1 \noBreak }
207 \new Lyrics
\lyricsto bassusIncipit
{ IV-
}
218 \once \override NoteHead
#'transparent
= ##t
224 bassusLyrics
= \lyricmode {
232 \new StaffGroup
= choirStaff
<<
233 \new Voice
= "discantusNotes" <<
235 \set Staff
.instrumentName
= #"Discantus"
236 \incipit \discantusIncipit
239 \new Lyrics
= "discantusLyrics" \lyricsto discantusNotes
{ \discantusLyrics }
240 \new Voice
= "altusNotes" <<
242 \set Staff
.instrumentName
= #"Altus"
243 \incipit \altusIncipit
246 \new Lyrics
= "altusLyrics" \lyricsto altusNotes
{ \altusLyrics }
247 \new Voice
= "tenorNotes" <<
249 \set Staff
.instrumentName
= #"Tenor"
250 \incipit \tenorIncipit
253 \new Lyrics
= "tenorLyrics" \lyricsto tenorNotes
{ \tenorLyrics }
254 \new Voice
= "bassusNotes" <<
256 \set Staff
.instrumentName
= #"Bassus"
257 \incipit \bassusIncipit
260 \new Lyrics
= "bassusLyrics" \lyricsto bassusNotes
{ \bassusLyrics }
266 %% no bar lines in staves or lyrics
267 \override BarLine
#'transparent
= ##t
269 %% the next two instructions keep the lyrics between the bar lines
272 \consists "Bar_engraver"
273 \consists "Separating_line_group_engraver"
278 \override Slur
#'transparent
= ##t
279 %% Comment in the below "\remove" command to allow line
280 %% breaking also at those bar lines where a note overlaps
281 %% into the next measure. The command is commented out in this
282 %% short example score, but especially for large scores, you
283 %% will typically yield better line breaking and thus improve
284 %% overall spacing if you comment in the following command.
285 %%\remove "Forbid_line_break_engraver"