1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
6 % This file is in the public domain.
7 %% Note: this file works from version 2.15.18
11 %% Translation of GIT committish: 6977ddc9a3b63ea810eaecb864269c7d847ccf98
13 Los «incipit» se pueden escribir utilizando el grob del nombre del
14 instruemento, pero manteniendo independientes las definiciones del
15 nombre del instrumento y del incipit."
17 doctitlees = "Incipit"
19 lsrtags = "staff-notation, ancient-notation"
21 Incipits can be added using the instrument name grob, but keeping
22 separate the instrument name definition and the incipit definition.
29 #(define-music-function (parser location incipit-music) (ly:music?)
31 \once \override Staff.InstrumentName #'self-alignment-X = #RIGHT
32 \once \override Staff.InstrumentName #'self-alignment-Y = #UP
33 \once \override Staff.InstrumentName #'Y-offset =
35 (+ 4 (system-start-text::calc-y-offset grob)))
36 \once \override Staff.InstrumentName #'padding = #0.3
37 \once \override Staff.InstrumentName #'stencil =
39 (let* ((instrument-name (ly:grob-property grob 'long-text))
40 (layout (ly:output-def-clone (ly:grob-layout grob)))
41 (music (make-sequential-music
42 (list (context-spec-music
43 (make-sequential-music
44 (list (make-property-set
45 'instrumentName instrument-name)
46 (make-grob-property-set
48 'Y-extent '(-4 . 4))))
51 (score (ly:make-score music))
52 (mm (ly:output-def-lookup layout 'mm))
53 (indent (ly:output-def-lookup layout 'indent))
54 (width (ly:output-def-lookup layout 'incipit-width))
55 (incipit-width (if (number? width)
59 (ly:output-def-set-variable! layout 'indent (- indent
61 (ly:output-def-set-variable! layout 'line-width indent)
62 (ly:output-def-set-variable! layout 'ragged-right #f)
63 (ly:output-def-set-variable! layout 'ragged-last #f)
64 (ly:output-def-set-variable! layout 'system-count 1)
65 (ly:score-add-output-def! score layout)
66 (ly:grob-set-property! grob 'long-text
67 (markup #:score score))
68 (system-start-text::print grob)))
71 %%%%%%%%%%%%%%%%%%%%%%%%%
74 \set Score.skipBars = ##t
81 % let finis bar go through all staves
82 \override Staff.BarLine #'transparent = ##f
89 \new MensuralVoice = "discantusIncipit" <<
90 \repeat unfold 9 { s1 \noBreak }
92 \clef "neomensural-c1"
98 \new Lyrics \lyricsto discantusIncipit { IV- }
109 \once \override NoteHead #'transparent = ##t
115 discantusLyrics = \lyricmode {
126 \new MensuralVoice = "altusIncipit" <<
127 \repeat unfold 9 { s1 \noBreak }
129 \clef "neomensural-c3"
135 \new Lyrics \lyricsto altusIncipit { IV- }
144 fis g4.( fis16 e fis4) |
146 \once \override NoteHead #'transparent = ##t
152 altusLyrics = \lyricmode {
154 Ju -- bi -- la -- te |
162 \new MensuralVoice = "tenorIncipit" <<
163 \repeat unfold 9 { s1 \noBreak }
165 \clef "neomensural-c4"
173 \new Lyrics \lyricsto tenorIncipit { IV- }
184 \once \override NoteHead #'transparent = ##t
190 tenorLyrics = \lyricmode {
192 Ju -- bi -- la -- te |
198 \new MensuralVoice = "bassusIncipit" <<
199 \repeat unfold 9 { s1 \noBreak }
209 \new Lyrics \lyricsto bassusIncipit { IV- }
220 \once \override NoteHead #'transparent = ##t
226 bassusLyrics = \lyricmode {
234 \new StaffGroup = choirStaff <<
235 \new Voice = "discantusNotes" <<
237 \set Staff.instrumentName = #"Discantus"
238 \incipit \discantusIncipit
241 \new Lyrics = "discantusLyrics" \lyricsto discantusNotes { \discantusLyrics }
242 \new Voice = "altusNotes" <<
244 \set Staff.instrumentName = #"Altus"
245 \incipit \altusIncipit
248 \new Lyrics = "altusLyrics" \lyricsto altusNotes { \altusLyrics }
249 \new Voice = "tenorNotes" <<
251 \set Staff.instrumentName = #"Tenor"
252 \incipit \tenorIncipit
255 \new Lyrics = "tenorLyrics" \lyricsto tenorNotes { \tenorLyrics }
256 \new Voice = "bassusNotes" <<
258 \set Staff.instrumentName = #"Bassus"
259 \incipit \bassusIncipit
262 \new Lyrics = "bassusLyrics" \lyricsto bassusNotes { \bassusLyrics }
268 %% no bar lines in staves or lyrics
269 \override BarLine #'transparent = ##t
271 %% the next two instructions keep the lyrics between the bar lines
274 \consists "Bar_engraver"
275 \consists "Separating_line_group_engraver"
280 \override Slur #'transparent = ##t
281 %% Comment in the below "\remove" command to allow line
282 %% breaking also at those bar lines where a note overlaps
283 %% into the next measure. The command is commented out in this
284 %% short example score, but especially for large scores, you
285 %% will typically yield better line breaking and thus improve
286 %% overall spacing if you comment in the following command.
287 %%\remove "Forbid_line_break_engraver"