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
41 'instrumentName instrument-name)
44 (score (ly:make-score music))
45 (mm (ly:output-def-lookup layout 'mm))
46 (indent (ly:output-def-lookup layout 'indent))
47 (width (ly:output-def-lookup layout 'incipit-width))
48 (incipit-width (if (number? width)
52 (ly:output-def-set-variable! layout 'indent (- indent
54 (ly:output-def-set-variable! layout 'line-width indent)
55 (ly:output-def-set-variable! layout 'ragged-right #f)
56 (ly:output-def-set-variable! layout 'ragged-last #f)
57 (ly:output-def-set-variable! layout 'system-count 1)
58 (ly:score-add-output-def! score layout)
59 (ly:grob-set-property! grob 'long-text
60 (markup #:score score))
61 (system-start-text::print grob)))
64 %%%%%%%%%%%%%%%%%%%%%%%%%
67 \set Score.skipBars = ##t
74 % let finis bar go through all staves
75 \override Staff.BarLine #'transparent = ##f
82 \new MensuralVoice = "discantusIncipit" <<
83 \repeat unfold 9 { s1 \noBreak }
85 \clef "neomensural-c1"
91 \new Lyrics \lyricsto discantusIncipit { IV- }
102 \once \override NoteHead #'transparent = ##t
108 discantusLyrics = \lyricmode {
119 \new MensuralVoice = "altusIncipit" <<
120 \repeat unfold 9 { s1 \noBreak }
122 \clef "neomensural-c3"
128 \new Lyrics \lyricsto altusIncipit { IV- }
137 fis g4.( fis16 e fis4) |
139 \once \override NoteHead #'transparent = ##t
145 altusLyrics = \lyricmode {
147 Ju -- bi -- la -- te |
155 \new MensuralVoice = "tenorIncipit" <<
156 \repeat unfold 9 { s1 \noBreak }
158 \clef "neomensural-c4"
166 \new Lyrics \lyricsto tenorIncipit { IV- }
171 \once \override Staff.VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 3)
178 \once \override NoteHead #'transparent = ##t
184 tenorLyrics = \lyricmode {
186 Ju -- bi -- la -- te |
192 \new MensuralVoice = "bassusIncipit" <<
193 \repeat unfold 9 { s1 \noBreak }
203 \new Lyrics \lyricsto bassusIncipit { IV- }
214 \once \override NoteHead #'transparent = ##t
220 bassusLyrics = \lyricmode {
228 \new StaffGroup = choirStaff <<
229 \new Voice = "discantusNotes" <<
231 \set Staff.instrumentName = #"Discantus"
232 \incipit \discantusIncipit
235 \new Lyrics = "discantusLyrics" \lyricsto discantusNotes { \discantusLyrics }
236 \new Voice = "altusNotes" <<
238 \set Staff.instrumentName = #"Altus"
239 \incipit \altusIncipit
242 \new Lyrics = "altusLyrics" \lyricsto altusNotes { \altusLyrics }
243 \new Voice = "tenorNotes" <<
245 \set Staff.instrumentName = #"Tenor"
246 \incipit \tenorIncipit
249 \new Lyrics = "tenorLyrics" \lyricsto tenorNotes { \tenorLyrics }
250 \new Voice = "bassusNotes" <<
252 \set Staff.instrumentName = #"Bassus"
253 \incipit \bassusIncipit
256 \new Lyrics = "bassusLyrics" \lyricsto bassusNotes { \bassusLyrics }
262 %% no bar lines in staves or lyrics
263 \override BarLine #'transparent = ##t
265 %% the next two instructions keep the lyrics between the bar lines
268 \consists "Bar_engraver"
269 \consists "Separating_line_group_engraver"
274 \override Slur #'transparent = ##t
275 %% Comment in the below "\remove" command to allow line
276 %% breaking also at those bar lines where a note overlaps
277 %% into the next measure. The command is commented out in this
278 %% short example score, but especially for large scores, you
279 %% will typically yield better line breaking and thus improve
280 %% overall spacing if you comment in the following command.
281 %%\remove "Forbid_line_break_engraver"