/usr/share/lilypond/2.14.2/ly/gregorian.ly is in lilypond-data 2.14.2-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 | %{
Shortcuts common for all styles of gregorian chant notation.
$Id$
%}
\version "2.14.0"
%
% Declare memorable shortcuts for special unicode characters
% that are used in chant notation.
%
% unicode 0132 (latin capital ligature IJ)
IJ = \lyricmode { IJ }
IIJ = \lyricmode { IIJ }
% unicode 0133 (latin small ligature ij)
ij = \lyricmode { ij }
iij = \lyricmode { iij }
%
% Given some music that represents lyrics, add a prefix to the first
% lyric event.
%
% TODO: Robustify this function. For example, this function works
% correctly for "\versus { some lyrics }", but it barfs with a wrong type
% argument error for e.g. "\versus some lyrics".
%
#(define (add-prefix-to-lyrics prefix music)
(make-music
'SequentialMusic
'elements (append
(cons
(let* ((elems (car (ly:music-property music 'elements)))
(props (ly:music-mutable-properties elems))
(events (filter (lambda (x)
(equal? (car x) 'elements))
props))
(first-evt (cadar events))
(first-syllable (ly:prob-property first-evt 'text))
(first-duration (ly:prob-property first-evt 'duration)))
(make-music
'LyricEvent
'duration first-duration
'text (string-append prefix first-syllable)))
(cdr (ly:music-property music 'elements))))))
% Add unicode 2123 (versicle) as prefix to lyrics.
versus =
#(define-music-function (parser location music) (ly:music?)
(add-prefix-to-lyrics "℣" music))
% Add unicode 211F (response) as prefix to lyrics.
responsum =
#(define-music-function (parser location music) (ly:music?)
(add-prefix-to-lyrics "℟" music))
%
% Declare head prefix shortcuts.
%
virga =
\once \override NoteHead #'virga = ##t
stropha =
\once \override NoteHead #'stropha = ##t
inclinatum =
\once \override NoteHead #'inclinatum = ##t
auctum =
\once \override NoteHead #'auctum = ##t
descendens =
\once \override NoteHead #'descendens = ##t
ascendens =
\once \override NoteHead #'ascendens = ##t
pes =
\once \override NoteHead #'pes-or-flexa = ##t
flexa =
\once \override NoteHead #'pes-or-flexa = ##t
oriscus =
\once \override NoteHead #'oriscus = ##t
quilisma =
\once \override NoteHead #'quilisma = ##t
deminutum =
\once \override NoteHead #'deminutum = ##t
linea =
\once \override NoteHead #'linea = ##t
cavum =
\once \override NoteHead #'cavum = ##t
%
% Declare divisiones shortcuts.
%
virgula = {
\once \override BreathingSign #'text = #(make-musicglyph-markup "scripts.rcomma")
\once \override BreathingSign #'font-size = #-2
% Workaround: add padding. Correct fix would be spacing engine handle this.
\once \override BreathingSign #'extra-X-extent = #'(-1.0 . 0)
\breathe
}
caesura = {
\once \override BreathingSign #'text = #(make-musicglyph-markup "scripts.rvarcomma")
\once \override BreathingSign #'font-size = #-2
% Workaround: add padding. Correct fix would be spacing engine handle this.
\once \override BreathingSign #'extra-X-extent = #'(-1.0 . 0)
\breathe
}
divisioMinima = {
\once \override BreathingSign #'stencil = #ly:breathing-sign::divisio-minima
% Workaround: add padding. Correct fix would be spacing engine handle this.
\once \override BreathingSign #'extra-X-extent = #'(-1.0 . 0)
\breathe
}
divisioMaior = {
\once \override BreathingSign #'stencil = #ly:breathing-sign::divisio-maior
\once \override BreathingSign #'Y-offset = #0
% Workaround: add padding. Correct fix would be spacing engine handle this.
\once \override BreathingSign #'extra-X-extent = #'(-1.0 . 0)
\breathe
}
divisioMaxima = {
\once \override BreathingSign #'stencil = #ly:breathing-sign::divisio-maxima
\once \override BreathingSign #'Y-offset = #0
% Workaround: add padding. Correct fix would be spacing engine handle this.
\once \override BreathingSign #'extra-X-extent = #'(-1.0 . 0)
\breathe
}
finalis = {
\once \override BreathingSign #'stencil = #ly:breathing-sign::finalis
\once \override BreathingSign #'Y-offset = #0
% Workaround: add padding. Correct fix would be spacing engine handle this.
\once \override BreathingSign #'extra-X-extent = #'(-1.0 . 0)
\once \override BreathingSign #'extra-spacing-height = #'(-0.5 . 0.5)
\breathe
}
%
% Declare articulation shortcuts.
%
accentus = #(make-articulation "accentus")
ictus = #(make-articulation "ictus")
semicirculus = #(make-articulation "semicirculus")
circulus = #(make-articulation "circulus")
%
% \augmentum increases the dot-count value of all note heads to which
% it is applied by one.
%
augmentum =
#(define-music-function (parser location expr) (ly:music?)
(shift-duration-log expr 0 1))
%
% Declare shortcut music functions for Liber Hymnarius neumes
% table (experimental).
%
#(define (make-ligature music)
(make-music 'SequentialMusic
'elements (append
(cons
(make-music 'EventChord
'elements (list
(make-span-event 'LigatureEvent START)))
(ly:music-property music 'elements))
(list
(make-music 'EventChord
'elements (list
(make-span-event 'LigatureEvent STOP)))))))
ligature = #(define-music-function
(location music) (ly:music?)
(make-ligature music))
%#(define (make-script x)
% (make-music 'ArticulationEvent
% 'articulation-type x))
%
%#(define (add-script m x)
% (if
% (equal? (ly:music-property m 'name) 'EventChord)
% (set! (ly:music-property m 'elements)
% (cons (make-script x)
% (ly:music-property m 'elements))))
% m)
%
%#(define (add-staccato m)
% (add-script m "staccato"))
%
% % \applyMusic #(lambda (x) (music-map add-staccato x)) { c c }
%
% % \climacus { x y z ... }:
% % \[ \virga x \inclinatum y \inclinatum z ... \]
%
%#(defmacro def-climacus-function (start stop)
% `(define-music-function (location music) (ly:music?)
% (make-music 'SequentialMusic
% 'elements (list 'LigatureStartEvent
% (ly:music-deep-copy ,start)
% music
% (ly:music-deep-copy ,stop)
% 'LigatureStopEvent))))
%climacus = #(def-climacus-function startSequentialMusic stopSequentialMusic)
%
% Declare default layout; here for Vaticana style. In case there will
% be additional styles, we may want to create style-specific .ly files
% for inclusion (e.g. vaticana-init.ly), move the style-dependent stuff
% over there, leave the style-independent Gregorian stuff here, and let
% the style-specific file (vaticana-init.ly) include this file. The
% user then will have to include vaticana-init.ly instead of
% gregorian.ly.
%
\layout {
indent = 0.0
%%% TODO: should ragged-right be the default?
%ragged-right = ##t
ragged-last = ##t
line-thickness = #(/ (ly:output-def-lookup $defaultpaper 'staff-space) 7.0)
\context {
\VaticanaStaff
\override StaffSymbol #'color = #red
\override LedgerLineSpanner #'color = #red
}
\context {
\Score
\remove "Bar_number_engraver"
%%%
%%% FIXME: Musicologically seen, timing should be set to #f.
%%% Unfortunately, setting it to #f will result in no
%%% line-breakable items being created, such that the whole
%%% music will end up in a single line. Therefore, we
%%% currently set it to #t, until the ligature code is fixed
%%% to automatically insert breakable items.
%%%
timing = ##t
%%%
%%% FIXME: Setting barAlways to #t would fix the above
%%% "timing = ##t" problem, but, surprisingly, it increases
%%% the space between ligatures. Hence, we set it to #f.
%%%
barAlways = ##f
\override SpacingSpanner #'packed-spacing = ##t
%%%
%%% TODO: Play around with the following SpacingSpanner
%%% settings to yield better spacing between ligatures.
%%%
%%% FIXME: setting #'spacing-increment to a small value
%%% causes tons of "programming error: adding reverse spring,
%%% setting to unit" messages.
%%%
%\override SpacingSpanner #'base-shortest-duration = #(ly:make-moment 1 4)
%\override SpacingSpanner #'shortest-duration-space = #0
%\override SpacingSpanner #'average-spacing-wishes = ##f
%\override SpacingSpanner #'spacing-increment = #0.0
%\override SpacingSpanner #'uniform-stretching = ##t
}
}
%
% neumeDemoLayout defines a layout block suitable for notating pure
% Vaticana style neumes without any other notation symbols such as
% staff lines or clefs. This layout is useful for engraving neumes
% tables, such as that one in the lilypond manual section on
% Gregorian ligatures, or for educational works.
%
neumeDemoLayout = \layout {
interscoreline = 1
\context {
\Score
\remove "Bar_number_engraver"
}
\context {
\Staff
\remove "Clef_engraver"
\remove "Key_engraver"
\override StaffSymbol #'transparent = ##t
\remove "Time_signature_engraver"
\remove "Bar_engraver"
\override VerticalAxisGroup #'staff-staff-spacing = #'()
}
\context {
\Voice
\remove Ligature_bracket_engraver
\consists Vaticana_ligature_engraver
\override NoteHead #'style = #'vaticana.punctum
\override Stem #'transparent = ##t
}
}
%%% Local Variables:
%%% coding: utf-8
%%% End:
|