4 lsrtags = "staff-notation, ancient-notation, really-cool"
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 (set! (ly:grob-property grob 'long-text)
28 { \context MensuralStaff \with {
29 instrumentName = #instrument-name
30 \override VerticalAxisGroup.Y-extent = #'(-4 . 4)
33 \layout { $(ly:grob-layout grob)
36 % primitive-eval is probably easiest for
37 % escaping lexical closure and evaluating
38 % everything respective to (current-module).
40 '(or (false-if-exception (- indent incipit-width))
47 (system-start-text::print grob)))
50 %%%%%%%%%%%%%%%%%%%%%%%%%
53 \set Score.skipBars = ##t
60 % let finis bar go through all staves
61 \override Staff.BarLine.transparent = ##f
68 \new MensuralVoice = "discantusIncipit" <<
69 \repeat unfold 9 { s1 \noBreak }
71 \clef "neomensural-c1"
77 \new Lyrics \lyricsto discantusIncipit { IV- }
88 \once \override NoteHead.transparent = ##t
94 discantusLyrics = \lyricmode {
105 \new MensuralVoice = "altusIncipit" <<
106 \repeat unfold 9 { s1 \noBreak }
108 \clef "neomensural-c3"
114 \new Lyrics \lyricsto altusIncipit { IV- }
123 fis g4.( fis16 e fis4) |
125 \once \override NoteHead.transparent = ##t
131 altusLyrics = \lyricmode {
133 Ju -- bi -- la -- te |
141 \new MensuralVoice = "tenorIncipit" <<
142 \repeat unfold 9 { s1 \noBreak }
144 \clef "neomensural-c4"
152 \new Lyrics \lyricsto tenorIncipit { IV- }
163 \once \override NoteHead.transparent = ##t
169 tenorLyrics = \lyricmode {
171 Ju -- bi -- la -- te |
177 \new MensuralVoice = "bassusIncipit" <<
178 \repeat unfold 9 { s1 \noBreak }
188 \new Lyrics \lyricsto bassusIncipit { IV- }
199 \once \override NoteHead.transparent = ##t
205 bassusLyrics = \lyricmode {
213 \new StaffGroup = choirStaff <<
214 \new Voice = "discantusNotes" <<
216 \set Staff.instrumentName = #"Discantus"
217 \incipit \discantusIncipit
220 \new Lyrics = "discantusLyrics" \lyricsto discantusNotes { \discantusLyrics }
221 \new Voice = "altusNotes" <<
223 \set Staff.instrumentName = #"Altus"
224 \incipit \altusIncipit
227 \new Lyrics = "altusLyrics" \lyricsto altusNotes { \altusLyrics }
228 \new Voice = "tenorNotes" <<
230 \set Staff.instrumentName = #"Tenor"
231 \incipit \tenorIncipit
234 \new Lyrics = "tenorLyrics" \lyricsto tenorNotes { \tenorLyrics }
235 \new Voice = "bassusNotes" <<
237 \set Staff.instrumentName = #"Bassus"
238 \incipit \bassusIncipit
241 \new Lyrics = "bassusLyrics" \lyricsto bassusNotes { \bassusLyrics }
247 %% no bar lines in staves or lyrics
248 \override BarLine.transparent = ##t
250 %% the next two instructions keep the lyrics between the bar lines
253 \consists "Bar_engraver"
254 \consists "Separating_line_group_engraver"
259 \override Slur.transparent = ##t
260 %% Comment in the below "\remove" command to allow line
261 %% breaking also at those bar lines where a note overlaps
262 %% into the next measure. The command is commented out in this
263 %% short example score, but especially for large scores, you
264 %% will typically yield better line breaking and thus improve
265 %% overall spacing if you comment in the following command.
266 %%\remove "Forbid_line_break_engraver"