1 ;;;; This file is part of LilyPond, the GNU music typesetter.
3 ;;;; Copyright (C) 1998--2010 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?
27 (define-public all-grob-descriptions
31 (alteration . ,accidental-interface::calc-alteration)
33 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
34 (stencil . ,ly:accidental-interface::print)
35 (X-extent . ,ly:accidental-interface::width)
36 (Y-extent . ,ly:accidental-interface::height)
37 (meta . ((class . Item)
38 (interfaces . (accidental-interface
43 (alteration . ,accidental-interface::calc-alteration)
45 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
47 (stencil . ,ly:accidental-interface::print)
48 (Y-extent . ,ly:accidental-interface::height)
49 (meta . ((class . Item)
50 (interfaces . (accidental-interface
56 (positioning-done . ,ly:accidental-placement::calc-positioning-done)
58 ;; this is quite small, but it is very ugly to have
59 ;; accs closer to the previous note than to the next one.
60 (right-padding . 0.15)
62 ;; for horizontally stacked scripts.
63 (script-priority . -100)
65 (X-extent . ,ly:axis-group-interface::width)
66 (meta . ((class . Item)
67 (interfaces . (accidental-placement-interface))))))
71 (alteration . ,accidental-interface::calc-alteration)
74 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
75 (outside-staff-priority . 0)
77 (self-alignment-X . ,CENTER)
79 (staff-padding . 0.25)
80 (stencil . ,ly:accidental-interface::print)
81 (X-extent . ,ly:accidental-interface::width)
82 (X-offset . ,(ly:make-simple-closure
84 ,(ly:make-simple-closure
85 (list ly:self-alignment-interface::centered-on-x-parent))
86 ,(ly:make-simple-closure
87 (list ly:self-alignment-interface::x-aligned-on-self)))))
88 (Y-extent . ,ly:accidental-interface::height)
89 (Y-offset . ,ly:side-position-interface::y-aligned-side)
90 (meta . ((class . Item)
91 (interfaces . (accidental-interface
92 accidental-suggestion-interface
95 self-alignment-interface
96 side-position-interface))))))
101 (break-align-symbol . ambitus)
102 (break-visibility . ,begin-of-line-visible)
105 (clef . (extra-space . 0.5))
106 (key-signature . (extra-space . 0.0))
107 (staff-bar . (extra-space . 0.0))
108 (time-signature . (extra-space . 0.0))
109 (first-note . (fixed-space . 0.0))))
110 (X-extent . ,ly:axis-group-interface::width)
111 (Y-extent . ,ly:axis-group-interface::height)
112 (meta . ((class . Item)
113 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
114 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
115 (interfaces . (ambitus-interface
117 break-aligned-interface))))))
122 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
125 (stencil . ,ly:accidental-interface::print)
126 (X-offset . ,ly:side-position-interface::x-aligned-side)
127 (Y-extent . ,ly:accidental-interface::height)
128 (meta . ((class . Item)
129 (interfaces . (accidental-interface
130 break-aligned-interface
132 side-position-interface))))))
137 (stencil . ,ambitus::print)
139 (X-offset . ,ly:self-alignment-interface::centered-on-x-parent)
140 (meta . ((class . Item)
141 (interfaces . (ambitus-interface
147 (glyph-name . ,note-head::calc-glyph-name)
148 (stencil . ,ly:note-head::print)
149 (Y-offset . ,ly:staff-symbol-referencer::callback)
150 (meta . ((class . Item)
151 (interfaces . (ambitus-interface
155 rhythmic-head-interface
156 staff-symbol-referencer-interface))))))
162 (positions . ,ly:arpeggio::calc-positions)
163 (script-priority . 0)
165 (staff-position . 0.0)
166 (stencil . ,ly:arpeggio::print)
167 (X-extent . ,ly:arpeggio::width)
168 (X-offset . ,ly:side-position-interface::x-aligned-side)
169 (Y-offset . ,ly:staff-symbol-referencer::callback)
170 (meta . ((class . Item)
171 (interfaces . (arpeggio-interface
173 side-position-interface
174 staff-symbol-referencer-interface))))))
178 (stencil . ,ly:balloon-interface::print)
179 (text . ,(grob::calc-property-by-copy 'text))
180 (X-offset . ,(grob::calc-property-by-copy 'X-offset))
181 (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
182 (meta . ((class . Item)
183 (interfaces . (balloon-interface
189 (allow-span-bar . #t)
190 (bar-extent . ,ly:bar-line::calc-bar-extent)
191 (bar-size . ,ly:bar-line::calc-bar-size)
192 (break-align-anchor . ,ly:bar-line::calc-anchor)
193 (break-align-symbol . staff-bar)
194 (break-visibility . ,bar-line::calc-break-visibility)
197 (glyph-name . ,bar-line::calc-glyph-name)
200 ;; Ross. page 151 lists other values, we opt for a leaner look
203 ;; kern should scale with line-thickness too.
206 (hair-thickness . 1.9)
207 (thick-thickness . 6.0)
212 (time-signature . (extra-space . 0.75))
213 (custos . (minimum-space . 2.0))
214 (clef . (minimum-space . 1.0))
215 (key-signature . (extra-space . 1.0))
216 (key-cancellation . (extra-space . 1.0))
217 (first-note . (fixed-space . 1.3))
218 (next-note . (semi-fixed-space . 0.9))
219 (right-edge . (extra-space . 0.0))))
220 (stencil . ,ly:bar-line::print)
221 (meta . ((class . Item)
222 (interfaces . (bar-line-interface
223 break-aligned-interface
228 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
229 ;; want the bar number before the clef at line start.
230 (break-align-symbols . (left-edge staff-bar))
232 (break-visibility . ,begin-of-line-visible)
234 (font-family . roman)
237 (outside-staff-priority . 100)
239 (self-alignment-X . ,RIGHT)
241 (stencil . ,ly:text-interface::print)
242 (X-offset . ,(ly:make-simple-closure
244 ,(ly:make-simple-closure
245 (list ly:break-alignable-interface::self-align-callback))
246 ,(ly:make-simple-closure
247 (list ly:self-alignment-interface::x-aligned-on-self)))))
248 (Y-offset . ,ly:side-position-interface::y-aligned-side)
251 (interfaces . (break-alignable-interface
253 self-alignment-interface
254 side-position-interface
259 (stencil . ,ly:text-interface::print)
260 (meta . ((class . Item)
261 (interfaces . (bass-figure-interface
263 rhythmic-grob-interface
270 (positioning-done . ,ly:align-interface::align-to-minimum-distances)
271 (stacking-dir . ,DOWN)
272 (Y-extent . ,ly:axis-group-interface::height)
273 (meta . ((class . Spanner)
274 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
275 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
276 (interfaces . (align-interface
278 bass-figure-alignment-interface))))))
280 (BassFigureAlignmentPositioning
286 (staff-padding . 1.0)
287 (Y-extent . ,ly:axis-group-interface::height)
288 (Y-offset . ,ly:side-position-interface::y-aligned-side)
289 (meta . ((class . Spanner)
290 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
291 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
292 (interfaces . (axis-group-interface
293 side-position-interface))))))
297 (edge-height . (0.2 . 0.2))
298 (stencil . ,ly:enclosing-bracket::print)
299 (X-extent . ,ly:enclosing-bracket::width)
300 (meta . ((class . Item)
301 (interfaces . (enclosing-bracket-interface))))))
303 (BassFigureContinuation
305 (stencil . ,ly:figured-bass-continuation::print)
306 (Y-offset . ,ly:figured-bass-continuation::center-on-figures)
307 (meta . ((class . Spanner)
308 (interfaces . (figured-bass-continuation-interface))))))
312 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
314 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
315 (Y-extent . ,ly:axis-group-interface::height)
316 (meta . ((class . Spanner)
317 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
318 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
319 (interfaces . (axis-group-interface))))))
324 ;; todo: clean this up a bit: the list is getting
327 (auto-knee-gap . 5.5)
328 (beam-thickness . 0.48) ; in staff-space
330 ;; We have some unreferenced problems here.
332 ;; If we shorten beamed stems less than normal stems (1 staff-space),
333 ;; or high order less than 8th beams, patterns like
334 ;; c''4 [c''8 c''] c''4 [c''16 c]
335 ;; are ugly (different stem lengths).
337 ;; But if we shorten 16th beams as much as 8th beams, a single
338 ;; forced 16th beam looks *very* short.
340 ;; We choose to shorten 8th beams the same as single stems,
341 ;; and high order beams less than 8th beams, so that all
342 ;; isolated shortened beams look nice and a bit shortened,
343 ;; sadly possibly breaking patterns with high order beams.
344 (beamed-stem-shorten . (1.0 0.5 0.25))
346 (beaming . ,ly:beam::calc-beaming)
348 (concaveness . ,ly:beam::calc-concaveness)
349 (cross-staff . ,ly:beam::calc-cross-staff)
353 (secondary-beam-demerit . 10)
354 (stem-length-demerit-factor . 5)
357 (stem-length-limit-penalty . 5000)
358 (damping-direction-penalty . 800)
359 (hint-direction-penalty . 20)
360 (musical-direction-factor . 400)
361 (ideal-slope-factor . 10)
362 (round-to-zero-slope . 0.02)))
363 (direction . ,ly:beam::calc-direction)
365 ;; only for debugging.
366 (font-family . roman)
369 (neutral-direction . ,DOWN)
370 (positions . ,(ly:make-simple-closure
371 (ly:make-simple-closure
372 (list chain-grob-member-functions
374 ly:beam::calc-least-squares-positions
375 ly:beam::slope-damping
376 ly:beam::shift-region-to-valid
380 ;; this is a hack to set stem lengths, if positions is set.
381 (quantized-positions . ,ly:beam::set-stem-lengths)
383 (shorten . ,ly:beam::calc-stem-shorten)
384 (stencil . ,ly:beam::print)
386 (meta . ((class . Spanner)
387 (object-callbacks . ((normal-stems . ,ly:beam::calc-normal-stems)))
388 (interfaces . (beam-interface
390 staff-symbol-referencer-interface
391 unbreakable-spanner-interface))))))
395 (minimum-length . 0.5)
396 (stencil . ,bend::print)
398 (meta . ((class . Spanner)
399 (interfaces . (bend-after-interface
400 spanner-interface))))))
405 (break-align-anchor . ,ly:break-aligned-interface::calc-average-anchor)
406 (break-visibility . ,ly:break-aligned-interface::calc-break-visibility)
407 (X-extent . ,ly:axis-group-interface::width)
408 (meta . ((class . Item)
409 (interfaces . (axis-group-interface
410 break-aligned-interface))))))
415 (break-align-orders . ;; end of line
451 (positioning-done . ,ly:break-alignment-interface::calc-positioning-done)
453 (X-extent . ,ly:axis-group-interface::width)
454 (meta . ((class . Item)
455 (interfaces . (axis-group-interface
456 break-alignment-interface))))))
460 (break-align-symbol . breathing-sign)
461 (break-visibility . ,begin-of-line-invisible)
464 (ambitus . (extra-space . 2.0))
465 (custos . (minimum-space . 1.0))
466 (key-signature . (minimum-space . 1.5))
467 (time-signature . (minimum-space . 1.5))
468 (staff-bar . (minimum-space . 1.5))
469 (clef . (minimum-space . 2.0))
470 (first-note . (fixed-space . 1.0)) ;huh?
471 (right-edge . (extra-space . 0.1))))
472 (stencil . ,ly:text-interface::print)
473 (text . ,(make-musicglyph-markup "scripts.rcomma"))
474 (Y-offset . ,ly:breathing-sign::offset-callback)
475 (meta . ((class . Item)
476 (interfaces . (break-aligned-interface
477 breathing-sign-interface
483 (after-line-breaking . ,ly:chord-name::after-line-breaking)
486 (stencil . ,ly:text-interface::print)
488 (meta . ((class . Item)
489 (interfaces . (chord-name-interface
491 rhythmic-grob-interface
496 (avoid-slur . inside)
497 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
498 (break-align-symbol . clef)
499 (break-visibility . ,begin-of-line-visible)
500 (glyph-name . ,ly:clef::calc-glyph-name)
502 (space-alist . ((ambitus . (extra-space . 2.0))
503 (staff-bar . (extra-space . 0.7))
504 (key-cancellation . (minimum-space . 3.5))
505 (key-signature . (minimum-space . 3.5))
506 (time-signature . (minimum-space . 4.2))
507 (first-note . (minimum-fixed-space . 5.0))
508 (next-note . (extra-space . 0.5))
509 (right-edge . (extra-space . 0.5))))
510 (stencil . ,ly:clef::print)
511 (extra-spacing-height . (-0.5 . 0.5))
512 (Y-offset . ,ly:staff-symbol-referencer::callback)
513 (meta . ((class . Item)
514 (interfaces . (break-aligned-interface
517 staff-symbol-referencer-interface))))))
521 (cross-staff . ,ly:cluster::calc-cross-staff)
522 (minimum-length . 0.0)
524 (springs-and-rods . ,ly:spanner::set-spacing-rods)
525 (stencil . ,ly:cluster::print)
527 (meta . ((class . Spanner)
528 (interfaces . (cluster-interface))))))
530 (ClusterSpannerBeacon
532 (Y-extent . ,ly:cluster-beacon::height)
533 (meta . ((class . Item)
534 (interfaces . (cluster-beacon-interface
535 rhythmic-grob-interface))))))
539 (avoid-slur . outside)
542 (extra-spacing-width . (+inf.0 . -inf.0))
544 (outside-staff-priority . 450)
546 (script-priority . 200)
548 (staff-padding . 0.5)
549 ;; todo: add X self alignment?
550 (stencil . ,ly:text-interface::print)
551 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
552 (Y-offset . ,ly:side-position-interface::y-aligned-side)
553 (meta . ((class . Item)
554 (interfaces . (font-interface
555 side-position-interface
557 text-script-interface))))))
561 (break-align-symbol . custos)
562 (break-visibility . ,end-of-line-visible)
563 (neutral-direction . ,DOWN)
566 (first-note . (minimum-fixed-space . 0.0))
567 (right-edge . (extra-space . 0.1))))
568 (stencil . ,ly:custos::print)
570 (Y-offset . ,ly:staff-symbol-referencer::callback)
571 (meta . ((class . Item)
572 (interfaces . (break-aligned-interface
575 staff-symbol-referencer-interface))))))
581 (positioning-done . ,ly:dot-column::calc-positioning-done)
582 (X-extent . ,ly:axis-group-interface::width)
583 (meta . ((class . Item)
584 (interfaces . (axis-group-interface
585 dot-column-interface))))))
589 (dot-count . ,dots::calc-dot-count)
590 (staff-position . ,dots::calc-staff-position)
591 (stencil . ,ly:dots::print)
592 (extra-spacing-height . (-0.5 . 0.5))
593 (meta . ((class . Item)
594 (interfaces . (dots-interface
596 staff-symbol-referencer-interface))))))
600 (break-align-symbol . staff-bar)
601 (break-visibility . ,begin-of-line-invisible)
602 (dot-negative-kern . 0.75)
603 (font-encoding . fetaMusic)
605 (slash-negative-kern . 1.6)
607 (stencil . ,ly:percent-repeat-item-interface::double-percent)
610 (meta . ((class . Item)
611 (interfaces . (break-aligned-interface
613 percent-repeat-interface
614 percent-repeat-item-interface))))))
616 (DoublePercentRepeatCounter
619 (font-encoding . fetaText)
622 (self-alignment-X . ,CENTER)
624 (staff-padding . 0.25)
625 (stencil . ,ly:text-interface::print)
626 (X-offset . ,(ly:make-simple-closure
628 ,(ly:make-simple-closure
629 (list ly:self-alignment-interface::centered-on-y-parent))
630 ,(ly:make-simple-closure
631 (list ly:self-alignment-interface::x-aligned-on-self)))))
632 (Y-offset . ,ly:side-position-interface::y-aligned-side)
633 (meta . ((class . Item)
634 (interfaces . (font-interface
635 percent-repeat-interface
636 percent-repeat-item-interface
637 self-alignment-interface
638 side-position-interface
644 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
646 (minimum-space . 1.2)
647 (outside-staff-priority . 250)
651 (staff-padding . 0.1)
652 (X-extent . ,ly:axis-group-interface::width)
653 (Y-extent . ,ly:axis-group-interface::height)
654 (Y-offset . ,ly:side-position-interface::y-aligned-side)
655 (meta . ((class . Spanner)
656 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
657 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
658 (interfaces . (axis-group-interface
660 dynamic-line-spanner-interface
661 side-position-interface))))))
668 (direction . ,ly:script-interface::calc-direction)
669 (extra-spacing-width . (+inf.0 . -inf.0))
670 (font-encoding . fetaText)
672 (font-shape . italic)
673 (outside-staff-priority . 250)
674 (positioning-done . ,ly:script-interface::calc-positioning-done)
675 (right-padding . 0.5)
676 (self-alignment-X . ,CENTER)
677 (self-alignment-Y . ,CENTER)
678 (stencil . ,ly:text-interface::print)
679 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
680 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
681 (meta . ((class . Item)
682 (interfaces . (dynamic-interface
683 dynamic-text-interface
686 self-alignment-interface
691 (before-line-breaking . ,dynamic-text-spanner::before-line-breaking)
692 (bound-details . ((right . ((attach-dir . ,LEFT)
696 (right-broken . ((attach-dir . ,RIGHT)
700 (left . ((attach-dir . ,LEFT)
702 (stencil-offset . (-0.75 . -0.5))
705 (left-broken . ((attach-dir . ,RIGHT)
708 (dash-fraction . 0.2)
711 ;; rather ugh with NCSB
712 ;; (font-series . bold)
713 (font-shape . italic)
715 ;; need to blend with dynamic texts.
718 (left-bound-info . ,ly:line-spanner::calc-left-bound-info-and-text)
720 ;; make sure the spanner doesn't get too close to notes
721 (minimum-Y-extent . (-1 . 1))
723 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
724 (stencil . ,ly:line-spanner::print)
725 (style . dashed-line)
726 (meta . ((class . Spanner)
727 (interfaces . (dynamic-interface
728 dynamic-text-spanner-interface
731 line-spanner-interface
738 (bound-details . ((left . ((Y . 0)
744 (attach-dir . ,RIGHT)
748 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
749 (quantize-position . #t)
750 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
752 (stencil . ,ly:line-spanner::print)
754 (Y-offset . ,ly:side-position-interface::y-aligned-side)
755 (meta . ((class . Spanner)
756 (interfaces . (episema-interface
759 line-spanner-interface
760 side-position-interface))))))
766 ;; sync with TextScript (?)
768 (avoid-slur . around)
769 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
770 (direction . ,ly:script-interface::calc-direction)
771 (font-encoding . fetaText)
772 (font-size . -5) ; don't overlap when next to heads.
774 (positioning-done . ,ly:script-interface::calc-positioning-done)
775 (script-priority . 100)
776 (self-alignment-X . ,CENTER)
777 (self-alignment-Y . ,CENTER)
779 (staff-padding . 0.5)
780 (stencil . ,ly:text-interface::print)
781 (text . ,fingering::calc-text)
782 (meta . ((class . Item)
783 (interfaces . (finger-interface
785 self-alignment-interface
786 side-position-interface
788 text-script-interface))))))
792 (after-line-breaking . ,ly:chord-name::after-line-breaking)
793 (fret-diagram-details . ((finger-code . below-string)))
794 (stencil . ,fret-board::calc-stencil)
795 (meta . ((class . Item)
796 (interfaces . (chord-name-interface
798 fret-diagram-interface
799 rhythmic-grob-interface))))))
804 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
805 (bound-details . ((right . ((attach-dir . ,CENTER)
808 (left . ((attach-dir . ,CENTER)
813 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
814 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
815 (stencil . ,ly:line-spanner::print)
819 (zigzag-width . 0.75)
820 (meta . ((class . Spanner)
821 (interfaces . (glissando-interface
823 line-spanner-interface
824 unbreakable-spanner-interface))))))
828 (common-shortest-duration . ,grace-spacing::calc-shortest-duration)
829 (shortest-duration-space . 1.6)
830 (spacing-increment . 0.8)
831 (meta . ((class . Spanner)
832 (interfaces . (grace-spacing-interface
833 spacing-options-interface
834 spanner-interface))))))
839 (self-alignment-X . ,CENTER)
840 (stencil . ,ly:grid-line-interface::print)
841 (X-extent . ,ly:grid-line-interface::width)
842 (X-offset . ,(ly:make-simple-closure
844 ,(ly:make-simple-closure
845 (list ly:self-alignment-interface::centered-on-x-parent))
846 ,(ly:make-simple-closure
847 (list ly:self-alignment-interface::x-aligned-on-self)))))
848 (meta . ((class . Item)
849 (interfaces . (grid-line-interface
850 self-alignment-interface))))))
856 (meta . ((class . Item)
857 (interfaces . (grid-point-interface))))))
862 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
863 (bound-padding . 1.0)
865 (grow-direction . ,hairpin::calc-grow-direction)
867 (minimum-length . 2.0)
868 (self-alignment-Y . ,CENTER)
869 (springs-and-rods . ,ly:spanner::set-spacing-rods)
870 (stencil . ,ly:hairpin::print)
873 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
874 (meta . ((class . Spanner)
875 (interfaces . (dynamic-interface
878 self-alignment-interface
879 spanner-interface))))))
883 (bracket-flare . (0.5 . 0.5))
884 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
888 (staff-padding . 0.2)
889 (stencil . ,ly:horizontal-bracket::print)
891 (Y-offset . ,ly:side-position-interface::y-aligned-side)
892 (meta . ((class . Spanner)
893 (interfaces . (horizontal-bracket-interface
895 side-position-interface
896 spanner-interface))))))
903 (self-alignment-X . ,CENTER)
904 (self-alignment-Y . ,CENTER)
905 (stencil . ,system-start-text::print)
906 (X-offset . ,system-start-text::calc-x-offset)
907 (Y-offset . ,system-start-text::calc-y-offset)
908 (meta . ((class . Spanner)
909 (interfaces . (font-interface
910 self-alignment-interface
911 side-position-interface
912 system-start-text-interface))))))
917 (extra-spacing-width . (+inf.0 . -inf.0))
918 (outside-staff-priority . 500)
920 (self-alignment-X . ,LEFT)
922 (staff-padding . 0.5)
923 (stencil . ,ly:text-interface::print)
924 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
925 (Y-offset . ,ly:side-position-interface::y-aligned-side)
926 (meta . ((class . Item)
927 (interfaces . (font-interface
928 self-alignment-interface
929 side-position-interface
935 (break-align-symbol . key-cancellation)
936 (break-visibility . ,begin-of-line-invisible)
937 (glyph-name-alist . ,cancellation-glyph-name-alist)
940 (time-signature . (extra-space . 1.25))
941 (staff-bar . (extra-space . 0.6))
942 (key-signature . (extra-space . 0.5))
943 (right-edge . (extra-space . 0.5))
944 (first-note . (fixed-space . 2.5))))
945 (stencil . ,ly:key-signature-interface::print)
946 (Y-offset . ,ly:staff-symbol-referencer::callback)
947 (meta . ((class . Item)
948 (interfaces . (break-aligned-interface
950 key-cancellation-interface
951 key-signature-interface
952 staff-symbol-referencer-interface))))))
956 (avoid-slur . inside)
957 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
958 (break-align-symbol . key-signature)
959 (break-visibility . ,begin-of-line-visible)
960 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
963 (time-signature . (extra-space . 1.15))
964 (staff-bar . (extra-space . 1.1))
965 (right-edge . (extra-space . 0.5))
966 (first-note . (fixed-space . 2.5))))
967 (stencil . ,ly:key-signature-interface::print)
968 (Y-offset . ,ly:staff-symbol-referencer::callback)
969 (meta . ((class . Item)
970 (interfaces . (break-aligned-interface
972 key-signature-interface
973 staff-symbol-referencer-interface))))))
978 (control-points . ,ly:semi-tie::calc-control-points)
979 (details . ((ratio . 0.333)
980 (height-limit . 1.0)))
981 (direction . ,ly:tie::calc-direction)
982 (head-direction . ,LEFT)
983 (stencil . ,laissez-vibrer::print)
985 (extra-spacing-height . (-0.5 . 0.5))
986 (meta . ((class . Item)
987 (interfaces . (semi-tie-interface))))))
989 (LaissezVibrerTieColumn
991 (head-direction . ,ly:semi-tie-column::calc-head-direction)
992 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
995 (meta . ((class . Item)
996 (interfaces . (semi-tie-column-interface))))))
1001 (length-fraction . 0.25)
1002 (minimum-length-fraction . 0.25)
1003 (springs-and-rods . ,ly:ledger-line-spanner::set-spacing-rods)
1004 (stencil . ,ly:ledger-line-spanner::print)
1007 (meta . ((class . Spanner)
1008 (interfaces . (ledger-line-spanner-interface))))))
1012 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1013 (break-align-symbol . left-edge)
1014 (break-visibility . ,center-invisible)
1017 (custos . (extra-space . 0.0))
1018 (ambitus . (extra-space . 2.0))
1019 (time-signature . (extra-space . 1.0))
1020 (staff-bar . (extra-space . 0.0))
1021 (breathing-sign . (minimum-space . 0.0))
1022 (clef . (extra-space . 0.8))
1023 (first-note . (fixed-space . 2.0))
1024 (right-edge . (extra-space . 0.0))
1025 (key-signature . (extra-space . 0.8))
1026 (key-cancellation . (extra-space . 0.0))
1028 (X-extent . (0 . 0))
1029 (meta . ((class . Item)
1030 (interfaces . (break-aligned-interface))))))
1034 ;; ugh. A ligature bracket is totally different from
1035 ;; a tuplet bracket.
1037 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
1038 (control-points . ,ly:tuplet-bracket::calc-control-points)
1040 (edge-height . (0.7 . 0.7))
1042 (positions . ,ly:tuplet-bracket::calc-positions)
1043 (shorten-pair . (-0.2 . -0.2))
1044 (staff-padding . 0.25)
1045 (stencil . ,ly:tuplet-bracket::print)
1047 (meta . ((class . Spanner)
1048 (interfaces . (line-interface
1049 tuplet-bracket-interface))))))
1053 (minimum-length . 1.5)
1054 (stencil . ,ly:lyric-extender::print)
1055 (thickness . 0.8) ; line-thickness
1056 (Y-extent . (0 . 0))
1057 (meta . ((class . Spanner)
1058 (interfaces . (lyric-extender-interface
1059 lyric-interface))))))
1063 (dash-period . 10.0)
1066 (minimum-distance . 0.1)
1067 (minimum-length . 0.3)
1069 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1070 (stencil . ,ly:lyric-hyphen::print)
1072 (Y-extent . (0 . 0))
1073 (meta . ((class . Spanner)
1074 (interfaces . (font-interface
1075 lyric-hyphen-interface
1077 spanner-interface))))))
1081 (minimum-distance . 0.45)
1083 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1086 (meta . ((class . Spanner)
1087 (interfaces . (lyric-hyphen-interface
1088 spanner-interface))))))
1092 (extra-spacing-width . (0.0 . 0.0))
1093 (font-series . medium)
1095 (self-alignment-X . ,CENTER)
1096 (stencil . ,lyric-text::print)
1097 (text . ,(grob::calc-property-by-copy 'text))
1099 (X-offset . ,ly:self-alignment-interface::aligned-on-x-parent)
1100 (meta . ((class . Item)
1101 (interfaces . (font-interface
1102 lyric-syllable-interface
1103 rhythmic-grob-interface
1104 self-alignment-interface
1105 text-interface))))))
1115 (stencil . ,ly:measure-grouping::print)
1117 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1118 (meta . ((class . Spanner)
1119 (interfaces . (measure-grouping-interface
1120 side-position-interface))))))
1124 (neutral-direction . ,DOWN)
1125 (meta . ((class . Item)
1126 (interfaces . (melody-spanner-interface))))))
1131 (stencil . ,ly:mensural-ligature::print)
1133 (meta . ((class . Spanner)
1134 (interfaces . (font-interface
1135 mensural-ligature-interface))))))
1139 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1140 (break-visibility . ,end-of-line-invisible)
1142 (extra-spacing-width . (+inf.0 . -inf.0))
1143 (outside-staff-priority . 1000)
1146 (stencil . ,ly:text-interface::print)
1147 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1148 (X-offset . ,(ly:make-simple-closure
1150 ,(ly:make-simple-closure
1151 (list ly:break-alignable-interface::self-align-callback))
1152 ,(ly:make-simple-closure
1153 (list ly:self-alignment-interface::x-aligned-on-self)))))
1154 (self-alignment-X . ,LEFT)
1155 (break-align-symbols . (time-signature))
1156 (non-break-align-symbols . (multi-measure-rest-interface))
1158 (meta . ((class . Item)
1159 (interfaces . (break-alignable-interface
1161 metronome-mark-interface
1162 self-alignment-interface
1163 side-position-interface
1164 text-interface))))))
1169 (hair-thickness . 2.0)
1171 (spacing-pair . (break-alignment . break-alignment))
1172 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1173 (staff-position . 0)
1174 (stencil . ,ly:multi-measure-rest::print)
1175 (thick-thickness . 6.6)
1176 (Y-offset . ,ly:staff-symbol-referencer::callback)
1177 (meta . ((class . Spanner)
1178 (interfaces . (font-interface
1179 multi-measure-interface
1180 multi-measure-rest-interface
1182 staff-symbol-referencer-interface))))))
1184 (MultiMeasureRestNumber
1186 (bound-padding . 2.0)
1188 (font-encoding . fetaText)
1190 (self-alignment-X . ,CENTER)
1192 (springs-and-rods . ,ly:multi-measure-rest::set-text-rods)
1193 (staff-padding . 0.4)
1194 (stencil . ,ly:text-interface::print)
1195 (X-offset . ,(ly:make-simple-closure
1197 ,(ly:make-simple-closure
1198 (list ly:self-alignment-interface::x-aligned-on-self))
1199 ,(ly:make-simple-closure
1200 (list ly:self-alignment-interface::x-centered-on-y-parent)))))
1201 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1202 (meta . ((class . Spanner)
1203 (interfaces . (font-interface
1204 multi-measure-interface
1205 self-alignment-interface
1206 side-position-interface
1207 text-interface))))))
1209 (MultiMeasureRestText
1212 (outside-staff-priority . 450)
1214 (self-alignment-X . ,CENTER)
1215 (staff-padding . 0.25)
1216 (stencil . ,ly:text-interface::print)
1217 (X-offset . ,(ly:make-simple-closure
1219 ,(ly:make-simple-closure
1220 (list ly:self-alignment-interface::x-centered-on-y-parent))
1221 ,(ly:make-simple-closure
1222 (list ly:self-alignment-interface::x-aligned-on-self)))))
1223 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1224 (meta . ((class . Spanner)
1225 (interfaces . (font-interface
1226 multi-measure-interface
1227 self-alignment-interface
1228 side-position-interface
1229 text-interface))))))
1232 (NonMusicalPaperColumn
1234 (allow-loose-spacing . #t)
1236 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1237 (full-measure-extra-space . 1.0)
1238 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1239 ;; (stencil . ,ly:paper-column::print)
1241 (line-break-permission . allow)
1243 (page-break-permission . allow)
1245 ;; debugging stuff: print column number.
1246 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1248 (X-extent . ,ly:axis-group-interface::width)
1249 (meta . ((class . Paper_column)
1250 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1251 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1252 (interfaces . (axis-group-interface
1254 paper-column-interface
1255 separation-item-interface
1256 spaceable-grob-interface))))))
1261 (positioning-done . ,ly:note-collision-interface::calc-positioning-done)
1262 (prefer-dotted-right . #t)
1263 (X-extent . ,ly:axis-group-interface::width)
1264 (Y-extent . ,ly:axis-group-interface::height)
1265 (meta . ((class . Item)
1266 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1267 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1268 (interfaces . (axis-group-interface
1269 note-collision-interface))))))
1274 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1275 (X-extent . ,ly:axis-group-interface::width)
1276 (Y-extent . ,ly:axis-group-interface::height)
1277 (meta . ((class . Item)
1278 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1279 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1280 (interfaces . (axis-group-interface
1281 note-column-interface
1282 separation-item-interface))))))
1286 (duration-log . ,note-head::calc-duration-log)
1287 (extra-spacing-height . ,ly:note-head::include-ledger-line-height)
1288 (glyph-name . ,note-head::calc-glyph-name)
1289 (stem-attachment . ,ly:note-head::calc-stem-attachment)
1290 (stencil . ,ly:note-head::print)
1291 (X-offset . ,ly:note-head::stem-x-shift)
1292 (Y-offset . ,ly:staff-symbol-referencer::callback)
1293 (meta . ((class . Item)
1294 (interfaces . (font-interface
1295 gregorian-ligature-interface
1297 mensural-ligature-interface
1299 rhythmic-grob-interface
1300 rhythmic-head-interface
1301 staff-symbol-referencer-interface
1302 vaticana-ligature-interface))))))
1306 (stencil . ,ly:text-interface::print)
1307 (meta . ((class . Item)
1308 (interfaces . (font-interface
1310 text-interface))))))
1314 ;; Changed this from 0.75.
1315 ;; If you ever change this back, please document! --hwn
1316 (knee-spacing-correction . 1.0)
1317 (same-direction-correction . 0.25)
1318 (space-to-barline . #t)
1319 (stem-spacing-correction . 0.5)
1320 (meta . ((class . Item)
1321 (interfaces . (note-spacing-interface
1322 spacing-interface))))))
1327 (break-visibility . ,begin-of-line-visible)
1328 (font-shape . italic)
1330 (self-alignment-X . ,CENTER)
1331 (staff-padding . 0.2)
1332 (stencil . ,ly:text-interface::print)
1333 (X-offset . ,(ly:make-simple-closure
1335 ,(ly:make-simple-closure
1336 (list ly:self-alignment-interface::x-aligned-on-self))
1337 ,(ly:make-simple-closure
1338 (list ly:self-alignment-interface::centered-on-x-parent)))))
1339 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1340 (meta . ((class . Item)
1341 (interfaces . (font-interface
1342 self-alignment-interface
1343 side-position-interface
1344 text-interface))))))
1348 (dash-fraction . 0.3)
1350 (edge-height . (0 . 1.2))
1351 (font-shape . italic)
1352 (minimum-length . 1.0)
1353 (outside-staff-priority . 400)
1355 (shorten-pair . (0.0 . -0.6))
1356 (staff-padding . 1.0)
1357 (stencil . ,ly:ottava-bracket::print)
1358 (style . dashed-line)
1359 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1360 (meta . ((class . Spanner)
1361 (interfaces . (font-interface
1362 horizontal-bracket-interface
1364 ottava-bracket-interface
1365 side-position-interface
1366 text-interface))))))
1371 (allow-loose-spacing . #t)
1373 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1374 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1375 ;; (stencil . ,ly:paper-column::print)
1376 (X-extent . ,ly:axis-group-interface::width)
1379 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1380 (meta . ((class . Paper_column)
1381 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1382 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1383 (interfaces . (axis-group-interface
1385 paper-column-interface
1386 separation-item-interface
1387 spaceable-grob-interface))))))
1393 (stencil . ,parentheses-item::print)
1394 (stencils . ,parentheses-item::calc-parenthesis-stencils)
1395 (meta . ((class . Item)
1396 (interfaces . (font-interface
1397 parentheses-interface))))))
1401 (dot-negative-kern . 0.75)
1402 (font-encoding . fetaMusic)
1404 (spacing-pair . (break-alignment . staff-bar))
1405 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1406 (stencil . ,ly:multi-measure-rest::percent)
1408 (meta . ((class . Spanner)
1409 (interfaces . (font-interface
1410 multi-measure-rest-interface
1411 percent-repeat-interface))))))
1413 (PercentRepeatCounter
1416 (font-encoding . fetaText)
1419 (self-alignment-X . ,CENTER)
1420 (staff-padding . 0.25)
1421 (stencil . ,ly:text-interface::print)
1422 (X-offset . ,(ly:make-simple-closure
1424 ,(ly:make-simple-closure
1425 (list ly:self-alignment-interface::x-centered-on-y-parent))
1426 ,(ly:make-simple-closure
1427 (list ly:self-alignment-interface::x-aligned-on-self)))))
1428 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1429 (meta . ((class . Spanner)
1430 (interfaces . (font-interface
1431 percent-repeat-interface
1432 self-alignment-interface
1433 side-position-interface
1434 text-interface))))))
1438 (control-points . ,ly:slur::calc-control-points)
1439 (cross-staff . ,ly:slur::calc-cross-staff)
1440 (details . ,default-slur-details)
1441 (direction . ,ly:slur::calc-direction)
1442 (height-limit . 2.0)
1443 (minimum-length . 1.5)
1445 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1446 (stencil . ,ly:slur::print)
1448 (Y-extent . ,ly:slur::height)
1449 (meta . ((class . Spanner)
1450 (interfaces . (slur-interface))))))
1452 ;; an example of a text spanner
1455 (bound-padding . 1.0)
1456 (bracket-flare . (0.5 . 0.5))
1458 (edge-height . (1.0 . 1.0))
1459 (shorten-pair . (0.0 . 0.0))
1460 (stencil . ,ly:piano-pedal-bracket::print)
1463 (meta . ((class . Spanner)
1464 (interfaces . (line-interface
1465 piano-pedal-bracket-interface
1466 piano-pedal-interface))))))
1471 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1473 (break-align-symbols . (staff-bar clef))
1474 (break-visibility . ,end-of-line-invisible)
1476 (extra-spacing-width . (+inf.0 . -inf.0))
1479 (outside-staff-priority . 1500)
1481 (self-alignment-X . ,CENTER)
1482 (stencil . ,ly:text-interface::print)
1483 (X-offset . ,(ly:make-simple-closure
1485 ,(ly:make-simple-closure
1486 (list ly:break-alignable-interface::self-align-callback))
1487 ,(ly:make-simple-closure
1488 (list ly:self-alignment-interface::x-aligned-on-self)))))
1489 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1490 (meta . ((class . Item)
1491 (interfaces . (break-alignable-interface
1494 self-alignment-interface
1495 side-position-interface
1496 text-interface))))))
1501 (stencil . ,ly:percent-repeat-item-interface::beat-slash)
1503 (meta . ((class . Item)
1504 (interfaces . (percent-repeat-interface
1505 percent-repeat-item-interface
1506 rhythmic-grob-interface))))))
1510 (control-points . ,ly:semi-tie::calc-control-points)
1511 (details . ((ratio . 0.333)
1512 (height-limit . 1.0)))
1513 (direction . ,ly:tie::calc-direction)
1514 (head-direction . ,RIGHT)
1515 (stencil . ,ly:tie::print)
1517 (extra-spacing-height . (-0.5 . 0.5))
1518 (meta . ((class . Item)
1519 (interfaces . (semi-tie-interface))))))
1523 (direction . ,ly:tie::calc-direction)
1524 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1525 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1528 (meta . ((class . Item)
1529 (interfaces . (semi-tie-column-interface))))))
1533 (cross-staff . ,ly:rest::calc-cross-staff)
1534 (duration-log . ,stem::calc-duration-log)
1535 (minimum-distance . 0.25)
1536 (stencil . ,ly:rest::print)
1537 (X-extent . ,ly:rest::width)
1538 (Y-extent . ,ly:rest::height)
1539 (Y-offset . ,ly:rest::y-offset-callback)
1540 (meta . ((class . Item)
1541 (interfaces . (font-interface
1543 rhythmic-grob-interface
1544 rhythmic-head-interface
1545 staff-symbol-referencer-interface))))))
1549 (minimum-distance . 0.75)
1550 (positioning-done . ,ly:rest-collision::calc-positioning-done)
1551 (meta . ((class . Item)
1552 (interfaces . (rest-collision-interface))))))
1557 (add-stem-support . #t)
1558 (cross-staff . ,ly:script-interface::calc-cross-staff)
1559 (direction . ,ly:script-interface::calc-direction)
1560 (font-encoding . fetaMusic)
1561 (positioning-done . ,ly:script-interface::calc-positioning-done)
1564 ;; padding set in script definitions.
1565 (staff-padding . 0.25)
1567 (stencil . ,ly:script-interface::print)
1568 (X-offset . ,script-interface::calc-x-offset)
1569 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1570 (meta . ((class . Item)
1571 (interfaces . (font-interface
1573 side-position-interface))))))
1577 (before-line-breaking . ,ly:script-column::before-line-breaking)
1578 (meta . ((class . Item)
1579 (interfaces . (script-column-interface))))))
1583 (before-line-breaking . ,ly:script-column::row-before-line-breaking)
1584 (meta . ((class . Item)
1585 (interfaces . (script-column-interface))))))
1589 (avoid-slur . inside)
1590 (control-points . ,ly:slur::calc-control-points)
1591 (cross-staff . ,ly:slur::calc-cross-staff)
1592 (details . ,default-slur-details)
1593 (direction . ,ly:slur::calc-direction)
1594 (height-limit . 2.0)
1595 (line-thickness . 0.8)
1596 (minimum-length . 1.5)
1598 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1599 (stencil . ,ly:slur::print)
1601 (Y-extent . ,ly:slur::height)
1602 (meta . ((class . Spanner)
1603 (interfaces . (slur-interface))))))
1607 (direction . ,RIGHT)
1608 (extra-spacing-width . (+inf.0 . -inf.0))
1609 (font-shape . italic)
1610 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
1611 (self-alignment-X . ,CENTER)
1612 (stencil . ,ly:text-interface::print)
1613 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1614 (meta . ((class . Item)
1615 (interfaces . (font-interface
1616 piano-pedal-script-interface
1617 self-alignment-interface
1618 text-interface))))))
1620 (SostenutoPedalLineSpanner
1624 (minimum-space . 1.0)
1625 (outside-staff-priority . 1000)
1628 (staff-padding . 1.0)
1629 (X-extent . ,ly:axis-group-interface::width)
1630 (Y-extent . ,ly:axis-group-interface::height)
1631 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1632 (meta . ((class . Spanner)
1633 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1634 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1635 (interfaces . (axis-group-interface
1636 piano-pedal-interface
1637 side-position-interface))))))
1641 (average-spacing-wishes . #t)
1642 (base-shortest-duration . ,(ly:make-moment 3 16))
1643 (common-shortest-duration . ,ly:spacing-spanner::calc-common-shortest-duration)
1644 (shortest-duration-space . 2.0)
1645 (spacing-increment . 1.2)
1646 (springs-and-rods . ,ly:spacing-spanner::set-springs)
1647 (meta . ((class . Spanner)
1648 (interfaces . (spacing-options-interface
1649 spacing-spanner-interface))))))
1653 (allow-span-bar . #t)
1654 (bar-extent . ,ly:axis-group-interface::height)
1655 (bar-size . ,ly:span-bar::calc-bar-size)
1656 (before-line-breaking . ,ly:span-bar::before-line-breaking)
1657 (break-align-symbol . staff-bar)
1659 (glyph-name . ,ly:span-bar::calc-glyph-name)
1661 ;; ugh duplication! (these 4 properties were copied from Barline)
1663 ;; Ross. page 151 lists other values, we opt for a leaner look
1667 (hair-thickness . 1.6)
1668 (thick-thickness . 6.0)
1672 (stencil . ,ly:span-bar::print)
1673 (X-extent . ,ly:span-bar::width)
1674 (Y-extent . ,ly:axis-group-interface::height)
1675 (meta . ((class . Item)
1676 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1677 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1678 (interfaces . (bar-line-interface
1680 span-bar-interface))))))
1684 (staff-staff-spacing . ((basic-distance . 9)
1685 (minimum-distance . 7)
1687 (stretchability . 5)))
1688 (staffgroup-staff-spacing . ((basic-distance . 10.5)
1689 (minimum-distance . 8)
1691 (stretchability . 9)))
1692 (meta . ((class . Spanner)
1693 (interfaces . (staff-grouper-interface))))))
1698 (stem-spacing-correction . 0.4)
1699 (meta . ((class . Item)
1700 (interfaces . (spacing-interface
1701 staff-spacing-interface))))))
1706 (ledger-line-thickness . (1.0 . 0.1))
1708 (stencil . ,ly:staff-symbol::print)
1709 (Y-extent . ,ly:staff-symbol::height)
1710 (meta . ((class . Spanner)
1711 (interfaces . (staff-symbol-interface))))))
1716 (font-series . bold)
1719 (stencil . ,ly:text-interface::print)
1720 (X-offset . ,ly:side-position-interface::x-aligned-side)
1721 (meta . ((class . Item)
1722 (interfaces . (font-interface
1723 side-position-interface
1724 stanza-number-interface
1725 text-interface))))))
1729 (beamlet-default-length . (1.1 . 1.1))
1730 (beamlet-max-length-proportion . (0.75 . 0.75))
1731 (cross-staff . ,ly:stem::calc-cross-staff)
1732 (default-direction . ,ly:stem::calc-default-direction)
1735 ;; 3.5 (or 3 measured from note head) is standard length
1736 ;; 32nd, 64th, 128th flagged stems should be longer
1737 (lengths . (3.5 3.5 3.5 4.5 5.0 6.0))
1739 ;; FIXME. 3.5 yields too long beams (according to Ross and
1740 ;; looking at Baerenreiter examples) for a number of common
1741 ;; boundary cases. Subtracting half a beam thickness fixes
1742 ;; this, but the bug may well be somewhere else.
1744 ;; FIXME this should come from 'lengths
1745 (beamed-lengths . (3.26 3.5 3.6))
1747 ;; The 'normal' minima
1748 (beamed-minimum-free-lengths . (1.83 1.5 1.25))
1749 ;(beamed-minimum-free-lengths . (2.0 1.83 1.25))
1751 ;; The 'extreme case' minima
1752 (beamed-extreme-minimum-free-lengths . (2.0 1.25))
1754 ;; Stems in unnatural (forced) direction should be shortened by
1755 ;; one staff space, according to [Roush & Gourlay].
1756 ;; Flagged stems we shorten only half a staff space.
1757 (stem-shorten . (1.0 0.5))
1761 ;; We use the normal minima as minimum for the ideal lengths,
1762 ;; and the extreme minima as abolute minimum length.
1764 (direction . ,ly:stem::calc-direction)
1765 (duration-log . ,stem::calc-duration-log)
1766 (flag . ,ly:stem::calc-flag)
1767 (length . ,ly:stem::calc-length)
1768 (neutral-direction . ,DOWN)
1769 (positioning-done . ,ly:stem::calc-positioning-done)
1770 (stem-end-position . ,ly:stem::calc-stem-end-position)
1771 (stem-info . ,ly:stem::calc-stem-info)
1772 (stencil . ,ly:stem::print)
1774 (X-extent . ,ly:stem::width)
1775 (X-offset . ,ly:stem::offset-callback)
1776 (Y-extent . ,ly:stem::height)
1777 (Y-offset . ,ly:staff-symbol-referencer::callback)
1778 (meta . ((class . Item)
1779 (interfaces . (font-interface
1780 stem-interface))))))
1784 (beam-thickness . 0.48) ; staff-space
1785 (beam-width . ,ly:stem-tremolo::calc-width) ; staff-space
1786 (slope . ,ly:stem-tremolo::calc-slope)
1787 (stencil . ,ly:stem-tremolo::print)
1788 (style . ,ly:stem-tremolo::calc-style)
1789 (X-extent . ,ly:stem-tremolo::width)
1790 (Y-extent . ,ly:stem-tremolo::height)
1791 (meta . ((class . Item)
1792 (interfaces . (stem-tremolo-interface))))))
1796 (avoid-slur . around)
1797 (font-encoding . fetaText)
1798 (font-size . -5) ; don't overlap when next to heads.
1800 (script-priority . 100)
1801 (self-alignment-X . ,CENTER)
1802 (self-alignment-Y . ,CENTER)
1803 (staff-padding . 0.5)
1804 (stencil . ,print-circled-text-callback)
1805 (text . ,string-number::calc-text)
1806 (meta . ((class . Item)
1807 (interfaces . (font-interface
1808 self-alignment-interface
1809 side-position-interface
1810 string-number-interface
1812 text-script-interface))))))
1816 (digit-names . #("p" "i" "m" "a" "x"))
1817 (font-shape . italic)
1818 (font-size . -4) ; don't overlap when next to heads.
1820 (script-priority . 100)
1821 (self-alignment-X . ,CENTER)
1822 (self-alignment-Y . ,CENTER)
1823 (staff-padding . 0.5)
1824 (stencil . ,ly:text-interface::print)
1825 (text . ,stroke-finger::calc-text)
1826 (meta . ((class . Item)
1827 (interfaces . (font-interface
1828 self-alignment-interface
1829 side-position-interface
1830 stroke-finger-interface
1832 text-script-interface))))))
1836 (direction . ,RIGHT)
1837 (extra-spacing-width . (+inf.0 . -inf.0))
1838 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
1839 (self-alignment-X . ,CENTER)
1840 (stencil . ,ly:sustain-pedal::print)
1841 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1842 (meta . ((class . Item)
1843 (interfaces . (font-interface
1844 piano-pedal-interface
1845 piano-pedal-script-interface
1846 self-alignment-interface
1847 text-interface))))))
1849 (SustainPedalLineSpanner
1853 (minimum-space . 1.0)
1854 (outside-staff-priority . 1000)
1857 (staff-padding . 1.2)
1858 (X-extent . ,ly:axis-group-interface::width)
1859 (Y-extent . ,ly:axis-group-interface::height)
1860 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1861 (meta . ((class . Spanner)
1862 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1863 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1864 (interfaces . (axis-group-interface
1865 piano-pedal-interface
1866 side-position-interface))))))
1870 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
1872 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
1873 (X-extent . ,ly:axis-group-interface::width)
1874 (Y-extent . ,ly:system::height)
1875 (meta . ((class . System)
1876 (object-callbacks . ((pure-relevant-grobs . ,ly:system::calc-pure-relevant-grobs)
1877 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)))
1878 (interfaces . (axis-group-interface
1879 system-interface))))))
1883 (collapse-height . 5.0)
1887 (padding . -0.1) ;; bar must cover rounded ending of staff line.
1888 (stencil . ,ly:system-start-delimiter::print)
1891 (X-offset . ,ly:side-position-interface::x-aligned-side)
1893 (meta . ((class . Spanner)
1894 (interfaces . (side-position-interface
1895 system-start-delimiter-interface))))))
1899 (collapse-height . 5.0)
1901 (font-encoding . fetaBraces)
1903 (stencil . ,ly:system-start-delimiter::print)
1905 (X-offset . ,ly:side-position-interface::x-aligned-side)
1907 (meta . ((class . Spanner)
1908 (interfaces . (font-interface
1909 side-position-interface
1910 system-start-delimiter-interface))))))
1914 (collapse-height . 5.0)
1917 (stencil . ,ly:system-start-delimiter::print)
1920 (X-offset . ,ly:side-position-interface::x-aligned-side)
1922 (meta . ((class . Spanner)
1923 (interfaces . (font-interface
1924 side-position-interface
1925 system-start-delimiter-interface))))))
1930 (stencil . ,ly:system-start-delimiter::print)
1931 (style . line-bracket)
1933 (X-offset . ,ly:side-position-interface::x-aligned-side)
1935 (meta . ((class . Spanner)
1936 (interfaces . (font-interface
1937 side-position-interface
1938 system-start-delimiter-interface))))))
1943 (details . ((cautionary-properties . ((angularity . 0.4)
1944 (half-thickness . 0.075)
1946 (procedure . ,parenthesize-stencil)
1949 (harmonic-properties . ((angularity . 2)
1950 (half-thickness . 0.075)
1952 (procedure . ,parenthesize-stencil)
1954 (repeat-tied-properties . ((note-head-visible . #t)
1955 (parenthesize . #t)))
1956 (tied-properties . ((break-visibility . ,begin-of-line-visible)
1957 (parenthesize . #t)))))
1959 (direction . ,CENTER)
1960 (duration-log . ,note-head::calc-duration-log)
1961 (font-series . bold)
1963 (stem-attachment . (0.0 . 1.35))
1964 (stencil . ,tab-note-head::print)
1966 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1967 (Y-offset . ,ly:staff-symbol-referencer::callback)
1968 (meta . ((class . Item)
1969 (interfaces . (font-interface
1971 rhythmic-grob-interface
1972 rhythmic-head-interface
1973 staff-symbol-referencer-interface
1974 tab-note-head-interface
1975 text-interface))))))
1979 (avoid-slur . around)
1980 (cross-staff . ,ly:script-interface::calc-cross-staff)
1982 (extra-spacing-width . (+inf.0 . -inf.0))
1983 (outside-staff-priority . 450)
1985 ;; sync with Fingering ?
1988 (script-priority . 200)
1990 (slur-padding . 0.5)
1991 (staff-padding . 0.5)
1992 (stencil . ,ly:text-interface::print)
1993 ;; todo: add X self alignment?
1994 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1995 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1996 (meta . ((class . Item)
1997 (interfaces . (font-interface
1998 instrument-specific-markup-interface
1999 self-alignment-interface
2000 side-position-interface
2002 text-script-interface))))))
2006 (bound-details . ((left . ((Y . 0)
2008 (attach-dir . ,LEFT)
2010 (left-broken . ((end-on-note . #t)))
2015 (dash-fraction . 0.2)
2018 (font-shape . italic)
2019 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2020 (outside-staff-priority . 350)
2021 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2023 (staff-padding . 0.8)
2024 (stencil . ,ly:line-spanner::print)
2025 (style . dashed-line)
2026 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2028 (meta . ((class . Spanner)
2029 (interfaces . (font-interface
2031 line-spanner-interface
2032 side-position-interface))))))
2036 (avoid-slur . inside)
2037 (control-points . ,ly:tie::calc-control-points)
2039 ;; for a full list, see tie-details.cc
2041 (center-staff-line-clearance . 0.6)
2042 (tip-staff-line-clearance . 0.45)
2043 (note-head-gap . 0.2)
2045 (height-limit . 1.0)
2046 (horizontal-distance-penalty-factor . 10)
2047 (same-dir-as-stem-penalty . 8)
2048 (min-length-penalty-factor . 26)
2049 (tie-tie-collision-distance . 0.45)
2050 (tie-tie-collision-penalty . 25.0)
2051 (intra-space-threshold . 1.25)
2052 (outer-tie-vertical-distance-symmetry-penalty-factor . 10)
2053 (outer-tie-length-symmetry-penalty-factor . 10)
2054 (vertical-distance-penalty-factor . 7)
2055 (outer-tie-vertical-gap . 0.25)
2056 (multi-tie-region-size . 3)
2057 (single-tie-region-size . 4)
2058 (between-length-limit . 1.0)))
2060 (direction . ,ly:tie::calc-direction)
2062 (line-thickness . 0.8)
2063 (neutral-direction . ,UP)
2064 (springs-and-rods . ,ly:spanner::set-spacing-rods)
2065 (stencil . ,ly:tie::print)
2067 (meta . ((class . Spanner)
2068 (interfaces . (tie-interface))))))
2072 (before-line-breaking . ,ly:tie-column::before-line-breaking)
2073 (positioning-done . ,ly:tie-column::calc-positioning-done)
2076 (meta . ((class . Spanner)
2077 (interfaces . (tie-column-interface))))))
2081 (avoid-slur . inside)
2083 . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
2084 (break-align-symbol . time-signature)
2085 (break-align-anchor-alignment . ,LEFT)
2086 (break-visibility . ,all-visible)
2087 (extra-spacing-height . (-1.0 . 1.0))
2090 (first-note . (fixed-space . 2.0))
2091 (right-edge . (extra-space . 0.5))
2092 (staff-bar . (minimum-space . 2.0))))
2093 (stencil . ,ly:time-signature::print)
2095 (meta . ((class . Item)
2096 (interfaces . (break-aligned-interface
2098 time-signature-interface))))))
2100 (TrillPitchAccidental
2104 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
2107 (stencil . ,ly:accidental-interface::print)
2108 (X-offset . ,ly:side-position-interface::x-aligned-side)
2109 (Y-extent . ,ly:accidental-interface::height)
2110 (meta . ((class . Item)
2111 (interfaces . (accidental-interface
2113 side-position-interface
2114 trill-pitch-accidental-interface))))))
2119 (direction . ,RIGHT)
2123 (stencil . ,parenthesize-elements)
2124 (stencils . ,parentheses-item::calc-parenthesis-stencils)
2125 (X-offset . ,ly:side-position-interface::x-aligned-side)
2126 (meta . ((class . Item)
2127 (interfaces . (axis-group-interface
2130 parentheses-interface
2131 side-position-interface))))))
2137 (stencil . ,ly:note-head::print)
2138 (Y-offset . ,ly:staff-symbol-referencer::callback)
2139 (meta . ((class . Item)
2140 (interfaces . (font-interface
2142 pitched-trill-interface
2143 rhythmic-head-interface
2144 staff-symbol-referencer-interface))))))
2148 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2149 (bound-details . ((left . ((text . ,(make-musicglyph-markup "scripts.trill"))
2151 (stencil-offset . (-0.5 . -1))
2153 (attach-dir . ,CENTER)
2155 (left-broken . ((end-on-note . #t)))
2159 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2160 (outside-staff-priority . 50)
2162 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2164 (staff-padding . 1.0)
2165 (stencil . ,ly:line-spanner::print)
2167 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2168 (meta . ((class . Spanner)
2169 (interfaces . (font-interface
2171 line-spanner-interface
2172 side-position-interface
2173 trill-spanner-interface))))))
2177 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
2178 (control-points . ,ly:tuplet-bracket::calc-control-points)
2179 (cross-staff . ,ly:tuplet-bracket::calc-cross-staff)
2180 (direction . ,ly:tuplet-bracket::calc-direction)
2181 (edge-height . (0.7 . 0.7))
2182 (full-length-to-extent . #t)
2184 (positions . ,ly:tuplet-bracket::calc-positions)
2185 (shorten-pair . (-0.2 . -0.2))
2186 (staff-padding . 0.25)
2187 (stencil . ,ly:tuplet-bracket::print)
2190 (meta . ((class . Spanner)
2191 (interfaces . (line-interface
2192 tuplet-bracket-interface))))))
2196 (avoid-slur . inside)
2197 (cross-staff . ,ly:tuplet-number::calc-cross-staff)
2198 (font-shape . italic)
2200 (stencil . ,ly:tuplet-number::print)
2201 (text . ,tuplet-number::calc-denominator-text)
2202 (meta . ((class . Spanner)
2203 (interfaces . (font-interface
2205 tuplet-number-interface))))))
2210 (direction . ,RIGHT)
2211 (extra-spacing-width . (+inf.0 . -inf.0))
2212 (font-shape . italic)
2213 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
2214 (self-alignment-X . ,CENTER)
2215 (stencil . ,ly:text-interface::print)
2216 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2217 (meta . ((class . Item)
2218 (interfaces . (font-interface
2219 piano-pedal-script-interface
2220 self-alignment-interface
2221 text-interface))))))
2223 (UnaCordaPedalLineSpanner
2227 (minimum-space . 1.0)
2228 (outside-staff-priority . 1000)
2231 (staff-padding . 1.2)
2232 (X-extent . ,ly:axis-group-interface::width)
2233 (Y-extent . ,ly:axis-group-interface::height)
2234 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2235 (meta . ((class . Spanner)
2236 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2237 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2238 (interfaces . (axis-group-interface
2239 piano-pedal-interface
2240 side-position-interface))))))
2246 (stencil . ,ly:vaticana-ligature::print)
2248 (meta . ((class . Spanner)
2249 (interfaces . (font-interface
2250 vaticana-ligature-interface))))))
2255 (positioning-done . ,ly:align-interface::align-to-ideal-distances)
2257 (vertical-skylines . ,ly:axis-group-interface::combine-skylines)
2258 (X-extent . ,ly:axis-group-interface::width)
2259 (Y-extent . ,ly:axis-group-interface::height)
2260 (meta . ((class . Spanner)
2261 (object-callbacks . ((Y-common . ,ly:axis-group-interface::calc-y-common)
2262 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)
2263 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)))
2264 (interfaces . (align-interface
2265 axis-group-interface))))))
2269 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2271 (default-staff-staff-spacing . ((basic-distance . 9)
2272 (minimum-distance . 8)
2274 (nonstaff-unrelatedstaff-spacing . ((padding . 0.5)))
2275 (staff-staff-spacing . ,ly:axis-group-interface::calc-staff-staff-spacing)
2276 (stencil . ,ly:axis-group-interface::print)
2277 (vertical-skylines . ,ly:hara-kiri-group-spanner::calc-skylines)
2278 (X-extent . ,ly:axis-group-interface::width)
2279 (Y-extent . ,ly:hara-kiri-group-spanner::y-extent)
2280 (Y-offset . ,ly:hara-kiri-group-spanner::force-hara-kiri-callback)
2281 (meta . ((class . Spanner)
2282 (object-callbacks . (
2283 (X-common . ,ly:axis-group-interface::calc-x-common)
2284 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2285 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2287 (interfaces . (axis-group-interface
2288 hara-kiri-group-spanner-interface))))))
2292 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2293 (bound-details . ((right . ((attach-dir . ,CENTER)
2296 (left . ((attach-dir . ,CENTER)
2301 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2303 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2304 (stencil . ,ly:line-spanner::print)
2308 (meta . ((class . Spanner)
2309 (interfaces . (line-interface
2310 line-spanner-interface))))))
2315 (edge-height . (2.0 . 2.0)) ;; staff-space;
2316 (font-encoding . fetaText)
2318 (stencil . ,ly:volta-bracket-interface::print)
2319 (thickness . 1.6) ;; line-thickness
2321 (meta . ((class . Spanner)
2322 (interfaces . (font-interface
2323 horizontal-bracket-interface
2325 side-position-interface
2327 volta-bracket-interface
2328 volta-interface))))))
2330 (VoltaBracketSpanner
2332 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
2336 (outside-staff-priority . 600)
2339 (X-extent . ,ly:axis-group-interface::width)
2340 (Y-extent . ,ly:axis-group-interface::height)
2341 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2342 (meta . ((class . Spanner)
2343 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2344 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2345 (interfaces . (axis-group-interface
2346 side-position-interface
2347 volta-interface))))))
2351 (define (completize-grob-entry x)
2352 "Transplant assoc key into 'name entry of 'meta of X. Set interfaces for Item, Spanner etc.
2354 ;; (display (car x))
2356 (let* ((name-sym (car x))
2357 (grob-entry (cdr x))
2358 (meta-entry (assoc-get 'meta grob-entry))
2359 (class (assoc-get 'class meta-entry))
2361 (assoc-get 'interfaces meta-entry)))
2365 (set! ifaces-entry (cons 'item-interface ifaces-entry)))
2366 ((eq? 'Spanner class)
2367 (set! ifaces-entry (cons 'spanner-interface ifaces-entry)))
2368 ((eq? 'Paper_column class)
2369 (set! ifaces-entry (cons 'item-interface
2370 (cons 'paper-column-interface ifaces-entry))))
2371 ((eq? 'System class)
2372 (set! ifaces-entry (cons 'system-interface
2373 (cons 'spanner-interface ifaces-entry))))
2375 (ly:warning "Unknown class ~a" class)))
2377 (set! ifaces-entry (uniq-list (sort ifaces-entry symbol<?)))
2378 (set! ifaces-entry (cons 'grob-interface ifaces-entry))
2380 (set! meta-entry (assoc-set! meta-entry 'name name-sym))
2381 (set! meta-entry (assoc-set! meta-entry 'interfaces
2383 (set! grob-entry (assoc-set! grob-entry 'meta meta-entry))
2384 (cons name-sym grob-entry)))
2386 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
2388 ;; (display (map pair? all-grob-descriptions))
2390 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
2393 ;; (display (car x)) (newline)
2395 (set-object-property! (car x) 'translation-type? list?)
2396 (set-object-property! (car x) 'is-grob? #t))
2397 all-grob-descriptions)
2399 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))
2401 (define (volta-bracket-interface::pure-height grob start end)
2402 (let ((edge-height (ly:grob-property grob 'edge-height)))
2403 (if (number-pair? edge-height)
2404 (let ((smaller (min (car edge-height) (cdr edge-height)))
2405 (larger (max (car edge-height) (cdr edge-height))))
2406 (interval-union '(0 . 0) (cons smaller larger)))
2409 (define pure-print-callbacks
2411 fret-board::calc-stencil
2412 note-head::brew-ez-stencil
2413 print-circled-text-callback
2414 laissez-vibrer::print
2417 ly:mensural-ligature::brew-ligature-primitive
2421 ly:percent-repeat-item-interface::beat-slash
2422 ly:text-interface::print
2423 ly:script-interface::print
2424 ly:sustain-pedal::print))
2426 ;; Sometimes we have grobs with (Y-extent . ,ly:grob::stencil-height)
2427 ;; and the print function is not pure, but there is a easy way to
2428 ;; figure out the Y-extent from the print function.
2429 (define pure-print-to-height-conversions
2431 (,ly:arpeggio::print . ,ly:arpeggio::pure-height)
2432 (,ly:arpeggio::brew-chord-bracket . ,ly:arpeggio::pure-height)
2433 (,ly:arpeggio::brew-chord-slur . ,ly:arpeggio::pure-height)
2434 (,ly:hairpin::print . ,ly:hairpin::pure-height)
2435 (,ly:volta-bracket-interface::print . ,volta-bracket-interface::pure-height)))
2437 ;; ly:grob::stencil-extent is safe if the print callback is safe too
2438 (define (pure-stencil-height grob start stop)
2439 (let* ((sten (ly:grob-property-data grob 'stencil))
2440 (pure-height-callback (assoc-get sten pure-print-to-height-conversions)))
2443 (memq sten pure-print-callbacks))
2444 (ly:grob::stencil-height grob))
2445 ((procedure? pure-height-callback)
2446 (pure-height-callback grob start stop))
2450 ;; Sometimes, a pure callback will be chained to a non-pure callback via
2451 ;; chain_offset_callback, in which case this provides a default by simply
2452 ;; passing through the value from the pure callback.
2453 (define (pure-chain-offset-callback grob start end prev-offset) prev-offset)
2455 (define pure-conversions-alist
2457 (,ly:accidental-interface::height . ,ly:accidental-interface::pure-height)
2458 (,ly:axis-group-interface::calc-staff-staff-spacing . ,ly:axis-group-interface::calc-pure-staff-staff-spacing)
2459 (,ly:axis-group-interface::height . ,ly:axis-group-interface::pure-height)
2460 (,ly:grob::stencil-height . ,pure-stencil-height)
2461 (,ly:hara-kiri-group-spanner::y-extent . ,ly:hara-kiri-group-spanner::pure-height)
2462 (,ly:rest-collision::force-shift-callback-rest . ,pure-chain-offset-callback)
2463 (,ly:rest::height . ,ly:rest::pure-height)
2464 (,ly:self-alignment-interface::y-aligned-on-self . ,ly:self-alignment-interface::pure-y-aligned-on-self)
2465 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)
2466 (,ly:slur::height . ,ly:slur::pure-height)
2467 (,ly:slur::outside-slur-callback . ,ly:slur::pure-outside-slur-callback)
2468 (,ly:stem::height . ,ly:stem::pure-height)
2469 (,ly:system::height . ,ly:system::calc-pure-height)))
2471 (define pure-functions
2473 parenthesize-elements
2474 laissez-vibrer::print
2475 ly:rest::y-offset-callback
2476 ly:staff-symbol-referencer::callback
2477 ly:staff-symbol::height))
2479 (define-public (pure-relevant? grob)
2480 (let ((extent-callback (ly:grob-property-data grob 'Y-extent)))
2483 (pair? extent-callback)
2484 (memq extent-callback pure-functions)
2486 (pair? (assq extent-callback pure-conversions-alist))
2487 (let ((stencil (ly:grob-property-data grob 'stencil)))
2489 (not (eq? extent-callback ly:grob::stencil-height))
2490 (memq stencil pure-print-callbacks)
2491 (assq stencil pure-print-to-height-conversions)
2492 (ly:stencil? stencil)))))))))
2494 (define-public (call-pure-function unpure args start end)
2495 (if (ly:simple-closure? unpure)
2496 (ly:eval-simple-closure (car args) unpure start end)
2497 (if (not (procedure? unpure))
2499 (if (memq unpure pure-functions)
2501 (let ((pure (assq unpure pure-conversions-alist)))
2505 (list (car args) start end)