4 lsrtags = "staff-notation, ancient-notation"
6 Incipits can be added using the instrument name grob, but keeping
7 separate the instrument name definition and the incipit definition.
13 #(define-music-function (parser location incipit-music) (ly:music?)
15 \once \override Staff.InstrumentName #'self-alignment-X = #RIGHT
16 \once \override Staff.InstrumentName #'self-alignment-Y = #UP
17 \once \override Staff.InstrumentName #'Y-offset =
19 (+ 4 (system-start-text::calc-y-offset grob)))
20 \once \override Staff.InstrumentName #'padding = #0.3
21 \once \override Staff.InstrumentName #'stencil =
23 (let* ((instrument-name (ly:grob-property grob 'long-text))
24 (layout (ly:output-def-clone (ly:grob-layout grob)))
25 (music (make-sequential-music
26 (list (context-spec-music
28 'instrumentName instrument-name)
31 (score (ly:make-score music))
32 (mm (ly:output-def-lookup layout 'mm))
33 (indent (ly:output-def-lookup layout 'indent))
34 (width (ly:output-def-lookup layout 'incipit-width))
35 (incipit-width (if (number? width)
39 (ly:output-def-set-variable! layout 'indent (- indent
41 (ly:output-def-set-variable! layout 'line-width indent)
42 (ly:output-def-set-variable! layout 'ragged-right #f)
43 (ly:output-def-set-variable! layout 'ragged-last #f)
44 (ly:output-def-set-variable! layout 'system-count 1)
45 (ly:score-add-output-def! score layout)
46 (ly:grob-set-property! grob 'long-text
47 (markup #:score score))
48 (system-start-text::print grob)))
51 %%%%%%%%%%%%%%%%%%%%%%%%%
54 \set Score.skipBars = ##t
61 % let finis bar go through all staves
62 \override Staff.BarLine #'transparent = ##f
69 \new MensuralVoice = "discantusIncipit" <<
70 \repeat unfold 9 { s1 \noBreak }
72 \clef "neomensural-c1"
78 \new Lyrics \lyricsto discantusIncipit { IV- }
89 \once \override NoteHead #'transparent = ##t
95 discantusLyrics = \lyricmode {
106 \new MensuralVoice = "altusIncipit" <<
107 \repeat unfold 9 { s1 \noBreak }
109 \clef "neomensural-c3"
115 \new Lyrics \lyricsto altusIncipit { IV- }
124 fis g4.( fis16 e fis4) |
126 \once \override NoteHead #'transparent = ##t
132 altusLyrics = \lyricmode {
134 Ju -- bi -- la -- te |
142 \new MensuralVoice = "tenorIncipit" <<
143 \repeat unfold 9 { s1 \noBreak }
145 \clef "neomensural-c4"
153 \new Lyrics \lyricsto tenorIncipit { IV- }
158 \once \override Staff.VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 3)
165 \once \override NoteHead #'transparent = ##t
171 tenorLyrics = \lyricmode {
173 Ju -- bi -- la -- te |
179 \new MensuralVoice = "bassusIncipit" <<
180 \repeat unfold 9 { s1 \noBreak }
190 \new Lyrics \lyricsto bassusIncipit { IV- }
201 \once \override NoteHead #'transparent = ##t
207 bassusLyrics = \lyricmode {
215 \new StaffGroup = choirStaff <<
216 \new Voice = "discantusNotes" <<
218 \set Staff.instrumentName = #"Discantus"
219 \incipit \discantusIncipit
222 \new Lyrics = "discantusLyrics" \lyricsto discantusNotes { \discantusLyrics }
223 \new Voice = "altusNotes" <<
225 \set Staff.instrumentName = #"Altus"
226 \incipit \altusIncipit
229 \new Lyrics = "altusLyrics" \lyricsto altusNotes { \altusLyrics }
230 \new Voice = "tenorNotes" <<
232 \set Staff.instrumentName = #"Tenor"
233 \incipit \tenorIncipit
236 \new Lyrics = "tenorLyrics" \lyricsto tenorNotes { \tenorLyrics }
237 \new Voice = "bassusNotes" <<
239 \set Staff.instrumentName = #"Bassus"
240 \incipit \bassusIncipit
243 \new Lyrics = "bassusLyrics" \lyricsto bassusNotes { \bassusLyrics }
249 %% no bar lines in staves or lyrics
250 \override BarLine #'transparent = ##t
252 %% the next two instructions keep the lyrics between the bar lines
255 \consists "Bar_engraver"
256 \consists "Separating_line_group_engraver"
261 \override Slur #'transparent = ##t
262 %% Comment in the below "\remove" command to allow line
263 %% breaking also at those bar lines where a note overlaps
264 %% into the next measure. The command is commented out in this
265 %% short example score, but especially for large scores, you
266 %% will typically yield better line breaking and thus improve
267 %% overall spacing if you comment in the following command.
268 %%\remove "Forbid_line_break_engraver"