1 ;;;; This file is part of LilyPond, the GNU music typesetter.
3 ;;;; Copyright (C) 1998--2011 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 (cue-end-clef . (extra-space . 0.5))
106 (clef . (extra-space . 0.5))
107 (cue-clef . (extra-space . 0.5))
108 (key-signature . (extra-space . 0.0))
109 (staff-bar . (extra-space . 0.0))
110 (time-signature . (extra-space . 0.0))
111 (first-note . (fixed-space . 0.0))))
112 (X-extent . ,ly:axis-group-interface::width)
113 (Y-extent . ,ly:axis-group-interface::height)
114 (meta . ((class . Item)
115 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
116 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
117 (interfaces . (ambitus-interface
119 break-aligned-interface))))))
124 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
127 (stencil . ,ly:accidental-interface::print)
128 (X-offset . ,ly:side-position-interface::x-aligned-side)
129 (Y-extent . ,ly:accidental-interface::height)
130 (meta . ((class . Item)
131 (interfaces . (accidental-interface
132 break-aligned-interface
134 side-position-interface))))))
139 (stencil . ,ambitus::print)
141 (X-offset . ,ly:self-alignment-interface::centered-on-x-parent)
142 (meta . ((class . Item)
143 (interfaces . (ambitus-interface
149 (glyph-name . ,note-head::calc-glyph-name)
150 (stencil . ,ly:note-head::print)
151 (Y-offset . ,ly:staff-symbol-referencer::callback)
152 (meta . ((class . Item)
153 (interfaces . (ambitus-interface
157 rhythmic-head-interface
158 staff-symbol-referencer-interface))))))
164 (positions . ,ly:arpeggio::calc-positions)
165 (script-priority . 0)
167 (staff-position . 0.0)
168 (stencil . ,ly:arpeggio::print)
169 (X-extent . ,ly:arpeggio::width)
170 (X-offset . ,ly:side-position-interface::x-aligned-side)
171 (Y-offset . ,ly:staff-symbol-referencer::callback)
172 (meta . ((class . Item)
173 (interfaces . (arpeggio-interface
175 side-position-interface
176 staff-symbol-referencer-interface))))))
180 (stencil . ,ly:balloon-interface::print)
181 (text . ,(grob::calc-property-by-copy 'text))
182 (X-offset . ,(grob::calc-property-by-copy 'X-offset))
183 (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
184 (meta . ((class . Item)
185 (interfaces . (balloon-interface
191 (allow-span-bar . #t)
192 (bar-extent . ,ly:bar-line::calc-bar-extent)
193 (break-align-anchor . ,ly:bar-line::calc-anchor)
194 (break-align-symbol . staff-bar)
195 (break-visibility . ,bar-line::calc-break-visibility)
198 (glyph-name . ,bar-line::calc-glyph-name)
201 ;; Ross. page 151 lists other values, we opt for a leaner look
204 ;; kern should scale with line-thickness too.
207 (hair-thickness . 1.9)
208 (thick-thickness . 6.0)
213 (time-signature . (extra-space . 0.75))
214 (custos . (minimum-space . 2.0))
215 (clef . (minimum-space . 1.0))
216 (key-signature . (extra-space . 1.0))
217 (key-cancellation . (extra-space . 1.0))
218 (first-note . (fixed-space . 1.3))
219 (next-note . (semi-fixed-space . 0.9))
220 (right-edge . (extra-space . 0.0))))
221 (stencil . ,ly:bar-line::print)
222 (meta . ((class . Item)
223 (interfaces . (bar-line-interface
224 break-aligned-interface
229 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
230 ;; want the bar number before the clef at line start.
231 (break-align-symbols . (left-edge staff-bar))
233 (break-visibility . ,begin-of-line-visible)
235 (font-family . roman)
238 (outside-staff-priority . 100)
240 (self-alignment-X . ,RIGHT)
242 (stencil . ,ly:text-interface::print)
243 (X-offset . ,(ly:make-simple-closure
245 ,(ly:make-simple-closure
246 (list ly:break-alignable-interface::self-align-callback))
247 ,(ly:make-simple-closure
248 (list ly:self-alignment-interface::x-aligned-on-self)))))
249 (Y-offset . ,ly:side-position-interface::y-aligned-side)
252 (interfaces . (break-alignable-interface
254 self-alignment-interface
255 side-position-interface
260 (stencil . ,ly:text-interface::print)
261 (meta . ((class . Item)
262 (interfaces . (bass-figure-interface
264 rhythmic-grob-interface
271 (positioning-done . ,ly:align-interface::align-to-minimum-distances)
272 (stacking-dir . ,DOWN)
273 (Y-extent . ,ly:axis-group-interface::height)
274 (meta . ((class . Spanner)
275 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
276 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
277 (interfaces . (align-interface
279 bass-figure-alignment-interface))))))
281 (BassFigureAlignmentPositioning
287 (staff-padding . 1.0)
288 (Y-extent . ,ly:axis-group-interface::height)
289 (Y-offset . ,ly:side-position-interface::y-aligned-side)
290 (meta . ((class . Spanner)
291 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
292 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
293 (interfaces . (axis-group-interface
294 side-position-interface))))))
298 (edge-height . (0.2 . 0.2))
299 (stencil . ,ly:enclosing-bracket::print)
300 (X-extent . ,ly:enclosing-bracket::width)
301 (meta . ((class . Item)
302 (interfaces . (enclosing-bracket-interface))))))
304 (BassFigureContinuation
306 (stencil . ,ly:figured-bass-continuation::print)
307 (Y-offset . ,ly:figured-bass-continuation::center-on-figures)
308 (meta . ((class . Spanner)
309 (interfaces . (figured-bass-continuation-interface))))))
313 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
315 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
316 (Y-extent . ,ly:axis-group-interface::height)
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))))))
325 ;; todo: clean this up a bit: the list is getting
328 (auto-knee-gap . 5.5)
329 (beam-thickness . 0.48) ; in staff-space
331 ;; We have some unreferenced problems here.
333 ;; If we shorten beamed stems less than normal stems (1 staff-space),
334 ;; or high order less than 8th beams, patterns like
335 ;; c''4 [c''8 c''] c''4 [c''16 c]
336 ;; are ugly (different stem lengths).
338 ;; But if we shorten 16th beams as much as 8th beams, a single
339 ;; forced 16th beam looks *very* short.
341 ;; We choose to shorten 8th beams the same as single stems,
342 ;; and high order beams less than 8th beams, so that all
343 ;; isolated shortened beams look nice and a bit shortened,
344 ;; sadly possibly breaking patterns with high order beams.
345 (beamed-stem-shorten . (1.0 0.5 0.25))
347 (beaming . ,ly:beam::calc-beaming)
349 (concaveness . ,ly:beam::calc-concaveness)
350 (cross-staff . ,ly:beam::calc-cross-staff)
354 (secondary-beam-demerit . 10)
355 (stem-length-demerit-factor . 5)
358 (stem-length-limit-penalty . 5000)
359 (damping-direction-penalty . 800)
360 (hint-direction-penalty . 20)
361 (musical-direction-factor . 400)
362 (ideal-slope-factor . 10)
363 (collision-penalty . 500)
364 (collision-distance . 0.35)
365 (round-to-zero-slope . 0.02)))
366 (direction . ,ly:beam::calc-direction)
368 ;; only for debugging.
369 (font-family . roman)
372 (neutral-direction . ,DOWN)
373 (positions . ,(ly:make-simple-closure
374 (ly:make-simple-closure
375 (list chain-grob-member-functions
377 ly:beam::calc-least-squares-positions
378 ly:beam::slope-damping
379 ly:beam::shift-region-to-valid
383 ;; this is a hack to set stem lengths, if positions is set.
384 (quantized-positions . ,ly:beam::set-stem-lengths)
386 (shorten . ,ly:beam::calc-stem-shorten)
387 (stencil . ,ly:beam::print)
389 (meta . ((class . Spanner)
390 (object-callbacks . ((normal-stems . ,ly:beam::calc-normal-stems)))
391 (interfaces . (beam-interface
393 staff-symbol-referencer-interface
394 unbreakable-spanner-interface))))))
398 (minimum-length . 0.5)
399 (stencil . ,bend::print)
401 (meta . ((class . Spanner)
402 (interfaces . (bend-after-interface
403 spanner-interface))))))
408 (break-align-anchor . ,ly:break-aligned-interface::calc-average-anchor)
409 (break-visibility . ,ly:break-aligned-interface::calc-break-visibility)
410 (X-extent . ,ly:axis-group-interface::width)
411 (meta . ((class . Item)
412 (interfaces . (axis-group-interface
413 break-aligned-interface))))))
418 (break-align-orders . ;; end of line
459 (positioning-done . ,ly:break-alignment-interface::calc-positioning-done)
461 (X-extent . ,ly:axis-group-interface::width)
462 (meta . ((class . Item)
463 (interfaces . (axis-group-interface
464 break-alignment-interface))))))
468 (break-align-symbol . breathing-sign)
469 (break-visibility . ,begin-of-line-invisible)
472 (ambitus . (extra-space . 2.0))
473 (custos . (minimum-space . 1.0))
474 (key-signature . (minimum-space . 1.5))
475 (time-signature . (minimum-space . 1.5))
476 (staff-bar . (minimum-space . 1.5))
477 (clef . (minimum-space . 2.0))
478 (cue-clef . (minimum-space . 2.0))
479 (cue-end-clef . (minimum-space . 2.0))
480 (first-note . (fixed-space . 1.0)) ;huh?
481 (right-edge . (extra-space . 0.1))))
482 (stencil . ,ly:text-interface::print)
483 (text . ,(make-musicglyph-markup "scripts.rcomma"))
484 (Y-offset . ,ly:breathing-sign::offset-callback)
485 (meta . ((class . Item)
486 (interfaces . (break-aligned-interface
487 breathing-sign-interface
493 (after-line-breaking . ,ly:chord-name::after-line-breaking)
496 (stencil . ,ly:text-interface::print)
497 (extra-spacing-height . (0.2 . -0.2))
499 (meta . ((class . Item)
500 (interfaces . (chord-name-interface
502 rhythmic-grob-interface
507 (avoid-slur . inside)
508 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
509 (break-align-symbol . clef)
510 (break-visibility . ,begin-of-line-visible)
511 (glyph-name . ,ly:clef::calc-glyph-name)
513 (space-alist . ((cue-clef . (extra-space . 2.0))
514 (staff-bar . (extra-space . 0.7))
515 (key-cancellation . (minimum-space . 3.5))
516 (key-signature . (minimum-space . 3.5))
517 (time-signature . (minimum-space . 4.2))
518 (first-note . (minimum-fixed-space . 5.0))
519 (next-note . (extra-space . 0.5))
520 (right-edge . (extra-space . 0.5))))
521 (stencil . ,ly:clef::print)
522 (Y-offset . ,ly:staff-symbol-referencer::callback)
523 (meta . ((class . Item)
524 (interfaces . (break-aligned-interface
527 staff-symbol-referencer-interface))))))
531 (cross-staff . ,ly:cluster::calc-cross-staff)
532 (minimum-length . 0.0)
534 (springs-and-rods . ,ly:spanner::set-spacing-rods)
535 (stencil . ,ly:cluster::print)
537 (meta . ((class . Spanner)
538 (interfaces . (cluster-interface))))))
540 (ClusterSpannerBeacon
542 (Y-extent . ,ly:cluster-beacon::height)
543 (meta . ((class . Item)
544 (interfaces . (cluster-beacon-interface
545 rhythmic-grob-interface))))))
549 (avoid-slur . outside)
552 (extra-spacing-width . (+inf.0 . -inf.0))
554 (outside-staff-priority . 450)
556 (script-priority . 200)
558 (staff-padding . 0.5)
559 ;; todo: add X self alignment?
560 (stencil . ,ly:text-interface::print)
561 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
562 (Y-offset . ,ly:side-position-interface::y-aligned-side)
563 (meta . ((class . Item)
564 (interfaces . (font-interface
565 side-position-interface
567 text-script-interface))))))
571 (avoid-slur . inside)
572 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
573 (break-align-symbol . cue-clef)
574 (break-visibility . ,begin-of-line-visible)
576 (glyph-name . ,ly:clef::calc-glyph-name)
578 (full-size-change . #t)
579 (space-alist . ((staff-bar . (minimum-space . 2.7))
580 (key-cancellation . (minimum-space . 3.5))
581 (key-signature . (minimum-space . 3.5))
582 (time-signature . (minimum-space . 4.2))
583 (custos . (minimum-space . 0.0))
584 (first-note . (minimum-fixed-space . 3.0))
585 (next-note . (extra-space . 0.5))
586 (right-edge . (extra-space . 0.5))))
587 (stencil . ,ly:clef::print)
588 (Y-offset . ,ly:staff-symbol-referencer::callback)
589 (meta . ((class . Item)
590 (interfaces . (break-aligned-interface
593 staff-symbol-referencer-interface))))))
597 (avoid-slur . inside)
598 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
599 (break-align-symbol . cue-end-clef)
600 (break-visibility . ,begin-of-line-invisible)
602 (glyph-name . ,ly:clef::calc-glyph-name)
604 (full-size-change . #t)
605 (space-alist . ((clef . (extra-space . 0.7))
606 (cue-clef . (extra-space . 0.7))
607 (staff-bar . (extra-space . 0.7))
608 (key-cancellation . (minimum-space . 3.5))
609 (key-signature . (minimum-space . 3.5))
610 (time-signature . (minimum-space . 4.2))
611 (first-note . (minimum-fixed-space . 5.0))
612 (next-note . (extra-space . 0.5))
613 (right-edge . (extra-space . 0.5))))
614 (stencil . ,ly:clef::print)
615 (Y-offset . ,ly:staff-symbol-referencer::callback)
616 (meta . ((class . Item)
617 (interfaces . (break-aligned-interface
620 staff-symbol-referencer-interface))))))
624 (break-align-symbol . custos)
625 (break-visibility . ,end-of-line-visible)
626 (neutral-direction . ,DOWN)
629 (first-note . (minimum-fixed-space . 0.0))
630 (right-edge . (extra-space . 0.1))))
631 (stencil . ,ly:custos::print)
633 (Y-offset . ,ly:staff-symbol-referencer::callback)
634 (meta . ((class . Item)
635 (interfaces . (break-aligned-interface
638 staff-symbol-referencer-interface))))))
644 (positioning-done . ,ly:dot-column::calc-positioning-done)
645 (X-extent . ,ly:axis-group-interface::width)
646 (meta . ((class . Item)
647 (interfaces . (axis-group-interface
648 dot-column-interface))))))
652 (dot-count . ,dots::calc-dot-count)
653 (staff-position . ,dots::calc-staff-position)
654 (stencil . ,ly:dots::print)
655 (extra-spacing-height . (-0.5 . 0.5))
656 (meta . ((class . Item)
657 (interfaces . (dots-interface
659 staff-symbol-referencer-interface))))))
663 (break-align-symbol . staff-bar)
664 (break-visibility . ,begin-of-line-invisible)
665 (dot-negative-kern . 0.75)
666 (font-encoding . fetaMusic)
668 (slash-negative-kern . 1.6)
670 (stencil . ,ly:percent-repeat-item-interface::double-percent)
672 (meta . ((class . Item)
673 (interfaces . (break-aligned-interface
675 percent-repeat-interface
676 percent-repeat-item-interface))))))
678 (DoublePercentRepeatCounter
681 (font-encoding . fetaText)
684 (self-alignment-X . ,CENTER)
686 (staff-padding . 0.25)
687 (stencil . ,ly:text-interface::print)
688 (X-offset . ,(ly:make-simple-closure
690 ,(ly:make-simple-closure
691 (list ly:self-alignment-interface::centered-on-y-parent))
692 ,(ly:make-simple-closure
693 (list ly:self-alignment-interface::x-aligned-on-self)))))
694 (Y-offset . ,ly:side-position-interface::y-aligned-side)
695 (meta . ((class . Item)
696 (interfaces . (font-interface
697 percent-repeat-interface
698 percent-repeat-item-interface
699 self-alignment-interface
700 side-position-interface
705 (dot-negative-kern . 0.75)
706 (font-encoding . fetaMusic)
707 (slash-negative-kern . 1.6)
709 (stencil . ,ly:percent-repeat-item-interface::beat-slash)
711 (meta . ((class . Item)
712 (interfaces . (font-interface
713 percent-repeat-interface
714 percent-repeat-item-interface
715 rhythmic-grob-interface))))))
720 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
722 (minimum-space . 1.2)
723 (outside-staff-priority . 250)
727 (staff-padding . 0.1)
728 (X-extent . ,ly:axis-group-interface::width)
729 (Y-extent . ,ly:axis-group-interface::height)
730 (Y-offset . ,ly:side-position-interface::y-aligned-side)
731 (meta . ((class . Spanner)
732 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
733 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
734 (interfaces . (axis-group-interface
736 dynamic-line-spanner-interface
737 side-position-interface))))))
744 (direction . ,ly:script-interface::calc-direction)
745 (extra-spacing-width . (+inf.0 . -inf.0))
746 (font-encoding . fetaText)
748 (font-shape . italic)
749 (outside-staff-priority . 250)
750 (positioning-done . ,ly:script-interface::calc-positioning-done)
751 (right-padding . 0.5)
752 (self-alignment-X . ,CENTER)
753 (self-alignment-Y . ,CENTER)
754 (stencil . ,ly:text-interface::print)
755 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
756 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
757 (meta . ((class . Item)
758 (interfaces . (dynamic-interface
759 dynamic-text-interface
762 self-alignment-interface
767 (before-line-breaking . ,dynamic-text-spanner::before-line-breaking)
768 (bound-details . ((right . ((attach-dir . ,LEFT)
772 (right-broken . ((attach-dir . ,RIGHT)
776 (left . ((attach-dir . ,LEFT)
778 (stencil-offset . (-0.75 . -0.5))
781 (left-broken . ((attach-dir . ,RIGHT)
784 (dash-fraction . 0.2)
787 ;; rather ugh with NCSB
788 ;; (font-series . bold)
789 (font-shape . italic)
791 ;; need to blend with dynamic texts.
794 (left-bound-info . ,ly:line-spanner::calc-left-bound-info-and-text)
796 ;; make sure the spanner doesn't get too close to notes
797 (minimum-Y-extent . (-1 . 1))
799 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
800 (stencil . ,ly:line-spanner::print)
801 (style . dashed-line)
802 (meta . ((class . Spanner)
803 (interfaces . (dynamic-interface
804 dynamic-text-spanner-interface
807 line-spanner-interface
814 (bound-details . ((left . ((Y . 0)
820 (attach-dir . ,RIGHT)
824 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
825 (quantize-position . #t)
826 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
828 (stencil . ,ly:line-spanner::print)
830 (Y-offset . ,ly:side-position-interface::y-aligned-side)
831 (meta . ((class . Spanner)
832 (interfaces . (episema-interface
835 line-spanner-interface
836 side-position-interface))))))
842 ;; sync with TextScript (?)
844 (avoid-slur . around)
845 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
846 (direction . ,ly:script-interface::calc-direction)
847 (font-encoding . fetaText)
848 (font-size . -5) ; don't overlap when next to heads.
850 (positioning-done . ,ly:script-interface::calc-positioning-done)
851 (script-priority . 100)
852 (self-alignment-X . ,CENTER)
853 (self-alignment-Y . ,CENTER)
855 (staff-padding . 0.5)
856 (stencil . ,ly:text-interface::print)
857 (text . ,fingering::calc-text)
858 (meta . ((class . Item)
859 (interfaces . (finger-interface
861 self-alignment-interface
862 side-position-interface
864 text-script-interface))))))
868 (after-line-breaking . ,ly:chord-name::after-line-breaking)
869 (fret-diagram-details . ((finger-code . below-string)))
870 (stencil . ,fret-board::calc-stencil)
871 (extra-spacing-height . (0.2 . -0.2))
872 (meta . ((class . Item)
873 (interfaces . (chord-name-interface
875 fret-diagram-interface
876 rhythmic-grob-interface))))))
881 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
882 (bound-details . ((right . ((attach-dir . ,CENTER)
885 (left . ((attach-dir . ,CENTER)
890 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
891 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
892 (stencil . ,ly:line-spanner::print)
896 (zigzag-width . 0.75)
897 (meta . ((class . Spanner)
898 (interfaces . (glissando-interface
900 line-spanner-interface
901 unbreakable-spanner-interface))))))
905 (common-shortest-duration . ,grace-spacing::calc-shortest-duration)
906 (shortest-duration-space . 1.6)
907 (spacing-increment . 0.8)
908 (meta . ((class . Spanner)
909 (interfaces . (grace-spacing-interface
910 spacing-options-interface
911 spanner-interface))))))
916 (self-alignment-X . ,CENTER)
917 (stencil . ,ly:grid-line-interface::print)
918 (X-extent . ,ly:grid-line-interface::width)
919 (X-offset . ,(ly:make-simple-closure
921 ,(ly:make-simple-closure
922 (list ly:self-alignment-interface::centered-on-x-parent))
923 ,(ly:make-simple-closure
924 (list ly:self-alignment-interface::x-aligned-on-self)))))
925 (meta . ((class . Item)
926 (interfaces . (grid-line-interface
927 self-alignment-interface))))))
933 (meta . ((class . Item)
934 (interfaces . (grid-point-interface))))))
939 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
940 (bound-padding . 1.0)
942 (grow-direction . ,hairpin::calc-grow-direction)
944 (minimum-length . 2.0)
945 (self-alignment-Y . ,CENTER)
946 (springs-and-rods . ,ly:spanner::set-spacing-rods)
947 (stencil . ,ly:hairpin::print)
950 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
951 (meta . ((class . Spanner)
952 (interfaces . (dynamic-interface
955 self-alignment-interface
956 spanner-interface))))))
960 (bracket-flare . (0.5 . 0.5))
961 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
965 (staff-padding . 0.2)
966 (stencil . ,ly:horizontal-bracket::print)
968 (Y-offset . ,ly:side-position-interface::y-aligned-side)
969 (meta . ((class . Spanner)
970 (interfaces . (horizontal-bracket-interface
972 side-position-interface
973 spanner-interface))))))
980 (self-alignment-X . ,CENTER)
981 (self-alignment-Y . ,CENTER)
982 (stencil . ,system-start-text::print)
983 (X-offset . ,system-start-text::calc-x-offset)
984 (Y-offset . ,system-start-text::calc-y-offset)
985 (meta . ((class . Spanner)
986 (interfaces . (font-interface
987 self-alignment-interface
988 side-position-interface
989 system-start-text-interface))))))
994 (extra-spacing-width . (+inf.0 . -inf.0))
995 (outside-staff-priority . 500)
997 (self-alignment-X . ,LEFT)
999 (staff-padding . 0.5)
1000 (stencil . ,ly:text-interface::print)
1001 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1002 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1003 (meta . ((class . Item)
1004 (interfaces . (font-interface
1005 self-alignment-interface
1006 side-position-interface
1007 text-interface))))))
1012 (break-align-symbol . key-cancellation)
1013 (break-visibility . ,begin-of-line-invisible)
1014 (glyph-name-alist . ,cancellation-glyph-name-alist)
1017 (time-signature . (extra-space . 1.25))
1018 (staff-bar . (extra-space . 0.6))
1019 (key-signature . (extra-space . 0.5))
1020 (cue-clef . (extra-space . 0.5))
1021 (right-edge . (extra-space . 0.5))
1022 (first-note . (fixed-space . 2.5))))
1023 (stencil . ,ly:key-signature-interface::print)
1024 (extra-spacing-width . (0.0 . 0.5))
1025 (Y-offset . ,ly:staff-symbol-referencer::callback)
1026 (meta . ((class . Item)
1027 (interfaces . (break-aligned-interface
1029 key-cancellation-interface
1030 key-signature-interface
1031 staff-symbol-referencer-interface))))))
1035 (avoid-slur . inside)
1036 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1037 (break-align-symbol . key-signature)
1038 (break-visibility . ,begin-of-line-visible)
1039 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
1042 (time-signature . (extra-space . 1.15))
1043 (staff-bar . (extra-space . 1.1))
1044 (cue-clef . (extra-space . 0.5))
1045 (right-edge . (extra-space . 0.5))
1046 (first-note . (fixed-space . 2.5))))
1047 (stencil . ,ly:key-signature-interface::print)
1048 (extra-spacing-width . (0.0 . 0.5))
1049 (Y-offset . ,ly:staff-symbol-referencer::callback)
1050 (meta . ((class . Item)
1051 (interfaces . (break-aligned-interface
1053 key-signature-interface
1054 staff-symbol-referencer-interface))))))
1059 (control-points . ,ly:semi-tie::calc-control-points)
1060 (details . ((ratio . 0.333)
1061 (height-limit . 1.0)))
1062 (direction . ,ly:tie::calc-direction)
1063 (head-direction . ,LEFT)
1064 (stencil . ,laissez-vibrer::print)
1066 (extra-spacing-height . (-0.5 . 0.5))
1067 (meta . ((class . Item)
1068 (interfaces . (semi-tie-interface))))))
1070 (LaissezVibrerTieColumn
1072 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1073 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1076 (meta . ((class . Item)
1077 (interfaces . (semi-tie-column-interface))))))
1082 (length-fraction . 0.25)
1083 (minimum-length-fraction . 0.25)
1084 (springs-and-rods . ,ly:ledger-line-spanner::set-spacing-rods)
1085 (stencil . ,ly:ledger-line-spanner::print)
1088 (meta . ((class . Spanner)
1089 (interfaces . (ledger-line-spanner-interface))))))
1093 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1094 (break-align-symbol . left-edge)
1095 (break-visibility . ,center-invisible)
1097 (extra-spacing-height . (+inf.0 . -inf.0))
1099 (ambitus . (extra-space . 2.0))
1100 (breathing-sign . (minimum-space . 0.0))
1101 (cue-end-clef . (extra-space . 0.8))
1102 (clef . (extra-space . 0.8))
1103 (cue-clef . (extra-space . 0.8))
1104 (staff-bar . (extra-space . 0.0))
1105 (key-cancellation . (extra-space . 0.0))
1106 (key-signature . (extra-space . 0.8))
1107 (time-signature . (extra-space . 1.0))
1108 (custos . (extra-space . 0.0))
1109 (first-note . (fixed-space . 2.0))
1110 (right-edge . (extra-space . 0.0))
1112 (X-extent . (0 . 0))
1113 (meta . ((class . Item)
1114 (interfaces . (break-aligned-interface))))))
1118 ;; ugh. A ligature bracket is totally different from
1119 ;; a tuplet bracket.
1121 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
1122 (control-points . ,ly:tuplet-bracket::calc-control-points)
1124 (edge-height . (0.7 . 0.7))
1126 (positions . ,ly:tuplet-bracket::calc-positions)
1127 (shorten-pair . (-0.2 . -0.2))
1128 (staff-padding . 0.25)
1129 (stencil . ,ly:tuplet-bracket::print)
1131 (meta . ((class . Spanner)
1132 (interfaces . (line-interface
1133 tuplet-bracket-interface))))))
1137 (minimum-length . 1.5)
1138 (stencil . ,ly:lyric-extender::print)
1139 (thickness . 0.8) ; line-thickness
1140 (Y-extent . (0 . 0))
1141 (meta . ((class . Spanner)
1142 (interfaces . (lyric-extender-interface
1143 lyric-interface))))))
1147 (dash-period . 10.0)
1150 (minimum-distance . 0.1)
1151 (minimum-length . 0.3)
1153 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1154 (stencil . ,ly:lyric-hyphen::print)
1156 (Y-extent . (0 . 0))
1157 (meta . ((class . Spanner)
1158 (interfaces . (font-interface
1159 lyric-hyphen-interface
1161 spanner-interface))))))
1165 (minimum-distance . 0.45)
1167 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1170 (meta . ((class . Spanner)
1171 (interfaces . (lyric-hyphen-interface
1172 spanner-interface))))))
1176 (extra-spacing-width . (0.0 . 0.0))
1177 ;; Recede in height for purposes of note spacing,
1178 ;; so notes in melismata can be freely spaced above lyrics
1179 (extra-spacing-height . (0.2 . -0.2))
1180 (font-series . medium)
1182 (self-alignment-X . ,CENTER)
1183 (stencil . ,lyric-text::print)
1184 (text . ,(grob::calc-property-by-copy 'text))
1186 (X-offset . ,ly:self-alignment-interface::aligned-on-x-parent)
1187 (meta . ((class . Item)
1188 (interfaces . (font-interface
1189 lyric-syllable-interface
1190 rhythmic-grob-interface
1191 self-alignment-interface
1192 text-interface))))))
1202 (stencil . ,ly:measure-grouping::print)
1204 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1205 (meta . ((class . Spanner)
1206 (interfaces . (measure-grouping-interface
1207 side-position-interface))))))
1211 (neutral-direction . ,DOWN)
1212 (meta . ((class . Item)
1213 (interfaces . (melody-spanner-interface))))))
1217 (stencil . ,ly:mensural-ligature::print)
1219 (meta . ((class . Spanner)
1220 (interfaces . (font-interface
1221 mensural-ligature-interface))))))
1225 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1226 (break-visibility . ,end-of-line-invisible)
1228 (extra-spacing-width . (+inf.0 . -inf.0))
1229 (outside-staff-priority . 1000)
1232 (stencil . ,ly:text-interface::print)
1233 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1234 (X-offset . ,(ly:make-simple-closure
1236 ,(ly:make-simple-closure
1237 (list ly:break-alignable-interface::self-align-callback))
1238 ,(ly:make-simple-closure
1239 (list ly:self-alignment-interface::x-aligned-on-self)))))
1240 (self-alignment-X . ,LEFT)
1241 (break-align-symbols . (time-signature))
1242 (non-break-align-symbols . (multi-measure-rest-interface))
1244 (meta . ((class . Item)
1245 (interfaces . (break-alignable-interface
1247 metronome-mark-interface
1248 self-alignment-interface
1249 side-position-interface
1250 text-interface))))))
1255 (hair-thickness . 2.0)
1257 (spacing-pair . (break-alignment . break-alignment))
1258 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1259 (staff-position . 0)
1260 (stencil . ,ly:multi-measure-rest::print)
1261 (thick-thickness . 6.6)
1262 (Y-offset . ,ly:staff-symbol-referencer::callback)
1263 (meta . ((class . Spanner)
1264 (interfaces . (font-interface
1265 multi-measure-interface
1266 multi-measure-rest-interface
1268 staff-symbol-referencer-interface))))))
1270 (MultiMeasureRestNumber
1272 (bound-padding . 2.0)
1274 (font-encoding . fetaText)
1276 (self-alignment-X . ,CENTER)
1278 (springs-and-rods . ,ly:multi-measure-rest::set-text-rods)
1279 (staff-padding . 0.4)
1280 (stencil . ,ly:text-interface::print)
1281 (X-offset . ,(ly:make-simple-closure
1283 ,(ly:make-simple-closure
1284 (list ly:self-alignment-interface::x-aligned-on-self))
1285 ,(ly:make-simple-closure
1286 (list ly:self-alignment-interface::x-centered-on-y-parent)))))
1287 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1288 (meta . ((class . Spanner)
1289 (interfaces . (font-interface
1290 multi-measure-interface
1291 self-alignment-interface
1292 side-position-interface
1293 text-interface))))))
1295 (MultiMeasureRestText
1298 (outside-staff-priority . 450)
1300 (self-alignment-X . ,CENTER)
1301 (staff-padding . 0.25)
1302 (stencil . ,ly:text-interface::print)
1303 (X-offset . ,(ly:make-simple-closure
1305 ,(ly:make-simple-closure
1306 (list ly:self-alignment-interface::x-centered-on-y-parent))
1307 ,(ly:make-simple-closure
1308 (list ly:self-alignment-interface::x-aligned-on-self)))))
1309 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1310 (meta . ((class . Spanner)
1311 (interfaces . (font-interface
1312 multi-measure-interface
1313 self-alignment-interface
1314 side-position-interface
1315 text-interface))))))
1318 (NonMusicalPaperColumn
1320 (allow-loose-spacing . #t)
1322 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1323 (full-measure-extra-space . 1.0)
1324 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1325 ;; sufficient padding to prevent ledger lines from moving over/under
1326 (skyline-vertical-padding . 0.6)
1327 ;; (stencil . ,ly:paper-column::print)
1329 (line-break-permission . allow)
1331 (page-break-permission . allow)
1333 ;; debugging stuff: print column number.
1334 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1336 (X-extent . ,ly:axis-group-interface::width)
1337 (meta . ((class . Paper_column)
1338 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1339 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1340 (interfaces . (axis-group-interface
1342 paper-column-interface
1343 separation-item-interface
1344 spaceable-grob-interface))))))
1349 (positioning-done . ,ly:note-collision-interface::calc-positioning-done)
1350 (prefer-dotted-right . #t)
1351 (X-extent . ,ly:axis-group-interface::width)
1352 (Y-extent . ,ly:axis-group-interface::height)
1353 (meta . ((class . Item)
1354 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1355 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1356 (interfaces . (axis-group-interface
1357 note-collision-interface))))))
1362 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1363 (skyline-vertical-padding . 0.15)
1364 (X-extent . ,ly:axis-group-interface::width)
1365 (Y-extent . ,ly:axis-group-interface::height)
1366 (meta . ((class . Item)
1367 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1368 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1369 (interfaces . (axis-group-interface
1370 note-column-interface
1371 separation-item-interface))))))
1376 (duration-log . ,note-head::calc-duration-log)
1377 (extra-spacing-height . ,ly:note-head::include-ledger-line-height)
1378 (glyph-name . ,note-head::calc-glyph-name)
1379 (ligature-flexa . #f)
1380 (stem-attachment . ,ly:note-head::calc-stem-attachment)
1381 (stencil . ,ly:note-head::print)
1382 (X-offset . ,ly:note-head::stem-x-shift)
1383 (Y-offset . ,ly:staff-symbol-referencer::callback)
1384 (meta . ((class . Item)
1385 (interfaces . (font-interface
1386 gregorian-ligature-interface
1388 mensural-ligature-interface
1390 rhythmic-grob-interface
1391 rhythmic-head-interface
1392 staff-symbol-referencer-interface
1393 vaticana-ligature-interface))))))
1397 (stencil . ,ly:text-interface::print)
1398 (meta . ((class . Item)
1399 (interfaces . (font-interface
1401 text-interface))))))
1405 ;; Changed this from 0.75.
1406 ;; If you ever change this back, please document! --hwn
1407 (knee-spacing-correction . 1.0)
1408 (same-direction-correction . 0.25)
1409 (space-to-barline . #t)
1410 (stem-spacing-correction . 0.5)
1411 (meta . ((class . Item)
1412 (interfaces . (note-spacing-interface
1413 spacing-interface))))))
1418 (break-visibility . ,inherit-x-parent-visibility)
1419 (font-shape . italic)
1421 (self-alignment-X . ,CENTER)
1422 (staff-padding . 0.2)
1423 (stencil . ,ly:text-interface::print)
1424 (X-offset . ,(ly:make-simple-closure
1426 ,(ly:make-simple-closure
1427 (list ly:self-alignment-interface::x-aligned-on-self))
1428 ,(ly:make-simple-closure
1429 (list ly:self-alignment-interface::centered-on-x-parent)))))
1430 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1431 (meta . ((class . Item)
1432 (interfaces . (font-interface
1433 self-alignment-interface
1434 side-position-interface
1435 text-interface))))))
1439 (dash-fraction . 0.3)
1441 (edge-height . (0 . 1.2))
1442 (font-shape . italic)
1443 (minimum-length . 1.0)
1444 (outside-staff-priority . 400)
1446 (shorten-pair . (0.0 . -0.6))
1447 (staff-padding . 1.0)
1448 (stencil . ,ly:ottava-bracket::print)
1449 (style . dashed-line)
1450 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1451 (meta . ((class . Spanner)
1452 (interfaces . (font-interface
1453 horizontal-bracket-interface
1455 ottava-bracket-interface
1456 side-position-interface
1457 text-interface))))))
1462 (allow-loose-spacing . #t)
1464 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1465 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1466 ;; (stencil . ,ly:paper-column::print)
1467 (X-extent . ,ly:axis-group-interface::width)
1470 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1471 (meta . ((class . Paper_column)
1472 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1473 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1474 (interfaces . (axis-group-interface
1476 paper-column-interface
1477 separation-item-interface
1478 spaceable-grob-interface))))))
1484 (stencil . ,parentheses-item::print)
1485 (stencils . ,parentheses-item::calc-parenthesis-stencils)
1486 (meta . ((class . Item)
1487 (interfaces . (font-interface
1488 parentheses-interface))))))
1492 (dot-negative-kern . 0.75)
1493 (font-encoding . fetaMusic)
1495 (spacing-pair . (break-alignment . staff-bar))
1496 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1497 (stencil . ,ly:multi-measure-rest::percent)
1499 (meta . ((class . Spanner)
1500 (interfaces . (font-interface
1501 multi-measure-rest-interface
1502 percent-repeat-interface))))))
1504 (PercentRepeatCounter
1507 (font-encoding . fetaText)
1510 (self-alignment-X . ,CENTER)
1511 (staff-padding . 0.25)
1512 (stencil . ,ly:text-interface::print)
1513 (X-offset . ,(ly:make-simple-closure
1515 ,(ly:make-simple-closure
1516 (list ly:self-alignment-interface::x-centered-on-y-parent))
1517 ,(ly:make-simple-closure
1518 (list ly:self-alignment-interface::x-aligned-on-self)))))
1519 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1520 (meta . ((class . Spanner)
1521 (interfaces . (font-interface
1522 percent-repeat-interface
1523 self-alignment-interface
1524 side-position-interface
1525 text-interface))))))
1529 (control-points . ,ly:slur::calc-control-points)
1530 (cross-staff . ,ly:slur::calc-cross-staff)
1531 (details . ,default-slur-details)
1532 (direction . ,ly:slur::calc-direction)
1533 (height-limit . 2.0)
1534 (minimum-length . 1.5)
1536 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1537 (stencil . ,ly:slur::print)
1539 (Y-extent . ,ly:slur::height)
1540 (meta . ((class . Spanner)
1541 (interfaces . (slur-interface))))))
1543 ;; an example of a text spanner
1546 (bound-padding . 1.0)
1547 (bracket-flare . (0.5 . 0.5))
1549 (edge-height . (1.0 . 1.0))
1550 (shorten-pair . (0.0 . 0.0))
1551 (stencil . ,ly:piano-pedal-bracket::print)
1554 (meta . ((class . Spanner)
1555 (interfaces . (line-interface
1556 piano-pedal-bracket-interface
1557 piano-pedal-interface))))))
1562 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1564 (break-align-symbols . (staff-bar clef))
1565 (break-visibility . ,end-of-line-invisible)
1567 (extra-spacing-width . (+inf.0 . -inf.0))
1570 (outside-staff-priority . 1500)
1572 (self-alignment-X . ,CENTER)
1573 (stencil . ,ly:text-interface::print)
1574 (X-offset . ,(ly:make-simple-closure
1576 ,(ly:make-simple-closure
1577 (list ly:break-alignable-interface::self-align-callback))
1578 ,(ly:make-simple-closure
1579 (list ly:self-alignment-interface::x-aligned-on-self)))))
1580 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1581 (meta . ((class . Item)
1582 (interfaces . (break-alignable-interface
1585 self-alignment-interface
1586 side-position-interface
1587 text-interface))))))
1591 (slash-negative-kern . 0.85)
1593 (stencil . ,ly:percent-repeat-item-interface::beat-slash)
1595 (meta . ((class . Item)
1596 (interfaces . (percent-repeat-interface
1597 percent-repeat-item-interface
1598 rhythmic-grob-interface))))))
1602 (control-points . ,ly:semi-tie::calc-control-points)
1603 (details . ((ratio . 0.333)
1604 (height-limit . 1.0)))
1605 (direction . ,ly:tie::calc-direction)
1606 (head-direction . ,RIGHT)
1607 (stencil . ,ly:tie::print)
1609 (extra-spacing-height . (-0.5 . 0.5))
1610 (meta . ((class . Item)
1611 (interfaces . (semi-tie-interface))))))
1615 (direction . ,ly:tie::calc-direction)
1616 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1617 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1620 (meta . ((class . Item)
1621 (interfaces . (semi-tie-column-interface))))))
1625 (cross-staff . ,ly:rest::calc-cross-staff)
1626 (duration-log . ,stem::calc-duration-log)
1627 (minimum-distance . 0.25)
1628 (stencil . ,ly:rest::print)
1629 (X-extent . ,ly:rest::width)
1630 (Y-extent . ,ly:rest::height)
1631 (Y-offset . ,ly:rest::y-offset-callback)
1632 (meta . ((class . Item)
1633 (interfaces . (font-interface
1635 rhythmic-grob-interface
1636 rhythmic-head-interface
1637 staff-symbol-referencer-interface))))))
1641 (minimum-distance . 0.75)
1642 (positioning-done . ,ly:rest-collision::calc-positioning-done)
1643 (meta . ((class . Item)
1644 (interfaces . (rest-collision-interface))))))
1649 (add-stem-support . #t)
1650 (cross-staff . ,ly:script-interface::calc-cross-staff)
1651 (direction . ,ly:script-interface::calc-direction)
1652 (font-encoding . fetaMusic)
1653 (positioning-done . ,ly:script-interface::calc-positioning-done)
1656 ;; padding set in script definitions.
1657 (staff-padding . 0.25)
1659 (stencil . ,ly:script-interface::print)
1660 (X-offset . ,script-interface::calc-x-offset)
1661 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1662 (meta . ((class . Item)
1663 (interfaces . (font-interface
1665 side-position-interface))))))
1669 (before-line-breaking . ,ly:script-column::before-line-breaking)
1670 (meta . ((class . Item)
1671 (interfaces . (script-column-interface))))))
1675 (before-line-breaking . ,ly:script-column::row-before-line-breaking)
1676 (meta . ((class . Item)
1677 (interfaces . (script-column-interface))))))
1681 (avoid-slur . inside)
1682 (control-points . ,ly:slur::calc-control-points)
1683 (cross-staff . ,ly:slur::calc-cross-staff)
1684 (details . ,default-slur-details)
1685 (direction . ,ly:slur::calc-direction)
1686 (height-limit . 2.0)
1687 (line-thickness . 0.8)
1688 (minimum-length . 1.5)
1690 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1691 (stencil . ,ly:slur::print)
1693 (Y-extent . ,ly:slur::height)
1694 (meta . ((class . Spanner)
1695 (interfaces . (slur-interface))))))
1699 (direction . ,RIGHT)
1700 (extra-spacing-width . (+inf.0 . -inf.0))
1701 (font-shape . italic)
1702 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
1703 (self-alignment-X . ,CENTER)
1704 (stencil . ,ly:text-interface::print)
1705 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1706 (meta . ((class . Item)
1707 (interfaces . (font-interface
1708 piano-pedal-script-interface
1709 self-alignment-interface
1710 text-interface))))))
1712 (SostenutoPedalLineSpanner
1716 (minimum-space . 1.0)
1717 (outside-staff-priority . 1000)
1720 (staff-padding . 1.0)
1721 (X-extent . ,ly:axis-group-interface::width)
1722 (Y-extent . ,ly:axis-group-interface::height)
1723 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1724 (meta . ((class . Spanner)
1725 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1726 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1727 (interfaces . (axis-group-interface
1728 piano-pedal-interface
1729 side-position-interface))))))
1733 (average-spacing-wishes . #t)
1734 (base-shortest-duration . ,(ly:make-moment 3 16))
1735 (common-shortest-duration . ,ly:spacing-spanner::calc-common-shortest-duration)
1736 (shortest-duration-space . 2.0)
1737 (spacing-increment . 1.2)
1738 (springs-and-rods . ,ly:spacing-spanner::set-springs)
1739 (meta . ((class . Spanner)
1740 (interfaces . (spacing-options-interface
1741 spacing-spanner-interface))))))
1745 (allow-span-bar . #t)
1746 (bar-extent . ,ly:axis-group-interface::height)
1747 (before-line-breaking . ,ly:span-bar::before-line-breaking)
1748 (break-align-symbol . staff-bar)
1750 (glyph-name . ,ly:span-bar::calc-glyph-name)
1752 ;; ugh duplication! (these 4 properties were copied from Barline)
1754 ;; Ross. page 151 lists other values, we opt for a leaner look
1758 (hair-thickness . 1.6)
1759 (thick-thickness . 6.0)
1763 (stencil . ,ly:span-bar::print)
1764 (X-extent . ,ly:span-bar::width)
1765 (Y-extent . ,ly:axis-group-interface::height)
1766 (meta . ((class . Item)
1767 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1768 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1769 (interfaces . (bar-line-interface
1771 span-bar-interface))))))
1775 (staff-staff-spacing . ((basic-distance . 9)
1776 (minimum-distance . 7)
1778 (stretchability . 5)))
1779 (staffgroup-staff-spacing . ((basic-distance . 10.5)
1780 (minimum-distance . 8)
1782 (stretchability . 9)))
1783 (meta . ((class . Spanner)
1784 (interfaces . (staff-grouper-interface))))))
1789 (stem-spacing-correction . 0.4)
1790 (meta . ((class . Item)
1791 (interfaces . (spacing-interface
1792 staff-spacing-interface))))))
1797 (ledger-line-thickness . (1.0 . 0.1))
1799 (stencil . ,ly:staff-symbol::print)
1800 (Y-extent . ,ly:staff-symbol::height)
1801 (meta . ((class . Spanner)
1802 (interfaces . (staff-symbol-interface))))))
1807 (font-series . bold)
1810 (stencil . ,ly:text-interface::print)
1811 (X-offset . ,ly:side-position-interface::x-aligned-side)
1812 (meta . ((class . Item)
1813 (interfaces . (font-interface
1814 side-position-interface
1815 stanza-number-interface
1816 text-interface))))))
1820 (beamlet-default-length . (1.1 . 1.1))
1821 (beamlet-max-length-proportion . (0.75 . 0.75))
1822 (cross-staff . ,ly:stem::calc-cross-staff)
1823 (default-direction . ,ly:stem::calc-default-direction)
1826 ;; 3.5 (or 3 measured from note head) is standard length
1827 ;; 32nd, 64th, 128th flagged stems should be longer
1828 (lengths . (3.5 3.5 3.5 4.5 5.0 6.0))
1830 ;; FIXME. 3.5 yields too long beams (according to Ross and
1831 ;; looking at Baerenreiter examples) for a number of common
1832 ;; boundary cases. Subtracting half a beam thickness fixes
1833 ;; this, but the bug may well be somewhere else.
1835 ;; FIXME this should come from 'lengths
1836 (beamed-lengths . (3.26 3.5 3.6))
1838 ;; The 'normal' minima
1839 (beamed-minimum-free-lengths . (1.83 1.5 1.25))
1840 ;(beamed-minimum-free-lengths . (2.0 1.83 1.25))
1842 ;; The 'extreme case' minima
1843 (beamed-extreme-minimum-free-lengths . (2.0 1.25))
1845 ;; Stems in unnatural (forced) direction should be shortened by
1846 ;; one staff space, according to [Roush & Gourlay].
1847 ;; Flagged stems we shorten only half a staff space.
1848 (stem-shorten . (1.0 0.5))
1852 ;; We use the normal minima as minimum for the ideal lengths,
1853 ;; and the extreme minima as abolute minimum length.
1855 (direction . ,ly:stem::calc-direction)
1856 (duration-log . ,stem::calc-duration-log)
1857 (flag . ,ly:stem::calc-flag)
1858 (length . ,ly:stem::calc-length)
1859 (neutral-direction . ,DOWN)
1860 (positioning-done . ,ly:stem::calc-positioning-done)
1861 (stem-end-position . ,ly:stem::calc-stem-end-position)
1862 (stem-info . ,ly:stem::calc-stem-info)
1863 (stencil . ,ly:stem::print)
1865 (X-extent . ,ly:stem::width)
1866 (X-offset . ,ly:stem::offset-callback)
1867 (Y-extent . ,ly:stem::height)
1868 (Y-offset . ,ly:staff-symbol-referencer::callback)
1869 (meta . ((class . Item)
1870 (interfaces . (font-interface
1871 stem-interface))))))
1875 (beam-thickness . 0.48) ; staff-space
1876 (beam-width . ,ly:stem-tremolo::calc-width) ; staff-space
1877 (slope . ,ly:stem-tremolo::calc-slope)
1878 (stencil . ,ly:stem-tremolo::print)
1879 (style . ,ly:stem-tremolo::calc-style)
1880 (X-extent . ,ly:stem-tremolo::width)
1881 (Y-extent . ,ly:stem-tremolo::height)
1882 (meta . ((class . Item)
1883 (interfaces . (stem-tremolo-interface))))))
1887 (avoid-slur . around)
1888 (font-encoding . fetaText)
1889 (font-size . -5) ; don't overlap when next to heads.
1891 (script-priority . 100)
1892 (self-alignment-X . ,CENTER)
1893 (self-alignment-Y . ,CENTER)
1894 (staff-padding . 0.5)
1895 (stencil . ,print-circled-text-callback)
1896 (text . ,string-number::calc-text)
1897 (meta . ((class . Item)
1898 (interfaces . (font-interface
1899 self-alignment-interface
1900 side-position-interface
1901 string-number-interface
1903 text-script-interface))))))
1907 (digit-names . #("p" "i" "m" "a" "x"))
1908 (font-shape . italic)
1909 (font-size . -4) ; don't overlap when next to heads.
1911 (script-priority . 100)
1912 (self-alignment-X . ,CENTER)
1913 (self-alignment-Y . ,CENTER)
1914 (staff-padding . 0.5)
1915 (stencil . ,ly:text-interface::print)
1916 (text . ,stroke-finger::calc-text)
1917 (meta . ((class . Item)
1918 (interfaces . (font-interface
1919 self-alignment-interface
1920 side-position-interface
1921 stroke-finger-interface
1923 text-script-interface))))))
1927 (direction . ,RIGHT)
1928 (extra-spacing-width . (+inf.0 . -inf.0))
1929 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
1930 (self-alignment-X . ,CENTER)
1931 (stencil . ,ly:sustain-pedal::print)
1932 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1933 (meta . ((class . Item)
1934 (interfaces . (font-interface
1935 piano-pedal-interface
1936 piano-pedal-script-interface
1937 self-alignment-interface
1938 text-interface))))))
1940 (SustainPedalLineSpanner
1944 (minimum-space . 1.0)
1945 (outside-staff-priority . 1000)
1948 (staff-padding . 1.2)
1949 (X-extent . ,ly:axis-group-interface::width)
1950 (Y-extent . ,ly:axis-group-interface::height)
1951 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1952 (meta . ((class . Spanner)
1953 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1954 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1955 (interfaces . (axis-group-interface
1956 piano-pedal-interface
1957 side-position-interface))))))
1961 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
1963 (skyline-horizontal-padding . 0.5)
1964 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
1965 (X-extent . ,ly:axis-group-interface::width)
1966 (Y-extent . ,ly:system::height)
1967 (meta . ((class . System)
1968 (object-callbacks . ((pure-relevant-grobs . ,ly:system::calc-pure-relevant-grobs)
1969 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)))
1970 (interfaces . (axis-group-interface
1971 system-interface))))))
1975 (collapse-height . 5.0)
1979 (padding . -0.1) ;; bar must cover rounded ending of staff line.
1980 (stencil . ,ly:system-start-delimiter::print)
1983 (X-offset . ,ly:side-position-interface::x-aligned-side)
1985 (meta . ((class . Spanner)
1986 (interfaces . (side-position-interface
1987 system-start-delimiter-interface))))))
1991 (collapse-height . 5.0)
1993 (font-encoding . fetaBraces)
1995 (stencil . ,ly:system-start-delimiter::print)
1997 (X-offset . ,ly:side-position-interface::x-aligned-side)
1999 (meta . ((class . Spanner)
2000 (interfaces . (font-interface
2001 side-position-interface
2002 system-start-delimiter-interface))))))
2006 (collapse-height . 5.0)
2009 (stencil . ,ly:system-start-delimiter::print)
2012 (X-offset . ,ly:side-position-interface::x-aligned-side)
2014 (meta . ((class . Spanner)
2015 (interfaces . (font-interface
2016 side-position-interface
2017 system-start-delimiter-interface))))))
2022 (stencil . ,ly:system-start-delimiter::print)
2023 (style . line-bracket)
2025 (X-offset . ,ly:side-position-interface::x-aligned-side)
2027 (meta . ((class . Spanner)
2028 (interfaces . (font-interface
2029 side-position-interface
2030 system-start-delimiter-interface))))))
2035 (details . ((cautionary-properties . ((angularity . 0.4)
2036 (half-thickness . 0.075)
2038 (procedure . ,parenthesize-stencil)
2041 (harmonic-properties . ((angularity . 2)
2042 (half-thickness . 0.075)
2044 (procedure . ,parenthesize-stencil)
2046 (repeat-tied-properties . ((note-head-visible . #t)
2047 (parenthesize . #t)))
2048 (tied-properties . ((break-visibility . ,begin-of-line-visible)
2049 (parenthesize . #t)))))
2051 (direction . ,CENTER)
2052 (duration-log . ,note-head::calc-duration-log)
2053 (font-series . bold)
2055 (stem-attachment . (0.0 . 1.35))
2056 (stencil . ,tab-note-head::print)
2058 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2059 (Y-offset . ,ly:staff-symbol-referencer::callback)
2060 (meta . ((class . Item)
2061 (interfaces . (font-interface
2063 rhythmic-grob-interface
2064 rhythmic-head-interface
2065 staff-symbol-referencer-interface
2066 tab-note-head-interface
2067 text-interface))))))
2071 (avoid-slur . around)
2072 (cross-staff . ,ly:script-interface::calc-cross-staff)
2074 (extra-spacing-width . (+inf.0 . -inf.0))
2075 (outside-staff-priority . 450)
2077 ;; sync with Fingering ?
2080 (script-priority . 200)
2082 (slur-padding . 0.5)
2083 (staff-padding . 0.5)
2084 (stencil . ,ly:text-interface::print)
2085 ;; todo: add X self alignment?
2086 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2087 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2088 (meta . ((class . Item)
2089 (interfaces . (font-interface
2090 instrument-specific-markup-interface
2091 self-alignment-interface
2092 side-position-interface
2094 text-script-interface))))))
2098 (bound-details . ((left . ((Y . 0)
2100 (attach-dir . ,LEFT)
2102 (left-broken . ((end-on-note . #t)))
2107 (dash-fraction . 0.2)
2110 (font-shape . italic)
2111 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2112 (outside-staff-priority . 350)
2113 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2115 (staff-padding . 0.8)
2116 (stencil . ,ly:line-spanner::print)
2117 (style . dashed-line)
2118 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2120 (meta . ((class . Spanner)
2121 (interfaces . (font-interface
2123 line-spanner-interface
2124 side-position-interface))))))
2128 (avoid-slur . inside)
2129 (control-points . ,ly:tie::calc-control-points)
2131 ;; for a full list, see tie-details.cc
2133 (center-staff-line-clearance . 0.6)
2134 (tip-staff-line-clearance . 0.45)
2135 (note-head-gap . 0.2)
2137 (height-limit . 1.0)
2138 (horizontal-distance-penalty-factor . 10)
2139 (same-dir-as-stem-penalty . 8)
2140 (min-length-penalty-factor . 26)
2141 (tie-tie-collision-distance . 0.45)
2142 (tie-tie-collision-penalty . 25.0)
2143 (intra-space-threshold . 1.25)
2144 (outer-tie-vertical-distance-symmetry-penalty-factor . 10)
2145 (outer-tie-length-symmetry-penalty-factor . 10)
2146 (vertical-distance-penalty-factor . 7)
2147 (outer-tie-vertical-gap . 0.25)
2148 (multi-tie-region-size . 3)
2149 (single-tie-region-size . 4)
2150 (between-length-limit . 1.0)))
2152 (direction . ,ly:tie::calc-direction)
2154 (line-thickness . 0.8)
2155 (neutral-direction . ,UP)
2156 (springs-and-rods . ,ly:spanner::set-spacing-rods)
2157 (stencil . ,ly:tie::print)
2159 (meta . ((class . Spanner)
2160 (interfaces . (tie-interface))))))
2164 (before-line-breaking . ,ly:tie-column::before-line-breaking)
2165 (positioning-done . ,ly:tie-column::calc-positioning-done)
2168 (meta . ((class . Spanner)
2169 (interfaces . (tie-column-interface))))))
2173 (avoid-slur . inside)
2175 . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
2176 (break-align-symbol . time-signature)
2177 (break-align-anchor-alignment . ,LEFT)
2178 (break-visibility . ,all-visible)
2179 (extra-spacing-height . (-1.0 . 1.0))
2182 (cue-clef . (extra-space . 1.5))
2183 (first-note . (fixed-space . 2.0))
2184 (right-edge . (extra-space . 0.5))
2185 (staff-bar . (minimum-space . 2.0))))
2186 (stencil . ,ly:time-signature::print)
2188 (meta . ((class . Item)
2189 (interfaces . (break-aligned-interface
2191 time-signature-interface))))))
2193 (TrillPitchAccidental
2197 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
2200 (stencil . ,ly:accidental-interface::print)
2201 (X-offset . ,ly:side-position-interface::x-aligned-side)
2202 (Y-extent . ,ly:accidental-interface::height)
2203 (meta . ((class . Item)
2204 (interfaces . (accidental-interface
2206 side-position-interface
2207 trill-pitch-accidental-interface))))))
2212 (direction . ,RIGHT)
2216 (stencil . ,parenthesize-elements)
2217 (stencils . ,parentheses-item::calc-parenthesis-stencils)
2218 (X-offset . ,ly:side-position-interface::x-aligned-side)
2219 (meta . ((class . Item)
2220 (interfaces . (axis-group-interface
2223 parentheses-interface
2224 side-position-interface))))))
2230 (stencil . ,ly:note-head::print)
2231 (Y-offset . ,ly:staff-symbol-referencer::callback)
2232 (meta . ((class . Item)
2233 (interfaces . (font-interface
2235 pitched-trill-interface
2236 rhythmic-head-interface
2237 staff-symbol-referencer-interface))))))
2241 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2242 (bound-details . ((left . ((text . ,(make-musicglyph-markup "scripts.trill"))
2244 (stencil-offset . (-0.5 . -1))
2246 (attach-dir . ,CENTER)
2248 (left-broken . ((end-on-note . #t)))
2252 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2253 (outside-staff-priority . 50)
2255 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2257 (staff-padding . 1.0)
2258 (stencil . ,ly:line-spanner::print)
2260 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2261 (meta . ((class . Spanner)
2262 (interfaces . (font-interface
2264 line-spanner-interface
2265 side-position-interface
2266 trill-spanner-interface))))))
2270 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
2271 (control-points . ,ly:tuplet-bracket::calc-control-points)
2272 (cross-staff . ,ly:tuplet-bracket::calc-cross-staff)
2273 (direction . ,ly:tuplet-bracket::calc-direction)
2274 (edge-height . (0.7 . 0.7))
2275 (full-length-to-extent . #t)
2277 (positions . ,ly:tuplet-bracket::calc-positions)
2278 (shorten-pair . (-0.2 . -0.2))
2279 (staff-padding . 0.25)
2280 (stencil . ,ly:tuplet-bracket::print)
2283 (meta . ((class . Spanner)
2284 (interfaces . (line-interface
2285 tuplet-bracket-interface))))))
2289 (avoid-slur . inside)
2290 (cross-staff . ,ly:tuplet-number::calc-cross-staff)
2291 (font-shape . italic)
2293 (stencil . ,ly:tuplet-number::print)
2294 (text . ,tuplet-number::calc-denominator-text)
2295 (meta . ((class . Spanner)
2296 (interfaces . (font-interface
2298 tuplet-number-interface))))))
2303 (direction . ,RIGHT)
2304 (extra-spacing-width . (+inf.0 . -inf.0))
2305 (font-shape . italic)
2306 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
2307 (self-alignment-X . ,CENTER)
2308 (stencil . ,ly:text-interface::print)
2309 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2310 (meta . ((class . Item)
2311 (interfaces . (font-interface
2312 piano-pedal-script-interface
2313 self-alignment-interface
2314 text-interface))))))
2316 (UnaCordaPedalLineSpanner
2320 (minimum-space . 1.0)
2321 (outside-staff-priority . 1000)
2324 (staff-padding . 1.2)
2325 (X-extent . ,ly:axis-group-interface::width)
2326 (Y-extent . ,ly:axis-group-interface::height)
2327 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2328 (meta . ((class . Spanner)
2329 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2330 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2331 (interfaces . (axis-group-interface
2332 piano-pedal-interface
2333 side-position-interface))))))
2339 (stencil . ,ly:vaticana-ligature::print)
2341 (meta . ((class . Spanner)
2342 (interfaces . (font-interface
2343 vaticana-ligature-interface))))))
2348 (positioning-done . ,ly:align-interface::align-to-ideal-distances)
2350 (vertical-skylines . ,ly:axis-group-interface::combine-skylines)
2351 (X-extent . ,ly:axis-group-interface::width)
2352 (Y-extent . ,ly:axis-group-interface::height)
2353 (meta . ((class . Spanner)
2354 (object-callbacks . ((Y-common . ,ly:axis-group-interface::calc-y-common)
2355 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)
2356 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)))
2357 (interfaces . (align-interface
2358 axis-group-interface))))))
2362 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2364 (default-staff-staff-spacing . ((basic-distance . 9)
2365 (minimum-distance . 8)
2367 (nonstaff-unrelatedstaff-spacing . ((padding . 0.5)))
2368 (staff-staff-spacing . ,ly:axis-group-interface::calc-staff-staff-spacing)
2369 (stencil . ,ly:axis-group-interface::print)
2370 (vertical-skylines . ,ly:hara-kiri-group-spanner::calc-skylines)
2371 (X-extent . ,ly:axis-group-interface::width)
2372 (Y-extent . ,ly:hara-kiri-group-spanner::y-extent)
2373 (Y-offset . ,ly:hara-kiri-group-spanner::force-hara-kiri-callback)
2374 (meta . ((class . Spanner)
2375 (object-callbacks . (
2376 (X-common . ,ly:axis-group-interface::calc-x-common)
2377 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2378 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2380 (interfaces . (axis-group-interface
2381 hara-kiri-group-spanner-interface))))))
2385 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2386 (bound-details . ((right . ((attach-dir . ,CENTER)
2389 (left . ((attach-dir . ,CENTER)
2394 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2396 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2397 (stencil . ,ly:line-spanner::print)
2401 (meta . ((class . Spanner)
2402 (interfaces . (line-interface
2403 line-spanner-interface))))))
2408 (edge-height . (2.0 . 2.0)) ;; staff-space;
2409 (font-encoding . fetaText)
2411 (stencil . ,ly:volta-bracket-interface::print)
2412 (thickness . 1.6) ;; line-thickness
2414 (meta . ((class . Spanner)
2415 (interfaces . (font-interface
2416 horizontal-bracket-interface
2418 side-position-interface
2420 volta-bracket-interface
2421 volta-interface))))))
2423 (VoltaBracketSpanner
2425 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
2429 (outside-staff-priority . 600)
2432 (X-extent . ,ly:axis-group-interface::width)
2433 (Y-extent . ,ly:axis-group-interface::height)
2434 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2435 (meta . ((class . Spanner)
2436 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2437 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2438 (interfaces . (axis-group-interface
2439 side-position-interface
2440 volta-interface))))))
2444 (define (completize-grob-entry x)
2445 "Transplant assoc key into 'name entry of 'meta of X. Set interfaces for Item, Spanner etc.
2447 ;; (display (car x))
2449 (let* ((name-sym (car x))
2450 (grob-entry (cdr x))
2451 (meta-entry (assoc-get 'meta grob-entry))
2452 (class (assoc-get 'class meta-entry))
2454 (assoc-get 'interfaces meta-entry)))
2458 (set! ifaces-entry (cons 'item-interface ifaces-entry)))
2459 ((eq? 'Spanner class)
2460 (set! ifaces-entry (cons 'spanner-interface ifaces-entry)))
2461 ((eq? 'Paper_column class)
2462 (set! ifaces-entry (cons 'item-interface
2463 (cons 'paper-column-interface ifaces-entry))))
2464 ((eq? 'System class)
2465 (set! ifaces-entry (cons 'system-interface
2466 (cons 'spanner-interface ifaces-entry))))
2468 (ly:warning "Unknown class ~a" class)))
2470 (set! ifaces-entry (uniq-list (sort ifaces-entry symbol<?)))
2471 (set! ifaces-entry (cons 'grob-interface ifaces-entry))
2473 (set! meta-entry (assoc-set! meta-entry 'name name-sym))
2474 (set! meta-entry (assoc-set! meta-entry 'interfaces
2476 (set! grob-entry (assoc-set! grob-entry 'meta meta-entry))
2477 (cons name-sym grob-entry)))
2479 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
2481 ;; (display (map pair? all-grob-descriptions))
2483 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
2486 ;; (display (car x)) (newline)
2488 (set-object-property! (car x) 'translation-type? list?)
2489 (set-object-property! (car x) 'is-grob? #t))
2490 all-grob-descriptions)
2492 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))
2494 (define (volta-bracket-interface::pure-height grob start end)
2495 (let ((edge-height (ly:grob-property grob 'edge-height)))
2496 (if (number-pair? edge-height)
2497 (let ((smaller (min (car edge-height) (cdr edge-height)))
2498 (larger (max (car edge-height) (cdr edge-height))))
2499 (interval-union '(0 . 0) (cons smaller larger)))
2502 (define pure-print-callbacks
2504 fret-board::calc-stencil
2505 note-head::brew-ez-stencil
2506 print-circled-text-callback
2507 laissez-vibrer::print
2510 ly:mensural-ligature::brew-ligature-primitive
2514 ly:key-signature-interface::print
2515 ly:percent-repeat-item-interface::beat-slash
2516 ly:text-interface::print
2517 ly:script-interface::print
2518 ly:sustain-pedal::print))
2520 ;; Sometimes we have grobs with (Y-extent . ,ly:grob::stencil-height)
2521 ;; and the print function is not pure, but there is a easy way to
2522 ;; figure out the Y-extent from the print function.
2523 (define pure-print-to-height-conversions
2525 (,ly:arpeggio::print . ,ly:arpeggio::pure-height)
2526 (,ly:arpeggio::brew-chord-bracket . ,ly:arpeggio::pure-height)
2527 (,ly:arpeggio::brew-chord-slur . ,ly:arpeggio::pure-height)
2528 (,ly:hairpin::print . ,ly:hairpin::pure-height)
2529 (,ly:volta-bracket-interface::print . ,volta-bracket-interface::pure-height)))
2531 ;; ly:grob::stencil-extent is safe if the print callback is safe too
2532 (define (pure-stencil-height grob start stop)
2533 (let* ((sten (ly:grob-property-data grob 'stencil))
2534 (pure-height-callback (assoc-get sten pure-print-to-height-conversions)))
2537 (memq sten pure-print-callbacks))
2538 (ly:grob::stencil-height grob))
2539 ((procedure? pure-height-callback)
2540 (pure-height-callback grob start stop))
2544 ;; Sometimes, a pure callback will be chained to a non-pure callback via
2545 ;; chain_offset_callback, in which case this provides a default by simply
2546 ;; passing through the value from the pure callback.
2547 (define (pure-chain-offset-callback grob start end prev-offset) prev-offset)
2549 (define pure-conversions-alist
2551 (,ly:accidental-interface::height . ,ly:accidental-interface::pure-height)
2552 (,ly:axis-group-interface::calc-staff-staff-spacing . ,ly:axis-group-interface::calc-pure-staff-staff-spacing)
2553 (,ly:axis-group-interface::height . ,ly:axis-group-interface::pure-height)
2554 (,ly:grob::stencil-height . ,pure-stencil-height)
2555 (,ly:hara-kiri-group-spanner::y-extent . ,ly:hara-kiri-group-spanner::pure-height)
2556 (,ly:rest-collision::force-shift-callback-rest . ,pure-chain-offset-callback)
2557 (,ly:rest::height . ,ly:rest::pure-height)
2558 (,ly:self-alignment-interface::y-aligned-on-self . ,ly:self-alignment-interface::pure-y-aligned-on-self)
2559 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)
2560 (,ly:slur::height . ,ly:slur::pure-height)
2561 (,ly:slur::outside-slur-callback . ,ly:slur::pure-outside-slur-callback)
2562 (,ly:stem::height . ,ly:stem::pure-height)
2563 (,ly:system::height . ,ly:system::calc-pure-height)))
2565 (define pure-functions
2567 parenthesize-elements
2568 laissez-vibrer::print
2569 ly:rest::y-offset-callback
2570 ly:staff-symbol-referencer::callback
2571 ly:staff-symbol::height))
2573 (define-public (pure-relevant? grob)
2574 (let ((extent-callback (ly:grob-property-data grob 'Y-extent)))
2577 (pair? extent-callback)
2578 (memq extent-callback pure-functions)
2580 (pair? (assq extent-callback pure-conversions-alist))
2581 (let ((stencil (ly:grob-property-data grob 'stencil)))
2583 (not (eq? extent-callback ly:grob::stencil-height))
2584 (memq stencil pure-print-callbacks)
2585 (assq stencil pure-print-to-height-conversions)
2586 (ly:stencil? stencil)))))))))
2588 (define-public (call-pure-function unpure args start end)
2589 (if (ly:simple-closure? unpure)
2590 (ly:eval-simple-closure (car args) unpure start end)
2591 (if (not (procedure? unpure))
2593 (if (memq unpure pure-functions)
2595 (let ((pure (assq unpure pure-conversions-alist)))
2599 (list (car args) start end)