3 lsrtags = "staff-notation,ancient-notation"
4 texidoc = "Incipits can be added using the instrument name grob, but
5 keeping separate the instrument name definition and the incipit definition."
10 #(define-music-function (parser location incipit-music) (ly:music?)
12 \once \override Staff.InstrumentName #'self-alignment-X = #RIGHT
13 \once \override Staff.InstrumentName #'self-alignment-Y = #UP
14 \once \override Staff.InstrumentName #'Y-offset = #4
15 \once \override Staff.InstrumentName #'padding = #0.3
16 \once \override Staff.InstrumentName #'stencil =
18 (let* ((instrument-name (ly:grob-property grob 'long-text))
19 (layout (ly:output-def-clone (ly:grob-layout grob)))
20 (music (make-music 'SequentialMusic
21 'elements (list (make-music 'ContextSpeccedMusic
22 'context-type 'MensuralStaff
23 'element (make-music 'PropertySet
24 'symbol 'instrumentName
25 'value instrument-name))
27 (score (ly:make-score music))
28 (mm (ly:output-def-lookup layout 'mm))
29 (indent (ly:output-def-lookup layout 'indent))
30 (width (ly:output-def-lookup layout 'incipit-width))
31 (incipit-width (if (number? width)
34 (ly:output-def-set-variable! layout 'indent (- indent incipit-width))
35 (ly:output-def-set-variable! layout 'line-width indent)
36 (ly:output-def-set-variable! layout 'ragged-right #f)
37 (ly:output-def-set-variable! layout 'ragged-last #f)
38 (ly:output-def-set-variable! layout 'system-count 1)
39 (ly:score-add-output-def! score layout)
40 (ly:grob-set-property! grob 'long-text
41 (markup #:score score))
42 (ly:system-start-text::print grob)))
45 %%%%%%%%%%%%%%%%%%%%%%%%%
48 \set Score.skipBars = ##t
55 % let finis bar go through all staves
56 \override Staff.BarLine #'transparent = ##f
63 \new MensuralVoice = "discantusIncipit" <<
64 \repeat unfold 9 { s1 \noBreak }
66 \clef "neomensural-c1"
72 \new Lyrics \lyricsto discantusIncipit { IV- }
83 \once \override NoteHead #'transparent = ##t
89 discantusLyrics = \lyricmode {
100 \new MensuralVoice = "altusIncipit" <<
101 \repeat unfold 9 { s1 \noBreak }
103 \clef "neomensural-c3"
109 \new Lyrics \lyricsto altusIncipit { IV- }
118 fis g4.( fis16 e fis4) |
120 \once \override NoteHead #'transparent = ##t
126 altusLyrics = \lyricmode {
128 Ju -- bi -- la -- te |
136 \new MensuralVoice = "tenorIncipit" <<
137 \repeat unfold 9 { s1 \noBreak }
139 \clef "neomensural-c4"
147 \new Lyrics \lyricsto tenorIncipit { IV- }
152 \once \override Staff.VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 3)
159 \once \override NoteHead #'transparent = ##t
165 tenorLyrics = \lyricmode {
167 Ju -- bi -- la -- te |
173 \new MensuralVoice = "bassusIncipit" <<
174 \repeat unfold 9 { s1 \noBreak }
184 \new Lyrics \lyricsto bassusIncipit { IV- }
195 \once \override NoteHead #'transparent = ##t
201 bassusLyrics = \lyricmode {
209 \new StaffGroup = choirStaff <<
210 \new Voice = "discantusNotes" <<
212 \set Staff.instrumentName = #"Discantus"
213 \incipit \discantusIncipit
216 \new Lyrics = "discantusLyrics" \lyricsto discantusNotes { \discantusLyrics }
217 \new Voice = "altusNotes" <<
219 \set Staff.instrumentName = #"Altus"
220 \incipit \altusIncipit
223 \new Lyrics = "altusLyrics" \lyricsto altusNotes { \altusLyrics }
224 \new Voice = "tenorNotes" <<
226 \set Staff.instrumentName = #"Tenor"
227 \incipit \tenorIncipit
230 \new Lyrics = "tenorLyrics" \lyricsto tenorNotes { \tenorLyrics }
231 \new Voice = "bassusNotes" <<
233 \set Staff.instrumentName = #"Bassus"
234 \incipit \bassusIncipit
237 \new Lyrics = "bassusLyrics" \lyricsto bassusNotes { \bassusLyrics }
243 %% no bar lines in staves or lyrics
244 \override BarLine #'transparent = ##t
246 %% the next two instructions keep the lyrics between the bar lines
249 \consists "Bar_engraver"
250 \consists "Separating_line_group_engraver"
255 \override Slur #'transparent = ##t
256 %% Comment in the below "\remove" command to allow line
257 %% breaking also at those bar lines where a note overlaps
258 %% into the next measure. The command is commented out in this
259 %% short example score, but especially for large scores, you
260 %% will typically yield better line breaking and thus improve
261 %% overall spacing if you comment in the following command.
262 %%\remove "Forbid_line_break_engraver"