]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/incipit.ly
Merge commit 'origin'
[lilypond.git] / input / lsr / incipit.ly
1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 %% Note: this file works from version 2.12.0
4 \version "2.13.1"
5 \header {
6   texidoces = "
7 Los «incipit» se pueden escribir utilizando el grob del nombre del
8 instruemento, pero manteniendo independientes las definiciones del
9 nombre del instrumento y del incipit."
10  
11  doctitlees = "Incipit"
12
13   lsrtags = "staff-notation,ancient-notation"
14   texidoc = "Incipits can be added using the instrument name grob, but
15 keeping separate the instrument name definition and the incipit definition."
16   doctitle = "Incipit"
17 } % begin verbatim
18
19
20 incipit =
21 #(define-music-function (parser location incipit-music) (ly:music?)
22   #{
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 = #4
26     \once \override Staff.InstrumentName #'padding = #0.3
27     \once \override Staff.InstrumentName #'stencil =
28     #(lambda (grob)
29        (let* ((instrument-name (ly:grob-property grob 'long-text))
30               (layout (ly:output-def-clone (ly:grob-layout grob)))
31               (music (make-music 'SequentialMusic
32                       'elements (list (make-music 'ContextSpeccedMusic
33                                         'context-type 'MensuralStaff
34                                         'element (make-music 'PropertySet
35                                                    'symbol 'instrumentName
36                                                    'value instrument-name))
37                                       $incipit-music)))
38               (score (ly:make-score music))
39               (mm (ly:output-def-lookup layout 'mm))
40               (indent (ly:output-def-lookup layout 'indent))
41               (width (ly:output-def-lookup layout 'incipit-width))
42               (incipit-width (if (number? width)
43                                  (* width mm)
44                                  (* indent 0.5))))
45          (ly:output-def-set-variable! layout 'indent (- indent incipit-width))
46          (ly:output-def-set-variable! layout 'line-width indent)
47          (ly:output-def-set-variable! layout 'ragged-right #f)
48          (ly:output-def-set-variable! layout 'ragged-last #f)
49          (ly:output-def-set-variable! layout 'system-count 1)
50          (ly:score-add-output-def! score layout)
51          (ly:grob-set-property! grob 'long-text
52                (markup #:score score))
53          (ly:system-start-text::print grob)))
54   #})
55
56 %%%%%%%%%%%%%%%%%%%%%%%%%
57
58 global = {
59   \set Score.skipBars = ##t
60   \key g \major
61   \time 4/4
62
63   % the actual music
64   \skip 1*8
65
66   % let finis bar go through all staves
67   \override Staff.BarLine #'transparent = ##f
68
69   % finis bar
70   \bar "|."
71 }
72
73 discantusIncipit = <<
74   \new MensuralVoice = "discantusIncipit" <<
75     \repeat unfold 9 { s1 \noBreak }
76     {
77       \clef "neomensural-c1"
78       \key f \major
79       \time 2/2
80       c''1.
81     }
82   >>
83   \new Lyrics \lyricsto discantusIncipit { IV- }
84 >>
85
86 discantusNotes = {
87   \transpose c' c'' {
88     \clef "treble"
89     d'2. d'4 |
90     b e' d'2 |
91     c'4 e'4.( d'8 c' b |
92     a4) b a2 |
93     b4.( c'8 d'4) c'4 |
94     \once \override NoteHead #'transparent = ##t
95     c'1 |
96     b\breve |
97   }
98 }
99
100 discantusLyrics = \lyricmode {
101   Ju -- bi -- |
102   la -- te De -- |
103   o, om --
104   nis ter -- |
105   ra, __ om- |
106   "..." |
107   -us. |
108 }
109
110 altusIncipit = <<
111   \new MensuralVoice = "altusIncipit" <<
112     \repeat unfold 9 { s1 \noBreak }
113     {
114       \clef "neomensural-c3"
115       \key f \major
116       \time 2/2
117       r1 f'1.
118     }
119   >>
120   \new Lyrics \lyricsto altusIncipit { IV- }
121 >>
122
123 altusNotes = {
124   \transpose c' c'' {
125     \clef "treble"
126     % two measures
127     r2 g2. e4 fis g |
128     a2 g4 e |
129     fis g4.( fis16 e fis4) |
130     g1 |
131     \once \override NoteHead #'transparent = ##t
132     g1 |
133     g\breve |
134   }
135 }
136
137 altusLyrics = \lyricmode {
138   % two measures
139   Ju -- bi -- la -- te |
140   De -- o, om -- |
141   nis ter -- ra, |
142   "..." |
143   -us. |
144 }
145
146 tenorIncipit = <<
147   \new MensuralVoice = "tenorIncipit" <<
148     \repeat unfold 9 { s1 \noBreak }
149     {
150       \clef "neomensural-c4"
151       \key f \major
152       \time 2/2
153       r\longa
154       r\breve
155       r1 c'1.
156     }
157   >>
158   \new Lyrics \lyricsto tenorIncipit { IV- }
159 >>
160
161 tenorNotes = {
162   \transpose c' c' {
163     \once \override Staff.VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 3)
164     \clef "treble_8"
165     R1 |
166     R1 |
167     R1 |
168     % two measures
169     r2 d'2. d'4 b e' |
170     \once \override NoteHead #'transparent = ##t
171     e'1 |
172     d'\breve |
173   }
174 }
175
176 tenorLyrics = \lyricmode {
177   % two measures
178   Ju -- bi -- la -- te |
179   "..." |
180   -us. 
181 }
182
183 bassusIncipit = <<
184   \new MensuralVoice = "bassusIncipit" <<
185     \repeat unfold 9 { s1 \noBreak }
186     {
187       \clef "bass"
188       \key f \major
189       \time 2/2
190       %% incipit
191       r\maxima
192       f1.
193     }
194   >>
195   \new Lyrics \lyricsto bassusIncipit { IV- }
196 >>
197
198 bassusNotes = {
199   \transpose c' c' {
200     \clef "bass"
201     R1 |
202     R1 |
203     R1 |
204     R1 |
205     g2. e4 |
206     \once \override NoteHead #'transparent = ##t
207     e1 |
208     g\breve |
209   }
210 }
211
212 bassusLyrics = \lyricmode {
213   Ju -- bi- |
214   "..." |
215   -us.
216 }
217
218 \score {
219   <<
220     \new StaffGroup = choirStaff <<
221       \new Voice = "discantusNotes" <<
222         \global
223         \set Staff.instrumentName = #"Discantus"
224         \incipit \discantusIncipit
225         \discantusNotes
226       >>
227       \new Lyrics = "discantusLyrics" \lyricsto discantusNotes { \discantusLyrics }
228       \new Voice = "altusNotes" <<
229         \global
230         \set Staff.instrumentName = #"Altus"
231         \incipit \altusIncipit
232         \altusNotes
233       >>
234       \new Lyrics = "altusLyrics" \lyricsto altusNotes { \altusLyrics }
235       \new Voice = "tenorNotes" <<
236         \global
237         \set Staff.instrumentName = #"Tenor"
238         \incipit \tenorIncipit
239         \tenorNotes
240       >>
241       \new Lyrics = "tenorLyrics" \lyricsto tenorNotes { \tenorLyrics }
242       \new Voice = "bassusNotes" <<
243         \global
244         \set Staff.instrumentName = #"Bassus"
245         \incipit \bassusIncipit
246         \bassusNotes
247       >>
248       \new Lyrics = "bassusLyrics" \lyricsto bassusNotes { \bassusLyrics }
249     >>
250   >>
251   \layout {
252     \context {
253       \Score
254       %% no bar lines in staves or lyrics
255       \override BarLine #'transparent = ##t
256     }
257     %% the next two instructions keep the lyrics between the bar lines
258     \context {
259       \Lyrics
260       \consists "Bar_engraver"
261       \consists "Separating_line_group_engraver"
262     }
263     \context {
264       \Voice
265       %% no slurs
266       \override Slur #'transparent = ##t
267       %% Comment in the below "\remove" command to allow line
268       %% breaking also at those bar lines where a note overlaps
269       %% into the next measure.  The command is commented out in this
270       %% short example score, but especially for large scores, you
271       %% will typically yield better line breaking and thus improve
272       %% overall spacing if you comment in the following command.
273       %%\remove "Forbid_line_break_engraver"
274     }
275     indent = 6\cm
276     incipit-width = 4\cm
277   }
278 }