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.17.6
11 lsrtags = "staff-notation, ancient-notation, really-cool"
13 Incipits can be added using the instrument name grob, but keeping
14 separate the instrument name definition and the incipit definition.
21 #(define-music-function (parser location incipit-music) (ly:music?)
23 \once \override Staff.InstrumentName.self-alignment-X = #RIGHT
24 \once \override Staff.InstrumentName.self-alignment-Y = #UP
25 \once \override Staff.InstrumentName.Y-offset =
27 (+ 4 (system-start-text::calc-y-offset grob)))
28 \once \override Staff.InstrumentName.padding = #0.3
29 \once \override Staff.InstrumentName.stencil =
31 (let* ((instrument-name (ly:grob-property grob 'long-text)))
32 (set! (ly:grob-property grob 'long-text)
36 { \context MensuralStaff \with {
37 instrumentName = #instrument-name
38 \override VerticalAxisGroup.Y-extent = #'(-4 . 4)
41 \layout { $(ly:grob-layout grob)
44 % primitive-eval is probably easiest for
45 % escaping lexical closure and evaluating
46 % everything respective to (current-module).
48 '(or (false-if-exception (- indent (* mm incipit-width)))
55 (system-start-text::print grob)))
58 %%%%%%%%%%%%%%%%%%%%%%%%%
61 \set Score.skipBars = ##t
68 % let finis bar go through all staves
69 \override Staff.BarLine.transparent = ##f
76 \new MensuralVoice = "discantusIncipit" <<
77 \repeat unfold 9 { s1 \noBreak }
79 \clef "neomensural-c1"
85 \new Lyrics \lyricsto discantusIncipit { IV- }
96 \once \override NoteHead.transparent = ##t
102 discantusLyrics = \lyricmode {
113 \new MensuralVoice = "altusIncipit" <<
114 \repeat unfold 9 { s1 \noBreak }
116 \clef "neomensural-c3"
122 \new Lyrics \lyricsto altusIncipit { IV- }
131 fis g4.( fis16 e fis4) |
133 \once \override NoteHead.transparent = ##t
139 altusLyrics = \lyricmode {
141 Ju -- bi -- la -- te |
149 \new MensuralVoice = "tenorIncipit" <<
150 \repeat unfold 9 { s1 \noBreak }
152 \clef "neomensural-c4"
160 \new Lyrics \lyricsto tenorIncipit { IV- }
171 \once \override NoteHead.transparent = ##t
177 tenorLyrics = \lyricmode {
179 Ju -- bi -- la -- te |
185 \new MensuralVoice = "bassusIncipit" <<
186 \repeat unfold 9 { s1 \noBreak }
196 \new Lyrics \lyricsto bassusIncipit { IV- }
207 \once \override NoteHead.transparent = ##t
213 bassusLyrics = \lyricmode {
221 \new StaffGroup = choirStaff <<
222 \new Voice = "discantusNotes" <<
224 \set Staff.instrumentName = #"Discantus"
225 \incipit \discantusIncipit
228 \new Lyrics = "discantusLyrics" \lyricsto discantusNotes { \discantusLyrics }
229 \new Voice = "altusNotes" <<
231 \set Staff.instrumentName = #"Altus"
232 \incipit \altusIncipit
235 \new Lyrics = "altusLyrics" \lyricsto altusNotes { \altusLyrics }
236 \new Voice = "tenorNotes" <<
238 \set Staff.instrumentName = #"Tenor"
239 \incipit \tenorIncipit
242 \new Lyrics = "tenorLyrics" \lyricsto tenorNotes { \tenorLyrics }
243 \new Voice = "bassusNotes" <<
245 \set Staff.instrumentName = #"Bassus"
246 \incipit \bassusIncipit
249 \new Lyrics = "bassusLyrics" \lyricsto bassusNotes { \bassusLyrics }
255 %% no bar lines in staves or lyrics
256 \override BarLine.transparent = ##t
258 %% the next two instructions keep the lyrics between the bar lines
261 \consists "Bar_engraver"
262 \consists "Separating_line_group_engraver"
267 \override Slur.transparent = ##t
268 %% Comment in the below "\remove" command to allow line
269 %% breaking also at those bar lines where a note overlaps
270 %% into the next measure. The command is commented out in this
271 %% short example score, but especially for large scores, you
272 %% will typically yield better line breaking and thus improve
273 %% overall spacing if you comment in the following command.
274 %%\remove "Forbid_line_break_engraver"