1 ;;;; This file is part of LilyPond, the GNU music typesetter.
3 ;;;; Copyright (C) 1998--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
4 ;;;; Jan Nieuwenhuizen <janneke@gnu.org>
6 ;;;; LilyPond is free software: you can redistribute it and/or modify
7 ;;;; it under the terms of the GNU General Public License as published by
8 ;;;; the Free Software Foundation, either version 3 of the License, or
9 ;;;; (at your option) any later version.
11 ;;;; LilyPond is distributed in the hope that it will be useful,
12 ;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;;;; GNU General Public License for more details.
16 ;;;; You should have received a copy of the GNU General Public License
17 ;;;; along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
19 ;;;; distances are given in line-thickness (thicknesses) and
20 ;;;; staff-space (distances)
22 ;;;; WARNING: the meta field should be the last one.
23 ;;;; WARNING: don't use anonymous functions for initialization.
25 ;; TODO: junk the meta field in favor of something more compact?
28 (define-session-public all-grob-descriptions
32 (alteration . ,accidental-interface::calc-alteration)
34 (glyph-name . ,accidental-interface::glyph-name)
35 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
36 (stencil . ,ly:accidental-interface::print)
37 (horizontal-skylines . ,(ly:make-unpure-pure-container ly:accidental-interface::horizontal-skylines))
38 (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
39 (X-extent . ,ly:accidental-interface::width)
40 (Y-extent . ,accidental-interface::height)
41 (meta . ((class . Item)
42 (interfaces . (accidental-interface
43 inline-accidental-interface
48 (alteration . ,accidental-interface::calc-alteration)
50 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
52 (stencil . ,ly:accidental-interface::print)
53 (Y-extent . ,accidental-interface::height)
54 (meta . ((class . Item)
55 (interfaces . (accidental-interface
56 inline-accidental-interface
62 (positioning-done . ,ly:accidental-placement::calc-positioning-done)
64 ;; this is quite small, but it is very ugly to have
65 ;; accs closer to the previous note than to the next one.
66 (right-padding . 0.15)
68 ;; for horizontally stacked scripts.
69 (script-priority . -100)
71 (X-extent . ,ly:axis-group-interface::width)
72 (meta . ((class . Item)
73 (interfaces . (accidental-placement-interface))))))
77 (alteration . ,accidental-interface::calc-alteration)
80 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
81 (outside-staff-priority . 0)
83 (self-alignment-X . ,CENTER)
85 (staff-padding . 0.25)
86 (stencil . ,ly:accidental-interface::print)
87 (X-extent . ,ly:accidental-interface::width)
88 (X-offset . ,(ly:make-simple-closure
90 ,(ly:make-simple-closure
91 (list ly:self-alignment-interface::centered-on-x-parent))
92 ,(ly:make-simple-closure
93 (list ly:self-alignment-interface::x-aligned-on-self)))))
94 (Y-extent . ,accidental-interface::height)
95 (Y-offset . ,side-position-interface::y-aligned-side)
96 (meta . ((class . Item)
97 (interfaces . (accidental-interface
98 accidental-suggestion-interface
101 self-alignment-interface
102 side-position-interface))))))
107 (break-align-symbol . ambitus)
108 (break-visibility . ,begin-of-line-visible)
111 (cue-end-clef . (extra-space . 0.5))
112 (clef . (extra-space . 0.5))
113 (cue-clef . (extra-space . 0.5))
114 (key-signature . (extra-space . 0.0))
115 (staff-bar . (extra-space . 0.0))
116 (time-signature . (extra-space . 0.0))
117 (first-note . (fixed-space . 0.0))))
118 (X-extent . ,ly:axis-group-interface::width)
119 (Y-extent . ,axis-group-interface::height)
120 (meta . ((class . Item)
121 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
122 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
123 (interfaces . (ambitus-interface
125 break-aligned-interface))))))
130 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
133 (stencil . ,ly:accidental-interface::print)
134 (X-offset . ,ly:side-position-interface::x-aligned-side)
135 (Y-extent . ,accidental-interface::height)
136 (meta . ((class . Item)
137 (interfaces . (accidental-interface
138 break-aligned-interface
140 side-position-interface))))))
145 (stencil . ,ambitus::print)
147 (X-offset . ,ly:self-alignment-interface::centered-on-x-parent)
148 (meta . ((class . Item)
149 (interfaces . (ambitus-interface
155 (glyph-name . ,note-head::calc-glyph-name)
156 (stencil . ,ly:note-head::print)
157 (Y-offset . ,staff-symbol-referencer::callback)
158 (Y-extent . ,grob::always-Y-extent-from-stencil)
159 (meta . ((class . Item)
160 (interfaces . (ambitus-interface
164 rhythmic-head-interface
165 staff-symbol-referencer-interface))))))
171 (positions . ,ly:arpeggio::calc-positions)
173 (script-priority . 0)
175 (staff-position . 0.0)
176 (stencil . ,ly:arpeggio::print)
177 (X-extent . ,ly:arpeggio::width)
178 (Y-extent . ,(grob::unpure-Y-extent-from-stencil ly:arpeggio::pure-height))
179 (X-offset . ,ly:side-position-interface::x-aligned-side)
180 (Y-offset . ,staff-symbol-referencer::callback)
181 (meta . ((class . Item)
182 (interfaces . (arpeggio-interface
184 side-position-interface
185 staff-symbol-referencer-interface))))))
189 (annotation-balloon . #t)
190 (annotation-line . #t)
191 (extra-spacing-width . (+inf.0 . -inf.0))
192 (stencil . ,ly:balloon-interface::print)
193 (text . ,(grob::calc-property-by-copy 'text))
194 (X-offset . ,(grob::calc-property-by-copy 'X-offset))
195 (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
196 (Y-extent . ,grob::always-Y-extent-from-stencil)
197 (meta . ((class . Item)
198 (interfaces . (balloon-interface
204 (allow-span-bar . #t)
205 (bar-extent . ,ly:bar-line::calc-bar-extent)
206 (break-align-anchor . ,ly:bar-line::calc-anchor)
207 (break-align-symbol . staff-bar)
208 (break-visibility . ,bar-line::calc-break-visibility)
209 (extra-spacing-height . ,pure-from-neighbor-interface::account-for-span-bar)
212 (glyph-name . ,bar-line::calc-glyph-name)
215 ;; Ross. page 151 lists other values, we opt for a leaner look
218 ;; kern should scale with line-thickness too.
221 (hair-thickness . 1.9)
222 (thick-thickness . 6.0)
228 (time-signature . (extra-space . 0.75))
229 (custos . (minimum-space . 2.0))
230 (clef . (minimum-space . 1.0))
231 (key-signature . (extra-space . 1.0))
232 (key-cancellation . (extra-space . 1.0))
233 (first-note . (fixed-space . 1.3))
234 (next-note . (semi-fixed-space . 0.9))
235 (right-edge . (extra-space . 0.0))))
236 (stencil . ,ly:bar-line::print)
237 (Y-extent . ,grob::always-Y-extent-from-stencil)
238 (meta . ((class . Item)
239 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
240 (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
241 (interfaces . (bar-line-interface
242 break-aligned-interface
244 pure-from-neighbor-interface))))))
248 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
249 ;; want the bar number before the clef at line start.
250 (break-align-symbols . (left-edge staff-bar))
252 (break-visibility . ,begin-of-line-visible)
254 (extra-spacing-width . (+inf.0 . -inf.0))
255 (font-family . roman)
258 ;; w/o padding, bars numbers are not positioned over the staff as
259 ;; they are slightly to the left. so we add just a bit.
260 (horizon-padding . 0.05)
261 (outside-staff-priority . 100)
263 (self-alignment-X . ,RIGHT)
265 (stencil . ,ly:text-interface::print)
266 (X-offset . ,(ly:make-simple-closure
268 ,(ly:make-simple-closure
269 (list ly:break-alignable-interface::self-align-callback))
270 ,(ly:make-simple-closure
271 (list ly:self-alignment-interface::x-aligned-on-self)))))
272 (Y-offset . ,side-position-interface::y-aligned-side)
273 (Y-extent . ,grob::always-Y-extent-from-stencil)
276 (interfaces . (break-alignable-interface
278 self-alignment-interface
279 side-position-interface
284 (stencil . ,ly:text-interface::print)
285 (Y-extent . ,grob::always-Y-extent-from-stencil)
286 (meta . ((class . Item)
287 (interfaces . (bass-figure-interface
289 rhythmic-grob-interface
296 (positioning-done . ,ly:align-interface::align-to-minimum-distances)
297 (stacking-dir . ,DOWN)
298 (X-extent . ,ly:axis-group-interface::width)
299 (Y-extent . ,axis-group-interface::height)
300 (meta . ((class . Spanner)
301 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
302 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
303 (interfaces . (align-interface
305 bass-figure-alignment-interface))))))
307 (BassFigureAlignmentPositioning
313 (staff-padding . 1.0)
314 (X-extent . ,ly:axis-group-interface::width)
315 (Y-extent . ,axis-group-interface::height)
316 (Y-offset . ,side-position-interface::y-aligned-side)
317 (meta . ((class . Spanner)
318 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
319 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
320 (interfaces . (axis-group-interface
321 side-position-interface))))))
325 (edge-height . (0.2 . 0.2))
326 (stencil . ,ly:enclosing-bracket::print)
327 (X-extent . ,ly:enclosing-bracket::width)
328 (meta . ((class . Item)
329 (interfaces . (enclosing-bracket-interface))))))
331 (BassFigureContinuation
333 (stencil . ,ly:figured-bass-continuation::print)
334 (Y-offset . ,ly:figured-bass-continuation::center-on-figures)
335 (meta . ((class . Spanner)
336 (interfaces . (figured-bass-continuation-interface))))))
340 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
342 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
343 (X-extent . ,ly:axis-group-interface::width)
344 (Y-extent . ,axis-group-interface::height)
345 (meta . ((class . Spanner)
346 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
347 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
348 (interfaces . (axis-group-interface))))))
353 ;; todo: clean this up a bit: the list is getting
355 (auto-knee-gap . 5.5)
356 (beam-segments . ,ly:beam::calc-beam-segments)
357 (beam-thickness . 0.48) ; in staff-space
359 ;; We have some unreferenced problems here.
361 ;; If we shorten beamed stems less than normal stems (1 staff-space),
362 ;; or high order less than 8th beams, patterns like
363 ;; c''4 [c''8 c''] c''4 [c''16 c]
364 ;; are ugly (different stem lengths).
366 ;; But if we shorten 16th beams as much as 8th beams, a single
367 ;; forced 16th beam looks *very* short.
369 ;; We choose to shorten 8th beams the same as single stems,
370 ;; and high order beams less than 8th beams, so that all
371 ;; isolated shortened beams look nice and a bit shortened,
372 ;; sadly possibly breaking patterns with high order beams.
373 (beamed-stem-shorten . (1.0 0.5 0.25))
375 (beaming . ,ly:beam::calc-beaming)
377 (collision-interfaces . (beam-interface
379 clef-modifier-interface
381 inline-accidental-interface
382 key-signature-interface
385 time-signature-interface))
386 (cross-staff . ,ly:beam::calc-cross-staff)
390 (secondary-beam-demerit . 10)
391 (stem-length-demerit-factor . 5)
394 (stem-length-limit-penalty . 5000)
395 (damping-direction-penalty . 800)
396 (hint-direction-penalty . 20)
397 (musical-direction-factor . 400)
398 (ideal-slope-factor . 10)
399 (collision-penalty . 500)
400 (collision-padding . 0.35)
401 (round-to-zero-slope . 0.02)))
402 (direction . ,ly:beam::calc-direction)
404 (normalized-endpoints . ,ly:spanner::calc-normalized-endpoints)
405 ;; only for debugging.
406 (font-family . roman)
408 (beam-gap . ,ly:beam::calc-beam-gap)
409 (minimum-length . ,ly:beam::calc-minimum-length)
410 (neutral-direction . ,DOWN)
411 (positions . ,beam::place-broken-parts-individually)
412 (springs-and-rods . ,ly:beam::calc-springs-and-rods)
413 (X-positions . ,ly:beam::calc-x-positions)
414 (transparent . ,(grob::inherit-parent-property
417 ;; this is a hack to set stem lengths, if positions is set.
418 (quantized-positions . ,ly:beam::set-stem-lengths)
420 (shorten . ,ly:beam::calc-stem-shorten)
421 (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
422 (stencil . ,ly:beam::print)
424 (meta . ((class . Spanner)
425 (object-callbacks . ((normal-stems . ,ly:beam::calc-normal-stems)))
426 (interfaces . (beam-interface
428 staff-symbol-referencer-interface
429 unbreakable-spanner-interface))))))
433 (minimum-length . 0.5)
434 (stencil . ,bend::print)
436 (meta . ((class . Spanner)
437 (interfaces . (bend-after-interface
438 spanner-interface))))))
443 (break-align-anchor . ,ly:break-aligned-interface::calc-average-anchor)
444 (break-visibility . ,ly:break-aligned-interface::calc-break-visibility)
445 (X-extent . ,ly:axis-group-interface::width)
446 (meta . ((class . Item)
447 (interfaces . (axis-group-interface
448 break-aligned-interface))))))
453 (break-align-orders . ;; end of line
494 (positioning-done . ,ly:break-alignment-interface::calc-positioning-done)
496 (X-extent . ,ly:axis-group-interface::width)
497 (meta . ((class . Item)
498 (interfaces . (axis-group-interface
499 break-alignment-interface))))))
503 (break-align-symbol . breathing-sign)
504 (break-visibility . ,begin-of-line-invisible)
507 (ambitus . (extra-space . 2.0))
508 (custos . (minimum-space . 1.0))
509 (key-signature . (minimum-space . 1.5))
510 (time-signature . (minimum-space . 1.5))
511 (staff-bar . (minimum-space . 1.5))
512 (clef . (minimum-space . 2.0))
513 (cue-clef . (minimum-space . 2.0))
514 (cue-end-clef . (minimum-space . 2.0))
515 (first-note . (fixed-space . 1.0)) ;huh?
516 (right-edge . (extra-space . 0.1))))
517 (stencil . ,ly:text-interface::print)
518 (text . ,(make-musicglyph-markup "scripts.rcomma"))
519 (Y-offset . ,ly:breathing-sign::offset-callback)
520 (Y-extent . ,grob::always-Y-extent-from-stencil)
521 (meta . ((class . Item)
522 (interfaces . (break-aligned-interface
523 breathing-sign-interface
529 (after-line-breaking . ,ly:chord-name::after-line-breaking)
532 (stencil . ,ly:text-interface::print)
533 (extra-spacing-height . (0.2 . -0.2))
534 (extra-spacing-width . (-0.5 . 0.5))
536 (Y-extent . ,grob::always-Y-extent-from-stencil)
537 (meta . ((class . Item)
538 (interfaces . (chord-name-interface
540 rhythmic-grob-interface
545 (avoid-slur . inside)
546 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
547 (break-align-anchor-alignment . ,RIGHT)
548 (break-align-symbol . clef)
549 (break-visibility . ,begin-of-line-visible)
550 (extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height-at-beginning-of-line)
551 (glyph-name . ,ly:clef::calc-glyph-name)
553 (space-alist . ((cue-clef . (extra-space . 2.0))
554 (staff-bar . (extra-space . 0.7))
555 (key-cancellation . (minimum-space . 3.5))
556 (key-signature . (minimum-space . 3.5))
557 (time-signature . (minimum-space . 4.2))
558 (first-note . (minimum-fixed-space . 5.0))
559 (next-note . (extra-space . 1.0))
560 (right-edge . (extra-space . 0.5))))
561 (stencil . ,ly:clef::print)
562 (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
563 (Y-offset . ,staff-symbol-referencer::callback)
564 (Y-extent . ,grob::always-Y-extent-from-stencil)
565 (meta . ((class . Item)
566 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
567 (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
568 (interfaces . (break-aligned-interface
571 pure-from-neighbor-interface
572 staff-symbol-referencer-interface))))))
576 (break-visibility . ,(grob::inherit-parent-property
577 X 'break-visibility))
578 (font-shape . italic)
580 (transparent . ,(grob::inherit-parent-property
582 (color . ,(grob::inherit-parent-property
584 (self-alignment-X . ,CENTER)
585 (staff-padding . 0.2)
586 (stencil . ,ly:text-interface::print)
587 (X-offset . ,(ly:make-simple-closure
589 ,(ly:make-simple-closure
590 (list ly:self-alignment-interface::x-aligned-on-self))
591 ,(ly:make-simple-closure
592 (list ly:self-alignment-interface::centered-on-x-parent)))))
593 (Y-offset . ,side-position-interface::y-aligned-side)
594 (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
595 (Y-extent . ,grob::always-Y-extent-from-stencil)
596 (meta . ((class . Item)
597 (interfaces . (clef-modifier-interface
599 self-alignment-interface
600 side-position-interface
605 (cross-staff . ,ly:cluster::calc-cross-staff)
606 (minimum-length . 0.0)
608 (springs-and-rods . ,ly:spanner::set-spacing-rods)
609 (stencil . ,ly:cluster::print)
611 (meta . ((class . Spanner)
612 (interfaces . (cluster-interface))))))
614 (ClusterSpannerBeacon
616 (Y-extent . ,ly:cluster-beacon::height)
617 (meta . ((class . Item)
618 (interfaces . (cluster-beacon-interface
619 rhythmic-grob-interface))))))
623 (avoid-slur . outside)
626 (extra-spacing-width . (+inf.0 . -inf.0))
628 (outside-staff-priority . 450)
630 (script-priority . 200)
632 (staff-padding . 0.5)
633 ;; todo: add X self alignment?
634 (stencil . ,ly:text-interface::print)
635 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
636 (Y-offset . ,side-position-interface::y-aligned-side)
637 (Y-extent . ,grob::always-Y-extent-from-stencil)
638 (meta . ((class . Item)
639 (interfaces . (font-interface
640 side-position-interface
642 text-script-interface))))))
646 (avoid-slur . inside)
647 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
648 (break-align-symbol . cue-clef)
649 (break-visibility . ,begin-of-line-visible)
650 (extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height-at-beginning-of-line)
652 (glyph-name . ,ly:clef::calc-glyph-name)
654 (full-size-change . #t)
655 (space-alist . ((staff-bar . (minimum-space . 2.7))
656 (key-cancellation . (minimum-space . 3.5))
657 (key-signature . (minimum-space . 3.5))
658 (time-signature . (minimum-space . 4.2))
659 (custos . (minimum-space . 0.0))
660 (first-note . (minimum-fixed-space . 3.0))
661 (next-note . (extra-space . 1.0))
662 (right-edge . (extra-space . 0.5))))
663 (stencil . ,ly:clef::print)
664 (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
665 (Y-offset . ,staff-symbol-referencer::callback)
666 (Y-extent . ,grob::always-Y-extent-from-stencil)
667 (meta . ((class . Item)
668 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
669 (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
670 (interfaces . (break-aligned-interface
673 pure-from-neighbor-interface
674 staff-symbol-referencer-interface))))))
678 (avoid-slur . inside)
679 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
680 (break-align-symbol . cue-end-clef)
681 (break-visibility . ,begin-of-line-invisible)
682 (extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height-at-beginning-of-line)
684 (glyph-name . ,ly:clef::calc-glyph-name)
686 (full-size-change . #t)
687 (space-alist . ((clef . (extra-space . 0.7))
688 (cue-clef . (extra-space . 0.7))
689 (staff-bar . (extra-space . 0.7))
690 (key-cancellation . (minimum-space . 3.5))
691 (key-signature . (minimum-space . 3.5))
692 (time-signature . (minimum-space . 4.2))
693 (first-note . (minimum-fixed-space . 5.0))
694 (next-note . (extra-space . 1.0))
695 (right-edge . (extra-space . 0.5))))
696 (stencil . ,ly:clef::print)
697 (Y-offset . ,staff-symbol-referencer::callback)
698 (Y-extent . ,grob::always-Y-extent-from-stencil)
699 (meta . ((class . Item)
700 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
701 (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
702 (interfaces . (break-aligned-interface
705 pure-from-neighbor-interface
706 staff-symbol-referencer-interface))))))
710 (break-align-symbol . custos)
711 (break-visibility . ,end-of-line-visible)
712 (neutral-direction . ,DOWN)
715 (first-note . (minimum-fixed-space . 0.0))
716 (right-edge . (extra-space . 0.1))))
717 (stencil . ,ly:custos::print)
719 (Y-offset . ,staff-symbol-referencer::callback)
720 (meta . ((class . Item)
721 (interfaces . (break-aligned-interface
724 staff-symbol-referencer-interface))))))
730 (positioning-done . ,ly:dot-column::calc-positioning-done)
731 (X-extent . ,ly:axis-group-interface::width)
732 (meta . ((class . Item)
733 (interfaces . (axis-group-interface
734 dot-column-interface))))))
738 (avoid-slur . inside)
739 (dot-count . ,dots::calc-dot-count)
740 (staff-position . ,dots::calc-staff-position)
741 (stencil . ,ly:dots::print)
742 (Y-extent . ,grob::always-Y-extent-from-stencil)
743 (extra-spacing-height . (-0.5 . 0.5))
744 (meta . ((class . Item)
745 (interfaces . (dots-interface
747 staff-symbol-referencer-interface))))))
751 (break-align-symbol . staff-bar)
752 (break-visibility . ,begin-of-line-invisible)
753 (dot-negative-kern . 0.75)
754 (font-encoding . fetaMusic)
756 (slash-negative-kern . 1.6)
758 (stencil . ,ly:percent-repeat-item-interface::double-percent)
759 (Y-extent . ,grob::always-Y-extent-from-stencil)
761 (meta . ((class . Item)
762 (interfaces . (break-aligned-interface
764 percent-repeat-interface
765 percent-repeat-item-interface))))))
767 (DoublePercentRepeatCounter
770 (font-encoding . fetaText)
773 (self-alignment-X . ,CENTER)
775 (staff-padding . 0.25)
776 (stencil . ,ly:text-interface::print)
777 (X-offset . ,(ly:make-simple-closure
779 ,(ly:make-simple-closure
780 (list ly:self-alignment-interface::centered-on-y-parent))
781 ,(ly:make-simple-closure
782 (list ly:self-alignment-interface::x-aligned-on-self)))))
783 (Y-offset . ,side-position-interface::y-aligned-side)
784 (Y-extent . ,grob::always-Y-extent-from-stencil)
785 (meta . ((class . Item)
786 (interfaces . (font-interface
787 percent-repeat-interface
788 percent-repeat-item-interface
789 self-alignment-interface
790 side-position-interface
795 (dot-negative-kern . 0.75)
796 (font-encoding . fetaMusic)
797 (slash-negative-kern . 1.6)
799 (stencil . ,ly:percent-repeat-item-interface::beat-slash)
800 (Y-extent . ,grob::always-Y-extent-from-stencil)
802 (meta . ((class . Item)
803 (interfaces . (font-interface
804 percent-repeat-interface
805 percent-repeat-item-interface
806 rhythmic-grob-interface))))))
811 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
813 (minimum-space . 1.2)
814 (outside-staff-priority . 250)
815 (outside-staff-padding . 0.6)
819 (staff-padding . 0.1)
820 (vertical-skylines . ,grob::always-vertical-skylines-from-element-stencils)
821 (X-extent . ,ly:axis-group-interface::width)
822 (Y-extent . ,axis-group-interface::height)
823 (Y-offset . ,side-position-interface::y-aligned-side)
824 (meta . ((class . Spanner)
825 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
826 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
827 (interfaces . (axis-group-interface
829 dynamic-line-spanner-interface
830 side-position-interface))))))
837 (collision-bias . -2.0)
838 (collision-padding . 0.5)
839 (direction . ,ly:script-interface::calc-direction)
840 (extra-spacing-width . (+inf.0 . -inf.0))
841 (font-encoding . fetaText)
843 (font-shape . italic)
844 (positioning-done . ,ly:script-interface::calc-positioning-done)
845 (right-padding . 0.5)
846 (self-alignment-X . ,CENTER)
847 (self-alignment-Y . ,CENTER)
848 (stencil . ,ly:text-interface::print)
849 (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
850 (Y-extent . ,grob::always-Y-extent-from-stencil)
851 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
852 (Y-offset . ,self-alignment-interface::y-aligned-on-self)
853 (meta . ((class . Item)
854 (interfaces . (dynamic-interface
855 dynamic-text-interface
858 self-alignment-interface
863 (before-line-breaking . ,dynamic-text-spanner::before-line-breaking)
864 (bound-details . ((right . ((attach-dir . ,LEFT)
868 (right-broken . ((attach-dir . ,RIGHT)
872 (left . ((attach-dir . ,LEFT)
874 (stencil-offset . (-0.75 . -0.5))
877 (left-broken . ((attach-dir . ,RIGHT)
880 (dash-fraction . 0.2)
883 ;; rather ugh with NCSB
884 ;; (font-series . bold)
885 (font-shape . italic)
887 ;; need to blend with dynamic texts.
890 (left-bound-info . ,ly:line-spanner::calc-left-bound-info-and-text)
892 (minimum-length . 2.0)
893 ;; make sure the spanner doesn't get too close to notes
894 (minimum-Y-extent . (-1 . 1))
896 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
897 (skyline-horizontal-padding . 0.2)
898 (springs-and-rods . ,ly:spanner::set-spacing-rods)
899 (stencil . ,ly:line-spanner::print)
900 (style . dashed-line)
901 (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
902 (meta . ((class . Spanner)
903 (interfaces . (dynamic-interface
904 dynamic-text-spanner-interface
907 line-spanner-interface
914 (bound-details . ((left . ((Y . 0)
920 (attach-dir . ,RIGHT)
924 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
925 (quantize-position . #t)
926 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
928 (stencil . ,ly:line-spanner::print)
930 (Y-offset . ,side-position-interface::y-aligned-side)
931 (meta . ((class . Spanner)
932 (interfaces . (episema-interface
935 line-spanner-interface
936 side-position-interface))))))
942 ;; sync with TextScript (?)
943 (add-stem-support . ,only-if-beamed)
944 (avoid-slur . around)
945 (cross-staff . ,script-or-side-position-cross-staff)
946 (direction . ,ly:script-interface::calc-direction)
947 (font-encoding . fetaText)
948 (font-size . -5) ; don't overlap when next to heads.
950 (positioning-done . ,ly:script-interface::calc-positioning-done)
951 (script-priority . 100)
952 (self-alignment-X . ,CENTER)
953 (self-alignment-Y . ,CENTER)
955 (staff-padding . 0.5)
956 (stencil . ,ly:text-interface::print)
957 (text . ,fingering::calc-text)
958 (Y-extent . ,grob::always-Y-extent-from-stencil)
959 (meta . ((class . Item)
960 (interfaces . (finger-interface
962 self-alignment-interface
963 side-position-interface
965 text-script-interface))))))
970 (positioning-done . ,ly:fingering-column::calc-positioning-done)
972 (meta . ((class . Item)
973 (interfaces . (fingering-column-interface))))))
977 (glyph-name . ,ly:flag::glyph-name)
978 (stencil . ,ly:flag::print)
979 (transparent . ,(grob::inherit-parent-property
981 (color . ,(grob::inherit-parent-property
983 (X-extent . ,ly:flag::width)
984 (X-offset . ,ly:flag::calc-x-offset)
985 (Y-offset . ,(ly:make-unpure-pure-container ly:flag::calc-y-offset ly:flag::pure-calc-y-offset))
986 (Y-extent . ,grob::always-Y-extent-from-stencil)
987 (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
988 (meta . ((class . Item)
989 (interfaces . (flag-interface
994 (annotation-balloon . #f)
995 (annotation-line . #t)
996 (automatically-numbered . ,(grob::calc-property-by-copy 'automatically-numbered))
997 (break-visibility . ,(grob::inherit-parent-property
998 X 'break-visibility))
1000 (footnote-text . ,(grob::calc-property-by-copy 'footnote-text))
1001 (stencil . ,ly:balloon-interface::print)
1002 (text . ,(grob::calc-property-by-copy 'text))
1005 (X-offset . ,(grob::calc-property-by-copy 'X-offset))
1006 (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
1007 (meta . ((class . Item)
1008 (interfaces . (balloon-interface
1011 text-interface))))))
1015 (annotation-balloon . #f)
1016 (annotation-line . #t)
1017 (automatically-numbered . ,(grob::calc-property-by-copy 'automatically-numbered))
1019 (footnote-text . ,(grob::calc-property-by-copy 'footnote-text))
1020 (spanner-placement . ,LEFT)
1021 (stencil . ,ly:balloon-interface::print-spanner)
1022 (text . ,(grob::calc-property-by-copy 'text))
1025 (X-offset . ,(grob::calc-property-by-copy 'X-offset))
1026 (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
1027 (meta . ((class . Spanner)
1028 (interfaces . (balloon-interface
1030 footnote-spanner-interface
1032 text-interface))))))
1036 (after-line-breaking . ,ly:chord-name::after-line-breaking)
1037 (fret-diagram-details . ((finger-code . below-string)))
1038 (stencil . ,fret-board::calc-stencil)
1039 (extra-spacing-height . (0.2 . -0.2))
1040 (extra-spacing-width . (-0.5 . 0.5))
1041 (Y-extent . ,grob::always-Y-extent-from-stencil)
1042 (meta . ((class . Item)
1043 (interfaces . (chord-name-interface
1045 fret-diagram-interface
1046 rhythmic-grob-interface))))))
1051 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
1052 (bound-details . ((right . ((attach-dir . ,LEFT)
1053 (end-on-accidental . #t)
1056 (left . ((attach-dir . ,RIGHT)
1060 (cross-staff . ,ly:line-spanner::calc-cross-staff)
1062 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
1063 (normalized-endpoints . ,ly:spanner::calc-normalized-endpoints)
1064 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
1066 (stencil . ,ly:line-spanner::print)
1068 (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
1071 (zigzag-width . 0.75)
1072 (meta . ((class . Spanner)
1073 (interfaces . (glissando-interface
1075 line-spanner-interface
1076 unbreakable-spanner-interface))))))
1080 (common-shortest-duration . ,grace-spacing::calc-shortest-duration)
1081 (shortest-duration-space . 1.6)
1082 (spacing-increment . 0.8)
1083 (meta . ((class . Spanner)
1084 (interfaces . (grace-spacing-interface
1085 spacing-options-interface
1086 spanner-interface))))))
1091 (self-alignment-X . ,CENTER)
1092 (stencil . ,ly:grid-line-interface::print)
1093 (X-extent . ,ly:grid-line-interface::width)
1094 (X-offset . ,(ly:make-simple-closure
1096 ,(ly:make-simple-closure
1097 (list ly:self-alignment-interface::centered-on-x-parent))
1098 ,(ly:make-simple-closure
1099 (list ly:self-alignment-interface::x-aligned-on-self)))))
1100 (meta . ((class . Item)
1101 (interfaces . (grid-line-interface
1102 self-alignment-interface))))))
1106 (X-extent . (0 . 0))
1107 (Y-extent . (0 . 0))
1108 (meta . ((class . Item)
1109 (interfaces . (grid-point-interface))))))
1114 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
1115 (bound-padding . 1.0)
1116 (broken-bound-padding . ,ly:hairpin::broken-bound-padding)
1118 (grow-direction . ,hairpin::calc-grow-direction)
1120 (minimum-length . 2.0)
1121 (self-alignment-Y . ,CENTER)
1122 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1123 (stencil . ,ly:hairpin::print)
1126 (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
1127 (Y-extent . ,(grob::unpure-Y-extent-from-stencil ly:hairpin::pure-height))
1128 (Y-offset . ,self-alignment-interface::y-aligned-on-self)
1129 (meta . ((class . Spanner)
1130 (interfaces . (dynamic-interface
1133 self-alignment-interface
1134 spanner-interface))))))
1138 (bracket-flare . (0.5 . 0.5))
1139 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
1143 (staff-padding . 0.2)
1144 (stencil . ,ly:horizontal-bracket::print)
1146 (Y-offset . ,side-position-interface::y-aligned-side)
1147 (meta . ((class . Spanner)
1148 (interfaces . (horizontal-bracket-interface
1150 side-position-interface
1151 spanner-interface))))))
1158 (self-alignment-X . ,CENTER)
1159 (self-alignment-Y . ,CENTER)
1160 (stencil . ,system-start-text::print)
1161 (X-offset . ,system-start-text::calc-x-offset)
1162 (Y-offset . ,system-start-text::calc-y-offset)
1163 (meta . ((class . Spanner)
1164 (interfaces . (font-interface
1165 self-alignment-interface
1166 side-position-interface
1167 system-start-text-interface))))))
1172 (extra-spacing-width . (+inf.0 . -inf.0))
1173 (outside-staff-priority . 500)
1175 (self-alignment-X . ,LEFT)
1177 (staff-padding . 0.5)
1178 (stencil . ,ly:text-interface::print)
1179 (Y-extent . ,grob::always-Y-extent-from-stencil)
1180 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1181 (Y-offset . ,side-position-interface::y-aligned-side)
1182 (meta . ((class . Item)
1183 (interfaces . (font-interface
1184 self-alignment-interface
1185 side-position-interface
1186 text-interface))))))
1191 (break-align-symbol . key-cancellation)
1192 (break-visibility . ,begin-of-line-invisible)
1193 (glyph-name-alist . ,cancellation-glyph-name-alist)
1195 (flat-positions . (2 3 4 2 1 2 1))
1196 (sharp-positions . (4 5 4 2 3 2 3))
1198 (time-signature . (extra-space . 1.25))
1199 (staff-bar . (extra-space . 0.6))
1200 (key-signature . (extra-space . 0.5))
1201 (cue-clef . (extra-space . 0.5))
1202 (right-edge . (extra-space . 0.5))
1203 (first-note . (fixed-space . 2.5))))
1204 (stencil . ,ly:key-signature-interface::print)
1205 (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
1206 (Y-extent . ,grob::always-Y-extent-from-stencil)
1207 (extra-spacing-width . (0.0 . 1.0))
1208 (extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height-including-staff)
1209 (Y-offset . ,staff-symbol-referencer::callback)
1210 (meta . ((class . Item)
1211 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1212 (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
1213 (interfaces . (break-aligned-interface
1215 key-cancellation-interface
1216 key-signature-interface
1217 pure-from-neighbor-interface
1218 staff-symbol-referencer-interface))))))
1222 (avoid-slur . inside)
1223 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1224 (break-align-anchor-alignment . ,RIGHT)
1225 (break-align-symbol . key-signature)
1226 (break-visibility . ,begin-of-line-visible)
1227 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
1229 (flat-positions . (2 3 4 2 1 2 1))
1230 (sharp-positions . (4 5 4 2 3 2 3))
1232 (time-signature . (extra-space . 1.15))
1233 (staff-bar . (extra-space . 1.1))
1234 (cue-clef . (extra-space . 0.5))
1235 (right-edge . (extra-space . 0.5))
1236 (first-note . (fixed-space . 2.5))))
1237 (stencil . ,ly:key-signature-interface::print)
1238 (Y-extent . ,grob::always-Y-extent-from-stencil)
1239 (extra-spacing-width . (0.0 . 1.0))
1240 (extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height-including-staff)
1241 (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
1242 (Y-offset . ,staff-symbol-referencer::callback)
1243 (meta . ((class . Item)
1244 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1245 (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
1246 (interfaces . (break-aligned-interface
1248 key-signature-interface
1249 pure-from-neighbor-interface
1250 staff-symbol-referencer-interface))))))
1254 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1255 (stencil . ,ly:kievan-ligature::print)
1257 (meta . ((class . Spanner)
1258 (interfaces . (font-interface
1259 kievan-ligature-interface))))))
1263 (control-points . ,ly:semi-tie::calc-control-points)
1264 (cross-staff . ,semi-tie::calc-cross-staff)
1265 (details . ((ratio . 0.333)
1266 (height-limit . 1.0)))
1267 (direction . ,ly:tie::calc-direction)
1268 (head-direction . ,LEFT)
1269 (stencil . ,laissez-vibrer::print)
1271 (extra-spacing-height . (-0.5 . 0.5))
1272 (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
1273 (Y-extent . ,grob::always-Y-extent-from-stencil)
1274 (meta . ((class . Item)
1275 (interfaces . (semi-tie-interface))))))
1277 (LaissezVibrerTieColumn
1279 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1280 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1283 (meta . ((class . Item)
1284 (interfaces . (semi-tie-column-interface))))))
1289 (length-fraction . 0.25)
1290 (minimum-length-fraction . 0.25)
1291 (springs-and-rods . ,ly:ledger-line-spanner::set-spacing-rods)
1292 (stencil . ,ly:ledger-line-spanner::print)
1293 (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
1296 (meta . ((class . Spanner)
1297 (interfaces . (ledger-line-spanner-interface))))))
1301 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1302 (break-align-symbol . left-edge)
1303 (break-visibility . ,center-invisible)
1305 (extra-spacing-height . (+inf.0 . -inf.0))
1307 (ambitus . (extra-space . 2.0))
1308 (breathing-sign . (minimum-space . 0.0))
1309 (cue-end-clef . (extra-space . 0.8))
1310 (clef . (extra-space . 0.8))
1311 (cue-clef . (extra-space . 0.8))
1312 (staff-bar . (extra-space . 0.0))
1313 (key-cancellation . (extra-space . 0.0))
1314 (key-signature . (extra-space . 0.8))
1315 (time-signature . (extra-space . 1.0))
1316 (custos . (extra-space . 0.0))
1317 (first-note . (fixed-space . 2.0))
1318 (right-edge . (extra-space . 0.0))
1320 (X-extent . (0 . 0))
1321 (meta . ((class . Item)
1322 (interfaces . (break-aligned-interface))))))
1326 ;; ugh. A ligature bracket is totally different from
1327 ;; a tuplet bracket.
1329 (bracket-visibility . #t)
1330 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
1332 (edge-height . (0.7 . 0.7))
1334 (positions . ,ly:tuplet-bracket::calc-positions)
1335 (shorten-pair . (-0.2 . -0.2))
1336 (staff-padding . 0.25)
1337 (stencil . ,ly:tuplet-bracket::print)
1339 (X-positions . ,ly:tuplet-bracket::calc-x-positions)
1340 (meta . ((class . Spanner)
1341 (interfaces . (line-interface
1342 tuplet-bracket-interface))))))
1346 (minimum-length . 1.5)
1347 (stencil . ,ly:lyric-extender::print)
1348 (thickness . 0.8) ; line-thickness
1349 (Y-extent . (0 . 0))
1350 (meta . ((class . Spanner)
1351 (interfaces . (lyric-extender-interface
1352 lyric-interface))))))
1356 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
1357 (dash-period . 10.0)
1360 (minimum-distance . 0.1)
1361 (minimum-length . 0.3)
1363 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1364 (stencil . ,ly:lyric-hyphen::print)
1365 (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
1367 (Y-extent . (0 . 0))
1368 (meta . ((class . Spanner)
1369 (interfaces . (font-interface
1370 lyric-hyphen-interface
1372 spanner-interface))))))
1376 (minimum-distance . 0.45)
1378 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1381 (meta . ((class . Spanner)
1382 (interfaces . (lyric-hyphen-interface
1383 spanner-interface))))))
1387 (extra-spacing-width . (0.0 . 0.0))
1388 ;; Recede in height for purposes of note spacing,
1389 ;; so notes in melismata can be freely spaced above lyrics
1390 (extra-spacing-height . (0.2 . -0.2))
1391 (font-series . medium)
1393 (self-alignment-X . ,CENTER)
1394 (stencil . ,lyric-text::print)
1395 (text . ,(grob::calc-property-by-copy 'text))
1397 (skyline-horizontal-padding . 0.1)
1398 (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
1399 (X-offset . ,ly:self-alignment-interface::aligned-on-x-parent)
1400 (Y-extent . ,grob::always-Y-extent-from-stencil)
1401 (meta . ((class . Item)
1402 (interfaces . (font-interface
1403 lyric-syllable-interface
1404 rhythmic-grob-interface
1405 self-alignment-interface
1406 text-interface))))))
1412 (font-encoding . fetaText)
1414 (outside-staff-horizontal-padding . 0.5)
1415 (outside-staff-padding . 0.5)
1416 (outside-staff-priority . 750)
1417 (self-alignment-X . ,CENTER)
1419 (staff-padding . 0.5)
1420 (stencil . ,measure-counter-stencil)
1421 (meta . ((class . Spanner)
1422 (interfaces . (font-interface
1423 measure-counter-interface
1424 self-alignment-interface
1425 side-position-interface
1426 text-interface))))))
1435 (stencil . ,ly:measure-grouping::print)
1437 (Y-offset . ,side-position-interface::y-aligned-side)
1438 (meta . ((class . Spanner)
1439 (interfaces . (measure-grouping-interface
1440 side-position-interface))))))
1444 (neutral-direction . ,DOWN)
1445 (meta . ((class . Item)
1446 (interfaces . (melody-spanner-interface))))))
1450 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1451 (stencil . ,ly:mensural-ligature::print)
1453 (meta . ((class . Spanner)
1454 (interfaces . (font-interface
1455 mensural-ligature-interface))))))
1459 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1460 (break-visibility . ,end-of-line-invisible)
1462 (extra-spacing-width . (+inf.0 . -inf.0))
1463 (outside-staff-horizontal-padding . 0.2)
1464 (outside-staff-priority . 1000)
1467 (stencil . ,ly:text-interface::print)
1468 (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
1469 (Y-offset . ,side-position-interface::y-aligned-side)
1470 (X-offset . ,(ly:make-simple-closure
1472 ,(ly:make-simple-closure
1473 (list ly:break-alignable-interface::self-align-callback))
1474 ,(ly:make-simple-closure
1475 (list ly:self-alignment-interface::x-aligned-on-self)))))
1476 (self-alignment-X . ,LEFT)
1477 (break-align-symbols . (time-signature))
1478 (non-break-align-symbols . (paper-column-interface))
1479 (Y-extent . ,grob::always-Y-extent-from-stencil)
1480 (meta . ((class . Item)
1481 (interfaces . (break-alignable-interface
1483 metronome-mark-interface
1484 self-alignment-interface
1485 side-position-interface
1486 text-interface))))))
1491 (hair-thickness . 2.0)
1492 (round-up-exceptions . ())
1494 (spacing-pair . (break-alignment . break-alignment))
1495 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1496 (stencil . ,ly:multi-measure-rest::print)
1497 (thick-thickness . 6.6)
1498 ;; See Wanske pp. 125
1499 (usable-duration-logs . ,(iota 4 -3))
1500 (Y-extent . ,(ly:make-unpure-pure-container ly:multi-measure-rest::height))
1501 (Y-offset . ,staff-symbol-referencer::callback)
1502 (meta . ((class . Spanner)
1503 (interfaces . (font-interface
1504 multi-measure-interface
1505 multi-measure-rest-interface
1507 staff-symbol-referencer-interface))))))
1509 (MultiMeasureRestNumber
1511 (bound-padding . 2.0)
1513 (font-encoding . fetaText)
1515 (self-alignment-X . ,CENTER)
1517 (springs-and-rods . ,ly:multi-measure-rest::set-text-rods)
1518 (staff-padding . 0.4)
1519 (stencil . ,ly:text-interface::print)
1520 (X-offset . ,(ly:make-simple-closure
1522 ,(ly:make-simple-closure
1523 (list ly:self-alignment-interface::x-aligned-on-self))
1524 ,(ly:make-simple-closure
1525 (list ly:self-alignment-interface::x-centered-on-y-parent)))))
1526 (Y-offset . ,side-position-interface::y-aligned-side)
1527 (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
1528 (Y-extent . ,grob::always-Y-extent-from-stencil)
1529 (meta . ((class . Spanner)
1530 (interfaces . (font-interface
1531 multi-measure-interface
1532 self-alignment-interface
1533 side-position-interface
1534 text-interface))))))
1536 (MultiMeasureRestText
1539 (outside-staff-priority . 450)
1541 (self-alignment-X . ,CENTER)
1542 (skyline-horizontal-padding . 0.2)
1543 (staff-padding . 0.25)
1544 (stencil . ,ly:text-interface::print)
1545 (X-offset . ,(ly:make-simple-closure
1547 ,(ly:make-simple-closure
1548 (list ly:self-alignment-interface::x-centered-on-y-parent))
1549 ,(ly:make-simple-closure
1550 (list ly:self-alignment-interface::x-aligned-on-self)))))
1551 (Y-offset . ,side-position-interface::y-aligned-side)
1552 (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
1553 (Y-extent . ,grob::always-Y-extent-from-stencil)
1554 (meta . ((class . Spanner)
1555 (interfaces . (font-interface
1556 multi-measure-interface
1557 self-alignment-interface
1558 side-position-interface
1559 text-interface))))))
1562 (NonMusicalPaperColumn
1564 (allow-loose-spacing . #t)
1566 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1567 (bound-alignment-interfaces . (break-alignment-interface))
1568 (full-measure-extra-space . 1.0)
1569 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1570 ;; (stencil . ,ly:paper-column::print)
1572 (keep-inside-line . #t)
1573 (line-break-permission . allow)
1575 (page-break-permission . allow)
1577 ;; debugging stuff: print column number.
1578 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1580 (X-extent . ,ly:axis-group-interface::width)
1581 (meta . ((class . Paper_column)
1582 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1583 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1584 (interfaces . (axis-group-interface
1586 paper-column-interface
1587 separation-item-interface
1588 spaceable-grob-interface))))))
1593 (positioning-done . ,ly:note-collision-interface::calc-positioning-done)
1594 (prefer-dotted-right . #t)
1595 (X-extent . ,ly:axis-group-interface::width)
1596 (Y-extent . ,axis-group-interface::height)
1597 (meta . ((class . Item)
1598 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1599 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1600 (interfaces . (axis-group-interface
1601 note-collision-interface))))))
1606 (bound-alignment-interfaces . (rhythmic-head-interface stem-interface))
1607 (cross-staff . ,ly:axis-group-interface::cross-staff)
1608 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1609 (skyline-vertical-padding . 0.15)
1610 (X-extent . ,ly:axis-group-interface::width)
1611 (Y-extent . ,axis-group-interface::height)
1612 (meta . ((class . Item)
1613 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1614 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1615 (interfaces . (axis-group-interface
1616 note-column-interface
1617 separation-item-interface))))))
1622 (duration-log . ,note-head::calc-duration-log)
1623 (extra-spacing-height . ,ly:note-head::include-ledger-line-height)
1624 (glyph-name . ,note-head::calc-glyph-name)
1625 (ligature-flexa . #f)
1626 (stem-attachment . ,ly:note-head::calc-stem-attachment)
1627 (stencil . ,ly:note-head::print)
1628 (X-offset . ,ly:note-head::stem-x-shift)
1629 (Y-offset . ,staff-symbol-referencer::callback)
1630 (Y-extent . ,grob::always-Y-extent-from-stencil)
1631 (meta . ((class . Item)
1632 (interfaces . (font-interface
1633 gregorian-ligature-interface
1635 ligature-head-interface
1636 mensural-ligature-interface
1638 rhythmic-grob-interface
1639 rhythmic-head-interface
1640 staff-symbol-referencer-interface
1641 vaticana-ligature-interface))))))
1645 (stencil . ,ly:text-interface::print)
1646 (Y-extent . ,grob::always-Y-extent-from-stencil)
1647 (meta . ((class . Item)
1648 (interfaces . (font-interface
1650 text-interface))))))
1654 ;; Changed this from 0.75.
1655 ;; If you ever change this back, please document! --hwn
1656 (knee-spacing-correction . 1.0)
1657 (same-direction-correction . 0.25)
1658 (space-to-barline . #t)
1659 (stem-spacing-correction . 0.5)
1660 (meta . ((class . Item)
1661 (interfaces . (note-spacing-interface
1662 spacing-interface))))))
1666 (dash-fraction . 0.3)
1668 (edge-height . (0 . 1.2))
1669 (font-shape . italic)
1670 (minimum-length . 1.0)
1671 (outside-staff-priority . 400)
1673 (shorten-pair . (0.0 . -0.6))
1674 (staff-padding . 1.0)
1675 (stencil . ,ly:ottava-bracket::print)
1676 (style . dashed-line)
1677 (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
1678 (Y-offset . ,side-position-interface::y-aligned-side)
1679 (meta . ((class . Spanner)
1680 (interfaces . (font-interface
1681 horizontal-bracket-interface
1683 ottava-bracket-interface
1684 side-position-interface
1685 text-interface))))))
1690 (allow-loose-spacing . #t)
1692 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1693 (bound-alignment-interfaces . (note-column-interface))
1694 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1695 (keep-inside-line . #t)
1696 ;; 0.08 comes from spacing-horizontal-skyline.ly
1697 ;; allows double flat of F to be nestled over dots of C
1698 (skyline-vertical-padding . 0.08)
1699 ;; (stencil . ,ly:paper-column::print)
1700 (X-extent . ,ly:axis-group-interface::width)
1703 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1704 (meta . ((class . Paper_column)
1705 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1706 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1707 (interfaces . (axis-group-interface
1709 paper-column-interface
1710 separation-item-interface
1711 spaceable-grob-interface))))))
1717 (stencil . ,parentheses-item::print)
1718 (stencils . ,parentheses-item::calc-parenthesis-stencils)
1719 (meta . ((class . Item)
1720 (interfaces . (font-interface
1721 parentheses-interface))))))
1725 (dot-negative-kern . 0.75)
1726 (font-encoding . fetaMusic)
1728 (spacing-pair . (break-alignment . staff-bar))
1729 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1730 (stencil . ,ly:multi-measure-rest::percent)
1732 (meta . ((class . Spanner)
1733 (interfaces . (font-interface
1734 multi-measure-rest-interface
1735 percent-repeat-interface))))))
1737 (PercentRepeatCounter
1740 (font-encoding . fetaText)
1743 (self-alignment-X . ,CENTER)
1744 (staff-padding . 0.25)
1745 (stencil . ,ly:text-interface::print)
1746 (X-offset . ,(ly:make-simple-closure
1748 ,(ly:make-simple-closure
1749 (list ly:self-alignment-interface::x-centered-on-y-parent))
1750 ,(ly:make-simple-closure
1751 (list ly:self-alignment-interface::x-aligned-on-self)))))
1752 (Y-offset . ,side-position-interface::y-aligned-side)
1753 (Y-extent . ,grob::always-Y-extent-from-stencil)
1754 (meta . ((class . Spanner)
1755 (interfaces . (font-interface
1756 percent-repeat-interface
1757 self-alignment-interface
1758 side-position-interface
1759 text-interface))))))
1763 (control-points . ,ly:slur::calc-control-points)
1764 (cross-staff . ,ly:slur::calc-cross-staff)
1765 (details . ,default-slur-details)
1766 (direction . ,ly:slur::calc-direction)
1767 (height-limit . 2.0)
1768 (minimum-length . 1.5)
1771 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1772 (stencil . ,ly:slur::print)
1774 (vertical-skylines . ,(ly:make-unpure-pure-container ly:slur::vertical-skylines ly:grob::pure-simple-vertical-skylines-from-extents))
1775 (Y-extent . ,slur::height)
1776 (meta . ((class . Spanner)
1777 (interfaces . (slur-interface))))))
1779 ;; an example of a text spanner
1782 (bound-padding . 1.0)
1783 (bracket-flare . (0.5 . 0.5))
1785 (edge-height . (1.0 . 1.0))
1786 (shorten-pair . (0.0 . 0.0))
1787 (stencil . ,ly:piano-pedal-bracket::print)
1790 (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
1791 (meta . ((class . Spanner)
1792 (interfaces . (line-interface
1793 piano-pedal-bracket-interface
1794 piano-pedal-interface))))))
1799 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1801 (break-align-symbols . (staff-bar key-signature clef))
1802 (break-visibility . ,end-of-line-invisible)
1804 (extra-spacing-width . (+inf.0 . -inf.0))
1807 (outside-staff-horizontal-padding . 0.12)
1808 (outside-staff-priority . 1500)
1810 (self-alignment-X . ,CENTER)
1811 (stencil . ,ly:text-interface::print)
1812 (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
1813 (X-offset . ,(ly:make-simple-closure
1815 ,(ly:make-simple-closure
1816 (list ly:break-alignable-interface::self-align-callback))
1817 ,(ly:make-simple-closure
1818 (list ly:self-alignment-interface::x-aligned-on-self)))))
1819 (Y-offset . ,side-position-interface::y-aligned-side)
1820 (Y-extent . ,grob::always-Y-extent-from-stencil)
1821 (meta . ((class . Item)
1822 (interfaces . (break-alignable-interface
1825 self-alignment-interface
1826 side-position-interface
1827 text-interface))))))
1831 (slash-negative-kern . 0.85)
1833 (stencil . ,ly:percent-repeat-item-interface::beat-slash)
1834 (Y-extent . ,grob::always-Y-extent-from-stencil)
1836 (meta . ((class . Item)
1837 (interfaces . (percent-repeat-interface
1838 percent-repeat-item-interface
1839 rhythmic-grob-interface))))))
1843 (cross-staff . ,semi-tie::calc-cross-staff)
1844 (control-points . ,ly:semi-tie::calc-control-points)
1845 (details . ((ratio . 0.333)
1846 (height-limit . 1.0)))
1847 (direction . ,ly:tie::calc-direction)
1848 (head-direction . ,RIGHT)
1849 (stencil . ,ly:tie::print)
1851 (extra-spacing-height . (-0.5 . 0.5))
1852 (Y-extent . ,grob::always-Y-extent-from-stencil)
1853 (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
1854 (meta . ((class . Item)
1855 (interfaces . (semi-tie-interface))))))
1859 (direction . ,ly:tie::calc-direction)
1860 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1861 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1864 (meta . ((class . Item)
1865 (interfaces . (semi-tie-column-interface))))))
1869 (cross-staff . ,ly:rest::calc-cross-staff)
1870 (duration-log . ,stem::calc-duration-log)
1871 (minimum-distance . 0.25)
1872 (stencil . ,ly:rest::print)
1873 (X-extent . ,ly:rest::width)
1874 (Y-extent . ,(ly:make-unpure-pure-container ly:rest::height ly:rest::pure-height))
1875 (Y-offset . ,(ly:make-unpure-pure-container ly:rest::y-offset-callback))
1876 (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
1877 (meta . ((class . Item)
1878 (interfaces . (font-interface
1880 rhythmic-grob-interface
1881 rhythmic-head-interface
1882 staff-symbol-referencer-interface))))))
1886 (minimum-distance . 0.75)
1887 (positioning-done . ,ly:rest-collision::calc-positioning-done)
1888 (meta . ((class . Item)
1889 (interfaces . (rest-collision-interface))))))
1894 (add-stem-support . #t)
1895 (cross-staff . ,ly:script-interface::calc-cross-staff)
1896 (direction . ,ly:script-interface::calc-direction)
1897 (font-encoding . fetaMusic)
1898 (positioning-done . ,ly:script-interface::calc-positioning-done)
1901 ;; padding set in script definitions.
1902 (slur-padding . 0.2)
1903 (staff-padding . 0.25)
1905 (stencil . ,ly:script-interface::print)
1906 (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
1907 (Y-extent . ,grob::always-Y-extent-from-stencil)
1908 (X-offset . ,script-interface::calc-x-offset)
1909 (Y-offset . ,side-position-interface::y-aligned-side)
1910 (meta . ((class . Item)
1911 (interfaces . (font-interface
1913 side-position-interface))))))
1917 (before-line-breaking . ,ly:script-column::before-line-breaking)
1918 (meta . ((class . Item)
1919 (interfaces . (script-column-interface))))))
1923 (before-line-breaking . ,ly:script-column::row-before-line-breaking)
1924 (meta . ((class . Item)
1925 (interfaces . (script-column-interface))))))
1929 (avoid-slur . inside)
1930 (control-points . ,ly:slur::calc-control-points)
1931 (cross-staff . ,ly:slur::calc-cross-staff)
1932 (details . ,default-slur-details)
1933 (direction . ,ly:slur::calc-direction)
1934 (height-limit . 2.0)
1935 (line-thickness . 0.8)
1936 (minimum-length . 1.5)
1939 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1940 (stencil . ,ly:slur::print)
1942 (vertical-skylines . ,(ly:make-unpure-pure-container ly:slur::vertical-skylines ly:grob::pure-simple-vertical-skylines-from-extents))
1943 (Y-extent . ,slur::height)
1944 (meta . ((class . Spanner)
1945 (interfaces . (slur-interface))))))
1949 (direction . ,RIGHT)
1950 (extra-spacing-width . (+inf.0 . -inf.0))
1951 (font-shape . italic)
1952 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
1953 (self-alignment-X . ,CENTER)
1954 (stencil . ,ly:text-interface::print)
1955 (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
1956 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1957 (Y-extent . ,grob::always-Y-extent-from-stencil)
1958 (meta . ((class . Item)
1959 (interfaces . (font-interface
1960 piano-pedal-script-interface
1961 self-alignment-interface
1962 text-interface))))))
1964 (SostenutoPedalLineSpanner
1967 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
1969 (minimum-space . 1.0)
1970 (outside-staff-priority . 1000)
1973 (staff-padding . 1.0)
1974 (vertical-skylines . ,grob::always-vertical-skylines-from-element-stencils)
1975 (X-extent . ,ly:axis-group-interface::width)
1976 (Y-extent . ,axis-group-interface::height)
1977 (Y-offset . ,side-position-interface::y-aligned-side)
1978 (meta . ((class . Spanner)
1979 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1980 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1981 (interfaces . (axis-group-interface
1982 piano-pedal-interface
1983 side-position-interface))))))
1987 (average-spacing-wishes . #t)
1988 (base-shortest-duration . ,(ly:make-moment 3 16))
1989 (common-shortest-duration . ,ly:spacing-spanner::calc-common-shortest-duration)
1990 (shortest-duration-space . 2.0)
1991 (spacing-increment . 1.2)
1992 (springs-and-rods . ,ly:spacing-spanner::set-springs)
1993 (meta . ((class . Spanner)
1994 (interfaces . (spacing-options-interface
1995 spacing-spanner-interface))))))
1999 (allow-span-bar . #t)
2000 (bar-extent . ,axis-group-interface::height)
2001 (before-line-breaking . ,ly:span-bar::before-line-breaking)
2002 (break-align-symbol . staff-bar)
2004 (glyph-name . ,ly:span-bar::calc-glyph-name)
2007 (stencil . ,ly:span-bar::print)
2008 (X-extent . ,ly:span-bar::width)
2009 (Y-extent . (+inf.0 . -inf.0))
2010 (meta . ((class . Item)
2011 (interfaces . (bar-line-interface
2013 span-bar-interface))))))
2017 (X-extent . ,(grob::inherit-parent-property
2019 (extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height)
2020 ;; we want this to be ignored, so empty, but the extra spacing height
2021 ;; should preserve the span bar's presence for horizontal spacing
2022 (Y-extent . ,pure-from-neighbor-interface::height-if-pure)
2023 (meta . ((class . Item)
2024 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2025 (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
2026 (interfaces . (pure-from-neighbor-interface))))))
2030 (staff-staff-spacing . ((basic-distance . 9)
2031 (minimum-distance . 7)
2033 (stretchability . 5)))
2034 (staffgroup-staff-spacing . ((basic-distance . 10.5)
2035 (minimum-distance . 8)
2037 (stretchability . 9)))
2038 (meta . ((class . Spanner)
2039 (interfaces . (staff-grouper-interface))))))
2044 (stem-spacing-correction . 0.4)
2045 (meta . ((class . Item)
2046 (interfaces . (spacing-interface
2047 staff-spacing-interface))))))
2052 (ledger-line-thickness . (1.0 . 0.1))
2054 (stencil . ,ly:staff-symbol::print)
2055 (Y-extent . ,(ly:make-unpure-pure-container ly:staff-symbol::height))
2056 (meta . ((class . Spanner)
2057 (interfaces . (staff-symbol-interface))))))
2062 (font-series . bold)
2065 (stencil . ,ly:text-interface::print)
2066 (X-offset . ,ly:side-position-interface::x-aligned-side)
2067 (Y-extent . ,grob::always-Y-extent-from-stencil)
2068 (meta . ((class . Item)
2069 (interfaces . (font-interface
2070 side-position-interface
2071 stanza-number-interface
2072 text-interface))))))
2076 (beamlet-default-length . (1.1 . 1.1))
2077 (beamlet-max-length-proportion . (0.75 . 0.75))
2078 (cross-staff . ,ly:stem::calc-cross-staff)
2079 (default-direction . ,ly:stem::calc-default-direction)
2082 ;; 3.5 (or 3 measured from note head) is standard length
2083 ;; 32nd, 64th, 128th flagged stems should be longer
2084 (lengths . (3.5 3.5 3.5 4.25 5.0 6.0))
2086 ;; FIXME. 3.5 yields too long beams (according to Ross and
2087 ;; looking at Baerenreiter examples) for a number of common
2088 ;; boundary cases. Subtracting half a beam thickness fixes
2089 ;; this, but the bug may well be somewhere else.
2091 ;; FIXME this should come from 'lengths
2092 (beamed-lengths . (3.26 3.5 3.6))
2094 ;; The 'normal' minima
2095 (beamed-minimum-free-lengths . (1.83 1.5 1.25))
2096 ;;(beamed-minimum-free-lengths . (2.0 1.83 1.25))
2098 ;; The 'extreme case' minima
2099 (beamed-extreme-minimum-free-lengths . (2.0 1.25))
2101 ;; Stems in unnatural (forced) direction should be shortened by
2102 ;; one staff space, according to [Roush & Gourlay].
2103 ;; Flagged stems we shorten only half a staff space.
2104 (stem-shorten . (1.0 0.5))
2108 ;; We use the normal minima as minimum for the ideal lengths,
2109 ;; and the extreme minima as abolute minimum length.
2111 (direction . ,ly:stem::calc-direction)
2112 (duration-log . ,stem::calc-duration-log)
2113 (length . ,(ly:make-unpure-pure-container ly:stem::calc-length ly:stem::pure-calc-length))
2114 (neutral-direction . ,DOWN)
2115 (positioning-done . ,ly:stem::calc-positioning-done)
2116 (stem-info . ,ly:stem::calc-stem-info)
2117 (stem-begin-position . ,(ly:make-unpure-pure-container ly:stem::calc-stem-begin-position ly:stem::pure-calc-stem-begin-position))
2118 (stencil . ,ly:stem::print)
2120 (X-extent . ,ly:stem::width)
2121 (X-offset . ,ly:stem::offset-callback)
2122 (Y-extent . ,(ly:make-unpure-pure-container ly:stem::height ly:stem::pure-height))
2123 (Y-offset . ,staff-symbol-referencer::callback)
2124 (meta . ((class . Item)
2125 (interfaces . (stem-interface))))))
2129 (X-extent . ,stem-stub::width)
2130 (extra-spacing-height . ,stem-stub::extra-spacing-height)
2131 (Y-extent . ,(ly:make-unpure-pure-container #f stem-stub::pure-height))
2132 (meta . ((class . Item)
2133 (interfaces . ())))))
2137 (beam-thickness . 0.48) ; staff-space
2138 (beam-width . ,ly:stem-tremolo::calc-width) ; staff-space
2139 (direction . ,ly:stem-tremolo::calc-direction)
2140 (slope . ,ly:stem-tremolo::calc-slope)
2141 (stencil . ,ly:stem-tremolo::print)
2142 (style . ,ly:stem-tremolo::calc-style)
2143 (X-extent . ,ly:stem-tremolo::width)
2144 (Y-extent . ,(grob::unpure-Y-extent-from-stencil ly:stem-tremolo::pure-height))
2145 (X-offset . ,(ly:make-simple-closure
2147 ,(ly:make-simple-closure
2148 (list ly:self-alignment-interface::centered-on-x-parent))
2149 ,(ly:make-simple-closure
2150 (list ly:self-alignment-interface::x-aligned-on-self)))))
2151 (Y-offset . ,(ly:make-unpure-pure-container ly:stem-tremolo::calc-y-offset ly:stem-tremolo::pure-calc-y-offset))
2152 (meta . ((class . Item)
2153 (interfaces . (self-alignment-interface
2154 stem-tremolo-interface))))))
2158 (avoid-slur . around)
2159 (cross-staff . ,script-or-side-position-cross-staff)
2160 (font-encoding . fetaText)
2161 (font-size . -5) ; don't overlap when next to heads.
2163 (script-priority . 100)
2164 (self-alignment-X . ,CENTER)
2165 (self-alignment-Y . ,CENTER)
2166 (staff-padding . 0.5)
2167 (stencil . ,print-circled-text-callback)
2168 (text . ,string-number::calc-text)
2169 (Y-extent . ,grob::always-Y-extent-from-stencil)
2170 (meta . ((class . Item)
2171 (interfaces . (font-interface
2172 self-alignment-interface
2173 side-position-interface
2174 string-number-interface
2176 text-script-interface))))))
2180 (digit-names . #("p" "i" "m" "a" "x"))
2181 (font-shape . italic)
2182 (font-size . -4) ; don't overlap when next to heads.
2184 (script-priority . 100)
2185 (self-alignment-X . ,CENTER)
2186 (self-alignment-Y . ,CENTER)
2187 (staff-padding . 0.5)
2188 (stencil . ,ly:text-interface::print)
2189 (text . ,stroke-finger::calc-text)
2190 (Y-extent . ,grob::always-Y-extent-from-stencil)
2191 (meta . ((class . Item)
2192 (interfaces . (font-interface
2193 self-alignment-interface
2194 side-position-interface
2195 stroke-finger-interface
2197 text-script-interface))))))
2201 (direction . ,RIGHT)
2202 (extra-spacing-width . (+inf.0 . -inf.0))
2203 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
2204 (self-alignment-X . ,CENTER)
2205 (stencil . ,ly:sustain-pedal::print)
2206 (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
2207 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2208 (Y-extent . ,grob::always-Y-extent-from-stencil)
2209 (meta . ((class . Item)
2210 (interfaces . (font-interface
2211 piano-pedal-interface
2212 piano-pedal-script-interface
2213 self-alignment-interface
2214 text-interface))))))
2216 (SustainPedalLineSpanner
2219 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
2221 (minimum-space . 1.0)
2222 (outside-staff-priority . 1000)
2225 (staff-padding . 1.2)
2226 (vertical-skylines . ,grob::always-vertical-skylines-from-element-stencils)
2227 (X-extent . ,ly:axis-group-interface::width)
2228 (Y-extent . ,axis-group-interface::height)
2229 (Y-offset . ,side-position-interface::y-aligned-side)
2230 (meta . ((class . Spanner)
2231 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2232 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2233 (interfaces . (axis-group-interface
2234 piano-pedal-interface
2235 side-position-interface))))))
2239 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2241 (outside-staff-placement-directive . left-to-right-polite)
2242 (skyline-horizontal-padding . 1.0)
2243 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
2244 (X-extent . ,ly:axis-group-interface::width)
2245 (Y-extent . ,(ly:make-unpure-pure-container ly:system::height ly:system::calc-pure-height))
2246 (meta . ((class . System)
2247 (object-callbacks . ((footnotes-before-line-breaking . ,ly:system::footnotes-before-line-breaking)
2248 (footnotes-after-line-breaking . ,ly:system::footnotes-after-line-breaking)
2249 (pure-relevant-grobs . ,ly:system::calc-pure-relevant-grobs)
2250 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2251 (vertical-skyline-elements . ,ly:system::vertical-skyline-elements)
2252 (vertical-alignment . ,ly:system::get-vertical-alignment)))
2253 (interfaces . (axis-group-interface
2254 system-interface))))))
2258 (collapse-height . 5.0)
2262 (padding . -0.1) ;; bar must cover rounded ending of staff line.
2263 (stencil . ,ly:system-start-delimiter::print)
2266 (X-offset . ,ly:side-position-interface::x-aligned-side)
2267 (meta . ((class . Spanner)
2268 (interfaces . (side-position-interface
2269 system-start-delimiter-interface))))))
2273 (collapse-height . 5.0)
2275 (font-encoding . fetaBraces)
2277 (stencil . ,ly:system-start-delimiter::print)
2279 (X-offset . ,ly:side-position-interface::x-aligned-side)
2280 (meta . ((class . Spanner)
2281 (interfaces . (font-interface
2282 side-position-interface
2283 system-start-delimiter-interface))))))
2287 (collapse-height . 5.0)
2290 (stencil . ,ly:system-start-delimiter::print)
2293 (X-offset . ,ly:side-position-interface::x-aligned-side)
2294 (meta . ((class . Spanner)
2295 (interfaces . (font-interface
2296 side-position-interface
2297 system-start-delimiter-interface))))))
2302 (stencil . ,ly:system-start-delimiter::print)
2303 (style . line-bracket)
2305 (X-offset . ,ly:side-position-interface::x-aligned-side)
2306 (meta . ((class . Spanner)
2307 (interfaces . (font-interface
2308 side-position-interface
2309 system-start-delimiter-interface))))))
2314 (details . ((cautionary-properties . ((angularity . 0.4)
2315 (half-thickness . 0.075)
2317 (procedure . ,parenthesize-stencil)
2320 (harmonic-properties . ((angularity . 2)
2321 (half-thickness . 0.075)
2323 (procedure . ,parenthesize-stencil)
2325 (repeat-tied-properties . ((note-head-visible . #t)
2326 (parenthesize . #t)))
2327 (tied-properties . ((break-visibility . ,begin-of-line-visible)
2328 (parenthesize . #t)))))
2330 (direction . ,CENTER)
2331 (duration-log . ,note-head::calc-duration-log)
2332 (font-series . bold)
2334 (stem-attachment . (0.0 . 1.35))
2335 (stencil . ,tab-note-head::print)
2337 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2338 (Y-offset . ,staff-symbol-referencer::callback)
2339 (Y-extent . ,grob::always-Y-extent-from-stencil)
2340 (meta . ((class . Item)
2341 (interfaces . (font-interface
2343 rhythmic-grob-interface
2344 rhythmic-head-interface
2345 staff-symbol-referencer-interface
2346 tab-note-head-interface
2347 text-interface))))))
2351 (avoid-slur . around)
2352 (cross-staff . ,script-or-side-position-cross-staff)
2354 (extra-spacing-width . (+inf.0 . -inf.0))
2355 (outside-staff-horizontal-padding . 0.12)
2356 (outside-staff-priority . 450)
2358 ;; sync with Fingering ?
2361 (script-priority . 200)
2363 (slur-padding . 0.5)
2364 (staff-padding . 0.5)
2365 (stencil . ,ly:text-interface::print)
2366 (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
2367 ;; todo: add X self alignment?
2368 (Y-extent . ,grob::always-Y-extent-from-stencil)
2369 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2370 (Y-offset . ,side-position-interface::y-aligned-side)
2371 (meta . ((class . Item)
2372 (interfaces . (font-interface
2373 instrument-specific-markup-interface
2374 self-alignment-interface
2375 side-position-interface
2377 text-script-interface))))))
2381 (bound-details . ((left . ((Y . 0)
2383 (attach-dir . ,LEFT)
2385 (left-broken . ((attach-dir . ,RIGHT)))
2390 (dash-fraction . 0.2)
2393 (font-shape . italic)
2394 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2395 (outside-staff-priority . 350)
2396 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2398 (staff-padding . 0.8)
2399 (stencil . ,ly:line-spanner::print)
2400 (style . dashed-line)
2401 (Y-offset . ,side-position-interface::y-aligned-side)
2403 (meta . ((class . Spanner)
2404 (interfaces . (font-interface
2406 line-spanner-interface
2407 side-position-interface))))))
2411 (avoid-slur . inside)
2412 (control-points . ,ly:tie::calc-control-points)
2414 ;; for a full list, see tie-details.cc
2416 (center-staff-line-clearance . 0.6)
2417 (tip-staff-line-clearance . 0.45)
2418 (note-head-gap . 0.2)
2420 (height-limit . 1.0)
2421 (horizontal-distance-penalty-factor . 10)
2422 (same-dir-as-stem-penalty . 8)
2423 (min-length-penalty-factor . 26)
2424 (tie-tie-collision-distance . 0.45)
2425 (tie-tie-collision-penalty . 25.0)
2426 (intra-space-threshold . 1.25)
2427 (outer-tie-vertical-distance-symmetry-penalty-factor . 10)
2428 (outer-tie-length-symmetry-penalty-factor . 10)
2429 (vertical-distance-penalty-factor . 7)
2430 (outer-tie-vertical-gap . 0.25)
2431 (multi-tie-region-size . 3)
2432 (single-tie-region-size . 4)
2433 (between-length-limit . 1.0)))
2435 (direction . ,ly:tie::calc-direction)
2437 (line-thickness . 0.8)
2438 (neutral-direction . ,UP)
2439 (springs-and-rods . ,ly:spanner::set-spacing-rods)
2440 (stencil . ,ly:tie::print)
2441 (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
2443 (meta . ((class . Spanner)
2444 (interfaces . (tie-interface))))))
2448 (before-line-breaking . ,ly:tie-column::before-line-breaking)
2449 (positioning-done . ,ly:tie-column::calc-positioning-done)
2452 (meta . ((class . Spanner)
2453 (interfaces . (tie-column-interface))))))
2457 (avoid-slur . inside)
2459 . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
2460 (break-align-symbol . time-signature)
2461 (break-align-anchor-alignment . ,LEFT)
2462 (break-visibility . ,all-visible)
2463 (extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height-including-staff)
2464 (extra-spacing-width . (0.0 . 0.8))
2467 (cue-clef . (extra-space . 1.5))
2468 (first-note . (fixed-space . 2.0))
2469 (right-edge . (extra-space . 0.5))
2470 (staff-bar . (extra-space . 1.0))))
2471 (stencil . ,ly:time-signature::print)
2472 (Y-extent . ,grob::always-Y-extent-from-stencil)
2474 (meta . ((class . Item)
2475 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2476 (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
2477 (interfaces . (break-aligned-interface
2479 pure-from-neighbor-interface
2480 time-signature-interface))))))
2482 (TrillPitchAccidental
2486 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
2489 (stencil . ,ly:accidental-interface::print)
2490 (X-offset . ,ly:side-position-interface::x-aligned-side)
2491 (Y-extent . ,accidental-interface::height)
2492 (meta . ((class . Item)
2493 (interfaces . (accidental-interface
2495 inline-accidental-interface
2496 side-position-interface
2497 trill-pitch-accidental-interface))))))
2502 (direction . ,RIGHT)
2506 (stencil . ,parenthesize-elements)
2507 (stencils . ,parentheses-item::calc-parenthesis-stencils)
2508 (X-offset . ,ly:side-position-interface::x-aligned-side)
2509 (Y-extent . ,grob::always-Y-extent-from-stencil)
2510 (meta . ((class . Item)
2511 (interfaces . (axis-group-interface
2514 parentheses-interface
2515 side-position-interface))))))
2521 (stencil . ,ly:note-head::print)
2522 (Y-offset . ,staff-symbol-referencer::callback)
2523 (Y-extent . ,grob::always-Y-extent-from-stencil)
2524 (meta . ((class . Item)
2525 (interfaces . (font-interface
2527 pitched-trill-interface
2528 rhythmic-head-interface
2529 staff-symbol-referencer-interface))))))
2533 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2534 (bound-details . ((left . ((text . ,(make-musicglyph-markup "scripts.trill"))
2536 (stencil-offset . (-0.5 . -1))
2538 (attach-dir . ,CENTER)
2540 (left-broken . ((end-on-note . #t)))
2544 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2545 (outside-staff-priority . 50)
2547 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2549 (staff-padding . 1.0)
2550 (stencil . ,ly:line-spanner::print)
2552 (Y-offset . ,side-position-interface::y-aligned-side)
2553 (meta . ((class . Spanner)
2554 (interfaces . (font-interface
2556 line-spanner-interface
2557 side-position-interface
2558 trill-spanner-interface))))))
2562 (avoid-scripts . #t)
2563 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
2564 (cross-staff . ,ly:tuplet-bracket::calc-cross-staff)
2565 (direction . ,ly:tuplet-bracket::calc-direction)
2566 (edge-height . (0.7 . 0.7))
2567 (full-length-to-extent . #t)
2569 (positions . ,ly:tuplet-bracket::calc-positions)
2570 (shorten-pair . (-0.2 . -0.2))
2571 (staff-padding . 0.25)
2572 (stencil . ,ly:tuplet-bracket::print)
2574 (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
2575 (X-positions . ,ly:tuplet-bracket::calc-x-positions)
2577 (meta . ((class . Spanner)
2578 (interfaces . (line-interface
2579 tuplet-bracket-interface))))))
2583 (avoid-slur . inside)
2584 (cross-staff . ,ly:tuplet-number::calc-cross-staff)
2585 (direction . ,tuplet-number::calc-direction)
2586 (font-shape . italic)
2588 (stencil . ,ly:tuplet-number::print)
2589 (text . ,tuplet-number::calc-denominator-text)
2590 (X-offset . ,ly:tuplet-number::calc-x-offset)
2591 (Y-offset . ,ly:tuplet-number::calc-y-offset)
2592 (meta . ((class . Spanner)
2593 (interfaces . (font-interface
2595 tuplet-number-interface))))))
2600 (direction . ,RIGHT)
2601 (extra-spacing-width . (+inf.0 . -inf.0))
2602 (font-shape . italic)
2603 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
2604 (self-alignment-X . ,CENTER)
2605 (stencil . ,ly:text-interface::print)
2606 (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
2607 (Y-extent . ,grob::always-Y-extent-from-stencil)
2608 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2609 (meta . ((class . Item)
2610 (interfaces . (font-interface
2611 piano-pedal-script-interface
2612 self-alignment-interface
2613 text-interface))))))
2615 (UnaCordaPedalLineSpanner
2618 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
2620 (minimum-space . 1.0)
2621 (outside-staff-priority . 1000)
2624 (staff-padding . 1.2)
2625 (vertical-skylines . ,grob::always-vertical-skylines-from-element-stencils)
2626 (X-extent . ,ly:axis-group-interface::width)
2627 (Y-extent . ,axis-group-interface::height)
2628 (Y-offset . ,side-position-interface::y-aligned-side)
2629 (meta . ((class . Spanner)
2630 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2631 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2632 (interfaces . (axis-group-interface
2633 piano-pedal-interface
2634 side-position-interface))))))
2640 (stencil . ,ly:vaticana-ligature::print)
2642 (meta . ((class . Spanner)
2643 (interfaces . (font-interface
2644 vaticana-ligature-interface))))))
2649 (positioning-done . ,ly:align-interface::align-to-ideal-distances)
2651 (vertical-skylines . ,ly:axis-group-interface::combine-skylines)
2652 (X-extent . ,ly:axis-group-interface::width)
2653 (Y-extent . ,axis-group-interface::height)
2654 (meta . ((class . Spanner)
2655 (object-callbacks . ((Y-common . ,ly:axis-group-interface::calc-y-common)
2656 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)
2657 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)))
2658 (interfaces . (align-interface
2659 axis-group-interface))))))
2663 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2665 (default-staff-staff-spacing . ((basic-distance . 9)
2666 (minimum-distance . 8)
2668 (nonstaff-unrelatedstaff-spacing . ((padding . 0.5)))
2669 (outside-staff-placement-directive . left-to-right-polite)
2670 (staff-staff-spacing . ,(ly:make-unpure-pure-container ly:axis-group-interface::calc-staff-staff-spacing ly:axis-group-interface::calc-pure-staff-staff-spacing))
2671 (stencil . ,ly:axis-group-interface::print)
2672 (skyline-horizontal-padding . 0.1)
2673 (vertical-skylines . ,ly:hara-kiri-group-spanner::calc-skylines)
2674 (X-extent . ,ly:axis-group-interface::width)
2675 (Y-extent . ,(ly:make-unpure-pure-container ly:hara-kiri-group-spanner::y-extent ly:hara-kiri-group-spanner::pure-height))
2676 (Y-offset . ,ly:hara-kiri-group-spanner::force-hara-kiri-callback)
2677 (meta . ((class . Spanner)
2678 (object-callbacks . (
2679 (X-common . ,ly:axis-group-interface::calc-x-common)
2680 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2681 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2683 (interfaces . (axis-group-interface
2684 hara-kiri-group-spanner-interface))))))
2688 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2689 (bound-details . ((right . ((attach-dir . ,CENTER)
2692 (left . ((attach-dir . ,CENTER)
2698 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2700 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2701 (stencil . ,ly:line-spanner::print)
2705 (meta . ((class . Spanner)
2706 (interfaces . (line-interface
2707 line-spanner-interface))))))
2712 (edge-height . (2.0 . 2.0)) ;; staff-space;
2713 (font-encoding . fetaText)
2715 (shorten-pair . ,ly:volta-bracket::calc-shorten-pair)
2716 (stencil . ,ly:volta-bracket-interface::print)
2717 (thickness . 1.6) ;; line-thickness
2719 (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
2720 (Y-extent . ,(grob::unpure-Y-extent-from-stencil volta-bracket-interface::pure-height))
2721 (meta . ((class . Spanner)
2722 (interfaces . (font-interface
2723 horizontal-bracket-interface
2725 side-position-interface
2727 volta-bracket-interface
2728 volta-interface))))))
2730 (VoltaBracketSpanner
2732 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
2736 (outside-staff-priority . 600)
2739 (vertical-skylines . ,grob::always-vertical-skylines-from-element-stencils)
2740 (X-extent . ,ly:axis-group-interface::width)
2741 (Y-extent . ,axis-group-interface::height)
2742 (Y-offset . ,side-position-interface::y-aligned-side)
2743 (meta . ((class . Spanner)
2744 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2745 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2746 (interfaces . (axis-group-interface
2747 side-position-interface
2748 volta-interface))))))
2752 (define (completize-grob-entry x)
2753 "Transplant assoc key into 'name entry of 'meta of X. Set interfaces for Item, Spanner etc.
2755 ;; (display (car x))
2757 (let* ((name-sym (car x))
2758 (grob-entry (cdr x))
2759 (meta-entry (assoc-get 'meta grob-entry))
2760 (class (assoc-get 'class meta-entry))
2762 (assoc-get 'interfaces meta-entry)))
2766 (set! ifaces-entry (cons 'item-interface ifaces-entry)))
2767 ((eq? 'Spanner class)
2768 (set! ifaces-entry (cons 'spanner-interface ifaces-entry)))
2769 ((eq? 'Paper_column class)
2770 (set! ifaces-entry (cons 'item-interface
2771 (cons 'paper-column-interface ifaces-entry))))
2772 ((eq? 'System class)
2773 (set! ifaces-entry (cons 'system-interface
2774 (cons 'spanner-interface ifaces-entry))))
2776 (ly:warning "Unknown class ~a" class)))
2778 (set! ifaces-entry (uniq-list (sort ifaces-entry symbol<?)))
2779 (set! ifaces-entry (cons 'grob-interface ifaces-entry))
2781 (set! meta-entry (assoc-set! meta-entry 'name name-sym))
2782 (set! meta-entry (assoc-set! meta-entry 'interfaces
2784 (set! grob-entry (assoc-set! grob-entry 'meta meta-entry))
2785 (cons name-sym grob-entry)))
2787 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
2789 ;; (display (map pair? all-grob-descriptions))
2791 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
2794 ;; (display (car x)) (newline)
2796 (set-object-property! (car x) 'translation-type? list?)
2797 (set-object-property! (car x) 'is-grob? #t))
2798 all-grob-descriptions)
2800 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))