1 ;;;; define-grobs.scm --
3 ;;;; source file of the GNU LilyPond music typesetter
5 ;;;; (c) 1998--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
6 ;;;; Jan Nieuwenhuizen <janneke@gnu.org>
8 ;;;; distances are given in line-thickness (thicknesses) and
9 ;;;; staff-space (distances)
11 ;;;; WARNING: the meta field should be the last one.
12 ;;;; WARNING: don't use anonymous functions for initialization.
14 ;; TODO: junk the meta field in favor of something more compact?
16 ;;; todo:: reorder sensibly.
18 (define-public all-grob-descriptions
23 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
24 (alteration . ,accidental-interface::calc-alteration)
25 (stencil . ,ly:accidental-interface::print)
26 (Y-extent . ,ly:accidental-interface::height)
27 (X-extent . ,ly:accidental-interface::width)
28 (meta . ((class . Item)
29 (interfaces . (accidental-interface
36 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
37 (alteration . ,accidental-interface::calc-alteration)
38 (stencil . ,ly:accidental-interface::print)
39 (Y-extent . ,ly:accidental-interface::height)
40 (meta . ((class . Item)
41 (interfaces . (accidental-interface
46 (stencil . ,ly:accidental-interface::print)
47 (X-extent . ,ly:accidental-interface::width)
48 (Y-extent . ,ly:accidental-interface::height)
49 (X-offset . ,(ly:make-simple-closure
51 ,(ly:make-simple-closure
52 (list ly:self-alignment-interface::centered-on-x-parent))
53 ,(ly:make-simple-closure
54 (list ly:self-alignment-interface::x-aligned-on-self)))))
55 (self-alignment-X . ,CENTER)
57 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
58 (alteration . ,accidental-interface::calc-alteration)
59 (Y-offset . ,ly:side-position-interface::y-aligned-side)
61 (staff-padding . 0.25)
62 (outside-staff-priority . 0)
65 (meta . ((class . Item)
66 (interfaces . (side-position-interface
69 accidental-suggestion-interface
70 self-alignment-interface
77 ;; for horizontally stacked scripts.
78 (script-priority . -100)
81 (positioning-done . ,ly:accidental-placement::calc-positioning-done)
82 (X-extent . ,ly:axis-group-interface::width)
84 ;; this is quite small, but it is very ugly to have
85 ;; accs closer to the previous note than to the next one.
86 (right-padding . 0.15)
87 (meta . ((class . Item)
88 (interfaces . (accidental-placement-interface))))))
93 (X-extent . ,ly:axis-group-interface::width)
94 (Y-extent . ,ly:axis-group-interface::height)
96 (clef . (extra-space . 0.5))
97 (key-signature . (extra-space . 0.0))
98 (staff-bar . (extra-space . 0.0))
99 (time-signature . (extra-space . 0.0))
100 (first-note . (fixed-space . 0.0))))
102 (break-align-symbol . ambitus)
103 (break-visibility . ,begin-of-line-visible)
104 (meta . ((class . Item)
105 (interfaces . (axis-group-interface
106 break-aligned-interface
107 ambitus-interface))))))
111 (stencil . ,ly:ambitus::print)
114 (X-offset . ,ly:self-alignment-interface::centered-on-x-parent)
115 (meta . ((class . Item)
116 (interfaces . (ambitus-interface
117 staff-symbol-referencer-interface
121 (font-family . music)
123 (X-offset . ,ly:side-position-interface::x-aligned-side)
125 (stencil . ,ly:accidental-interface::print)
126 (Y-extent . ,ly:accidental-interface::height)
127 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
129 (meta . ((class . Item)
132 break-aligned-interface
133 side-position-interface
139 (stencil . ,ly:note-head::print)
140 (glyph-name . ,note-head::calc-glyph-name)
141 (Y-offset . ,ly:staff-symbol-referencer::callback)
142 (meta . ((class . Item)
143 (interfaces . (font-interface
146 staff-symbol-referencer-interface
147 rhythmic-head-interface
148 ledgered-interface))))))
151 . ((X-extent . ,ly:arpeggio::width)
152 (stencil . ,ly:arpeggio::print)
153 (Y-offset . ,ly:staff-symbol-referencer::callback)
154 (X-offset . ,ly:side-position-interface::x-aligned-side)
156 (positions . ,ly:arpeggio::calc-positions)
158 (script-priority . 0)
160 (staff-position . 0.0)
161 (Y-extent . ,ly:arpeggio::height)
162 (meta . ((class . Item)
163 (interfaces . (arpeggio-interface
164 staff-symbol-referencer-interface
165 side-position-interface
169 . ((stencil . ,ly:balloon-interface::print)
170 (text . ,(grob::calc-property-by-copy 'text))
171 (X-offset . ,(grob::calc-property-by-copy 'X-offset))
172 (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
173 (meta . ((class . Item)
174 (interfaces . (text-interface
178 (break-align-symbol . staff-bar)
179 (break-align-anchor . ,ly:bar-line::calc-anchor)
183 (break-visibility . ,bar-line::calc-break-visibility)
185 (stencil . ,ly:bar-line::print)
186 (glyph-name . ,bar-line::calc-glyph-name)
187 (bar-size . ,ly:bar-line::calc-bar-size)
188 (bar-extent . ,ly:bar-line::calc-bar-extent)
189 (allow-span-bar . #t)
192 (time-signature . (extra-space . 0.75))
193 (custos . (minimum-space . 2.0))
194 (clef . (minimum-space . 1.0))
195 (key-signature . (extra-space . 1.0))
196 (key-cancellation . (extra-space . 1.0))
197 (first-note . (fixed-space . 1.3))
198 (next-note . (semi-fixed-space . 0.9))
199 (right-edge . (extra-space . 0.0))))
202 ;; Ross. page 151 lists other values, we opt for a leaner look
205 ;; kern should scale with line-thickness too.
208 (hair-thickness . 1.9)
209 (thick-thickness . 6.0)
210 (meta . ((class . Item)
211 (interfaces . (bar-line-interface
212 break-aligned-interface
217 (stencil . ,ly:text-interface::print)
219 (break-visibility . ,begin-of-line-visible)
222 (font-family . roman)
224 (Y-offset . ,ly:side-position-interface::y-aligned-side)
226 (outside-staff-priority . 100)
227 (X-offset . ,(ly:make-simple-closure
229 ,(ly:make-simple-closure
230 (list ly:break-alignable-interface::self-align-callback))
231 ,(ly:make-simple-closure
232 (list ly:self-alignment-interface::x-aligned-on-self)))))
234 (self-alignment-X . 1)
236 ;; want the bar number before the clef at line start.
237 (break-align-symbols . (left-edge staff-bar))
240 (interfaces . (side-position-interface
242 break-alignable-interface
243 self-alignment-interface
248 (stencil . ,ly:text-interface::print)
249 (meta . ((class . Item)
250 (interfaces . (text-interface
251 rhythmic-grob-interface
252 bass-figure-interface
258 (threshold . (2 . 1000))
259 (positioning-done . ,ly:align-interface::calc-positioning-done)
260 (Y-extent . ,ly:axis-group-interface::height)
261 (stacking-dir . ,DOWN)
263 (meta . ((class . Spanner)
264 (interfaces . (align-interface
265 bass-figure-alignment-interface
266 axis-group-interface))))))
268 (BassFigureAlignmentPositioning
269 . ((Y-offset . ,ly:side-position-interface::y-aligned-side)
272 (Y-extent . ,ly:axis-group-interface::height)
274 (staff-padding . 1.0)
276 (meta . ((class . Spanner)
277 (interfaces . (side-position-interface
278 axis-group-interface))))))
282 (stencil . ,ly:enclosing-bracket::print)
283 (X-extent . ,ly:enclosing-bracket::width)
284 (edge-height . (0.2 . 0.2))
285 (meta . ((class . Item)
286 (interfaces . (enclosing-bracket-interface))))))
288 (BassFigureContinuation
290 (stencil . ,ly:figured-bass-continuation::print)
291 (Y-offset . ,ly:figured-bass-continuation::center-on-figures)
292 (meta . ((class . Spanner)
293 (interfaces . (figured-bass-continuation-interface))))))
298 (Y-extent . ,ly:axis-group-interface::height)
299 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
300 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
301 (meta . ((class . Spanner)
302 (interfaces . (axis-group-interface))))))
307 ;; todo: clean this up a bit: the list is getting
310 (positions . ,(ly:make-simple-closure
311 (ly:make-simple-closure
312 (list chain-grob-member-functions
314 ly:beam::calc-least-squares-positions
315 ly:beam::slope-damping
316 ly:beam::shift-region-to-valid
320 ;; this is a hack to set stem lengths, if positions is set.
321 (quantized-positions . ,ly:beam::set-stem-lengths)
322 (concaveness . ,ly:beam::calc-concaveness)
323 (direction . ,ly:beam::calc-direction)
324 (shorten . ,ly:beam::calc-stem-shorten)
325 (beaming . ,ly:beam::calc-beaming)
326 (stencil . ,ly:beam::print)
328 (cross-staff . ,ly:beam::calc-cross-staff)
330 (details . ((hint-direction-penalty . 20)))
331 ;; TODO: should be in SLT.
332 (thickness . 0.48) ; in staff-space
333 (neutral-direction . ,DOWN)
335 ;; Whe have some unreferenced problems here.
337 ;; If we shorten beamed stems less than normal stems (1 staff-space),
338 ;; or high order less than 8th beams, patterns like
339 ;; c''4 [c''8 c''] c''4 [c''16 c]
340 ;; are ugly (different stem lengths).
342 ;; But if we shorten 16th beams as much as 8th beams, a single
343 ;; forced 16th beam looks *very* short.
345 ;; We choose to shorten 8th beams the same as single stems,
346 ;; and high order beams less than 8th beams, so that all
347 ;; isolated shortened beams look nice and a bit shortened,
348 ;; sadly possibly breaking patterns with high order beams.
349 (beamed-stem-shorten . (1.0 0.5 0.25))
351 (auto-knee-gap . 5.5)
353 ;; only for debugging.
354 (font-family . roman)
355 (meta . ((class . Spanner)
356 (object-callbacks . ((normal-stems . ,ly:beam::calc-normal-stems)))
357 (interfaces . (staff-symbol-referencer-interface
358 unbreakable-spanner-interface
363 (stencil . ,bend::print)
365 (meta . ((class . Spanner)
366 (interfaces . (spanner-interface
367 bend-after-interface))))))
373 (positioning-done . ,ly:break-alignment-interface::calc-positioning-done)
374 (X-extent . ,ly:axis-group-interface::width)
375 (break-align-orders . ;; end of line
397 time-signature custos)
411 (meta . ((class . Item)
412 (interfaces . (break-alignment-interface
413 axis-group-interface))))))
418 (X-extent . ,ly:axis-group-interface::width)
419 (break-align-anchor . ,ly:break-aligned-interface::calc-average-anchor)
420 (break-visibility . ,ly:break-aligned-interface::calc-break-visibility)
421 (meta . ((class . Item)
422 (interfaces . (break-aligned-interface
423 axis-group-interface))))))
427 (break-align-symbol . breathing-sign)
430 (ambitus . (extra-space . 2.0))
431 (custos . (minimum-space . 1.0))
432 (key-signature . (minimum-space . 1.5))
433 (time-signature . (minimum-space . 1.5))
434 (staff-bar . (minimum-space . 1.5))
435 (clef . (minimum-space . 2.0))
436 (first-note . (fixed-space . 1.0)) ;huh?
437 (right-edge . (extra-space . 0.1))))
438 (stencil . ,ly:text-interface::print)
439 (text . ,(make-musicglyph-markup "scripts.rcomma"))
440 (Y-offset . ,ly:breathing-sign::offset-callback)
441 (break-visibility . ,begin-of-line-invisible)
442 (meta . ((class . Item)
443 (interfaces . (break-aligned-interface
444 breathing-sign-interface
450 (stencil . ,ly:clef::print)
451 (glyph-name . ,ly:clef::calc-glyph-name)
453 (avoid-slur . inside)
454 (font-family . music)
455 (break-align-symbol . clef)
456 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
457 (break-visibility . ,begin-of-line-visible)
458 (space-alist . ((ambitus . (extra-space . 2.0))
459 (staff-bar . (extra-space . 0.7))
460 (key-cancellation . (minimum-space . 3.5))
461 (key-signature . (minimum-space . 3.5))
462 (time-signature . (minimum-space . 4.2))
463 (first-note . (minimum-fixed-space . 5.0))
464 (next-note . (extra-space . 0.5))
465 (right-edge . (extra-space . 0.5))))
466 (Y-offset . ,ly:staff-symbol-referencer::callback)
467 (meta . ((class . Item)
468 (interfaces . (clef-interface
469 staff-symbol-referencer-interface
471 break-aligned-interface))))))
473 (ClusterSpannerBeacon
475 (Y-extent . ,ly:cluster-beacon::height)
476 (meta . ((class . Item)
477 (interfaces . (rhythmic-grob-interface
478 cluster-beacon-interface))))))
482 (springs-and-rods . ,ly:spanner::set-spacing-rods)
483 (stencil . ,ly:cluster::print)
484 (minimum-length . 0.0)
486 (cross-staff . ,ly:cluster::calc-cross-staff)
488 (meta . ((class . Spanner)
489 (interfaces . (cluster-interface))))))
493 (stencil . ,ly:text-interface::print)
494 (after-line-breaking . ,ly:chord-name::after-line-breaking)
498 (meta . ((class . Item)
499 (interfaces . (font-interface
500 rhythmic-grob-interface
502 chord-name-interface))))))
506 (stencil . ,ly:text-interface::print)
507 (extra-spacing-width . (+inf.0 . -inf.0))
508 (Y-offset . ,ly:side-position-interface::y-aligned-side)
509 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
512 (staff-padding . 0.5)
513 (script-priority . 200)
514 ;; todo: add X self alignment?
517 (avoid-slur . outside )
519 (meta . ((class . Item)
520 (interfaces . (text-script-interface
522 side-position-interface
527 (break-align-symbol . custos)
529 (stencil . ,ly:custos::print)
530 (break-visibility . ,end-of-line-visible)
532 (neutral-direction . ,DOWN)
533 (Y-offset . ,ly:staff-symbol-referencer::callback)
535 (first-note . (minimum-fixed-space . 0.0))
536 (right-edge . (extra-space . 0.1))))
537 (meta . ((class . Item)
540 staff-symbol-referencer-interface
542 break-aligned-interface))))))
548 (positioning-done . ,ly:dot-column::calc-positioning-done)
549 (X-extent . ,ly:axis-group-interface::width)
550 (meta . ((class . Item)
551 (interfaces . (dot-column-interface
552 axis-group-interface))))))
556 (stencil . ,ly:dots::print)
557 (dot-count . ,dots::calc-dot-count)
558 (staff-position . ,dots::calc-staff-position)
559 (meta . ((class . Item)
560 (interfaces . (font-interface
561 staff-symbol-referencer-interface
566 (stencil . ,ly:percent-repeat-item-interface::double-percent)
569 (font-encoding . fetaMusic)
572 (break-align-symbol . staff-bar)
573 (break-visibility . ,begin-of-line-invisible)
574 (meta . ((class . Item)
575 (interfaces . (font-interface
576 break-aligned-interface
577 percent-repeat-interface
578 percent-repeat-item-interface))))))
580 (DoublePercentRepeatCounter
582 (stencil . ,ly:text-interface::print)
583 (X-offset . ,(ly:make-simple-closure
585 ,(ly:make-simple-closure
586 (list ly:self-alignment-interface::centered-on-y-parent))
587 ,(ly:make-simple-closure
588 (list ly:self-alignment-interface::x-aligned-on-self)))))
589 (Y-offset . ,ly:side-position-interface::y-aligned-side)
590 (font-encoding . fetaNumber)
591 (self-alignment-X . ,CENTER)
595 (staff-padding . 0.25)
597 (meta . ((class . Item)
598 (interfaces . (side-position-interface
599 self-alignment-interface
600 percent-repeat-item-interface
601 percent-repeat-interface
608 (Y-offset . ,ly:side-position-interface::y-aligned-side)
609 (staff-padding . 0.1)
612 (minimum-space . 1.2)
615 (outside-staff-priority . 250)
616 (Y-extent . ,ly:axis-group-interface::height)
617 (X-extent . ,ly:axis-group-interface::width)
618 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
619 (meta . ((class . Spanner)
620 (interfaces . (axis-group-interface
622 dynamic-line-spanner-interface
623 side-position-interface))))))
630 (stencil . ,ly:text-interface::print)
631 (direction . ,ly:script-interface::calc-direction)
632 (positioning-done . ,ly:script-interface::calc-positioning-done)
634 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
635 (self-alignment-X . ,CENTER)
636 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
637 (self-alignment-Y . ,CENTER)
639 (font-encoding . fetaDynamic)
640 (font-shape . italic)
641 (extra-spacing-width . (+inf.0 . -inf.0))
642 (outside-staff-priority . 250)
643 (meta . ((class . Item)
644 (interfaces . (font-interface
646 self-alignment-interface
648 script-interface))))))
652 ;; rather ugh with NCSB
653 ;; (font-series . bold)
654 (font-shape . italic)
655 (style . dashed-line)
657 ;; make sure the spanner doesn't get too close to notes
658 (minimum-Y-extent . (-1 . 1))
659 (bound-details . ((right . ((attach-dir . ,LEFT)
663 (right-broken . ((attach-dir . ,RIGHT)
667 (left . ((attach-dir . ,LEFT)
669 (stencil-offset . (0 . -0.5))
672 (left-broken . ((attach-dir . ,RIGHT)
675 (stencil . ,ly:line-spanner::print)
676 (left-bound-info . ,ly:line-spanner::calc-left-bound-info-and-text)
677 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
679 ;; need to blend with dynamic texts.
681 (dash-fraction . 0.2)
683 (meta . ((class . Spanner)
684 (interfaces . (font-interface
686 line-spanner-interface
689 dynamic-text-spanner-interface
690 spanner-interface))))))
696 ;; sync with TextScript (?)
699 (avoid-slur . around)
701 (staff-padding . 0.5)
702 (self-alignment-X . ,CENTER)
703 (self-alignment-Y . ,CENTER)
704 (script-priority . 100)
705 (stencil . ,ly:text-interface::print)
706 (direction . ,ly:script-interface::calc-direction)
707 (positioning-done . ,ly:script-interface::calc-positioning-done)
708 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
710 (text . ,fingering::calc-text)
711 (font-encoding . fetaNumber)
712 (font-size . -5) ; don't overlap when next to heads.
713 (meta . ((class . Item)
714 (interfaces . (finger-interface
716 text-script-interface
718 side-position-interface
719 self-alignment-interface))))))
722 . ((stencil . ,fret-board::calc-stencil)
723 (fret-diagram-details . ((finger-code . below-string)))
724 (meta . ((class . Item)
725 (interfaces . (fret-diagram-interface
733 (zigzag-width . 0.75)
736 (bound-details . ((right . ((attach-dir . ,CENTER)
739 (left . ((attach-dir . ,CENTER)
743 (stencil . ,ly:line-spanner::print)
744 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
745 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
746 (meta . ((class . Spanner)
747 (interfaces . (line-interface
748 unbreakable-spanner-interface
749 line-spanner-interface))))))
753 (common-shortest-duration . ,grace-spacing::calc-shortest-duration)
754 (spacing-increment . 0.8)
755 (shortest-duration-space . 1.6)
756 (meta . ((class . Spanner)
757 (interfaces . (grace-spacing-interface
759 spacing-options-interface
760 spanner-interface))))))
765 (meta . ((class . Item)
766 (interfaces . (grid-point-interface))))))
770 (X-extent . ,ly:grid-line-interface::width)
771 (stencil . ,ly:grid-line-interface::print)
772 (self-alignment-X . ,CENTER)
773 (X-offset . ,(ly:make-simple-closure
775 ,(ly:make-simple-closure
776 (list ly:self-alignment-interface::centered-on-x-parent))
777 ,(ly:make-simple-closure
778 (list ly:self-alignment-interface::x-aligned-on-self)))))
780 (meta . ((class . Item)
781 (interfaces . (self-alignment-interface
782 grid-line-interface))))))
787 (stencil . ,ly:hairpin::print)
788 (springs-and-rods . ,ly:spanner::set-spacing-rods)
789 (after-line-breaking . ,ly:hairpin::after-line-breaking)
790 (grow-direction . ,hairpin::calc-grow-direction)
795 (minimum-length . 2.0)
796 (bound-padding . 1.0)
797 (self-alignment-Y . ,CENTER)
798 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
799 (meta . ((class . Spanner)
800 (interfaces . (hairpin-interface
802 self-alignment-interface
804 spanner-interface))))))
809 (stencil . ,ly:horizontal-bracket::print)
810 (Y-offset . ,ly:side-position-interface::y-aligned-side)
811 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
814 (staff-padding . 0.2)
817 (bracket-flare . (0.5 . 0.5))
818 (meta . ((class . Spanner)
819 (interfaces . (horizontal-bracket-interface
820 side-position-interface
822 spanner-interface))))))
828 (stencil . ,ly:system-start-text::print)
829 (X-offset . ,ly:side-position-interface::x-aligned-side)
831 (self-alignment-Y . ,CENTER)
832 (self-alignment-X . ,CENTER)
833 (meta . ((class . Spanner)
834 (interfaces . (system-start-text-interface
835 side-position-interface
841 (stencil . ,ly:text-interface::print)
842 (Y-offset . ,ly:side-position-interface::y-aligned-side)
843 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
844 (staff-padding . 0.5)
847 (self-alignment-X . ,LEFT)
848 (outside-staff-priority . 500)
849 (extra-spacing-width . '(+inf.0 . -inf.0))
850 (meta . ((class . Item)
851 (interfaces . (side-position-interface
857 (stencil . ,ly:key-signature-interface::print)
858 (glyph-name-alist . ,cancellation-glyph-name-alist)
860 (time-signature . (extra-space . 1.25))
861 (staff-bar . (extra-space . 0.6))
862 (key-signature . (extra-space . 0.5))
863 (right-edge . (extra-space . 0.5))
864 (first-note . (fixed-space . 2.5))))
865 (Y-offset . ,ly:staff-symbol-referencer::callback)
866 (break-align-symbol . key-cancellation)
867 (break-visibility . ,begin-of-line-invisible)
869 (meta . ((class . Item)
870 (interfaces . (key-cancellation-interface
871 key-signature-interface
873 break-aligned-interface))))))
877 (stencil . ,ly:key-signature-interface::print)
878 (avoid-slur . inside)
879 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
881 (time-signature . (extra-space . 1.15))
882 (staff-bar . (extra-space . 1.1))
883 (right-edge . (extra-space . 0.5))
884 (first-note . (fixed-space . 2.5))))
885 (Y-offset . ,ly:staff-symbol-referencer::callback)
886 (break-align-symbol . key-signature)
887 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
888 (break-visibility . ,begin-of-line-visible)
890 (meta . ((class . Item)
891 (interfaces . (key-signature-interface
893 break-aligned-interface))))))
898 (stencil . ,ly:tie::print)
899 (control-points . ,ly:semi-tie::calc-control-points)
900 (direction . ,ly:tie::calc-direction)
901 (details . ((ratio . 0.333)
902 (height-limit . 1.0)))
903 (head-direction . ,LEFT)
905 (meta . ((class . Item)
906 (interfaces . (semi-tie-interface))))))
908 (LaissezVibrerTieColumn
912 (head-direction . ,LEFT)
913 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
914 (meta . ((class . Item)
915 (interfaces . (semi-tie-column-interface))))))
919 (springs-and-rods . ,ly:ledger-line-spanner::set-spacing-rods)
920 (stencil . ,ly:ledger-line-spanner::print)
923 (minimum-length-fraction . 0.25)
924 (length-fraction . 0.25)
926 (meta . ((class . Spanner)
927 (interfaces . (ledger-line-spanner-interface))))))
931 (break-align-symbol . left-edge)
932 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
935 (break-visibility . ,center-invisible)
937 (custos . (extra-space . 0.0))
938 (ambitus . (extra-space . 2.0))
939 (time-signature . (extra-space . 1.0))
940 (staff-bar . (extra-space . 0.0))
941 (breathing-sign . (minimum-space . 0.0))
942 (clef . (extra-space . 0.8))
943 (first-note . (fixed-space . 2.0))
944 (right-edge . (extra-space . 0.0))
945 (key-signature . (extra-space . 0.0))
946 (key-cancellation . (extra-space . 0.0))
948 (meta . ((class . Item)
949 (interfaces . (break-aligned-interface))))))
953 ;; ugh. A ligature bracket is totally different from
958 (edge-height . (0.7 . 0.7))
959 (shorten-pair . (-0.2 . -0.2))
961 (positions . ,ly:tuplet-bracket::calc-positions)
962 (stencil . ,ly:tuplet-bracket::print)
963 (staff-padding . 0.25)
964 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
965 (control-points . ,ly:tuplet-bracket::calc-control-points)
966 (meta . ((class . Spanner)
967 (interfaces . (line-interface
968 tuplet-bracket-interface))))))
972 (stencil . ,ly:lyric-extender::print)
973 (thickness . 0.8) ; line-thickness
974 (minimum-length . 1.5)
976 (meta . ((class . Spanner)
977 (interfaces . (lyric-interface
978 lyric-extender-interface))))))
986 (minimum-length . 0.3)
987 (minimum-distance . 0.1)
989 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
990 (stencil . ,ly:lyric-hyphen::print)
992 (meta . ((class . Spanner)
993 (interfaces . (lyric-interface
995 lyric-hyphen-interface
996 spanner-interface))))))
999 . ((minimum-distance . 0.45)
1000 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1004 (meta . ((class . Spanner)
1005 (interfaces . (spanner-interface
1006 lyric-hyphen-interface))))))
1010 (stencil . ,lyric-text::print)
1011 (text . ,(grob::calc-property-by-copy 'text))
1012 (X-offset . ,ly:self-alignment-interface::aligned-on-x-parent)
1013 (self-alignment-X . ,CENTER)
1015 (font-series . bold-narrow)
1017 (extra-spacing-width . (0.0 . 0.0))
1018 (meta . ((class . Item)
1019 (interfaces . (rhythmic-grob-interface
1020 lyric-syllable-interface
1021 self-alignment-interface
1023 font-interface))))))
1028 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1030 (stencil . ,ly:measure-grouping::print)
1036 (meta . ((class . Spanner)
1037 (interfaces . (side-position-interface
1038 measure-grouping-interface))))))
1042 (neutral-direction . ,DOWN)
1043 (meta . ((class . Item)
1044 (interfaces . (melody-spanner-interface))))))
1050 (stencil . ,ly:mensural-ligature::print)
1051 (meta . ((class . Spanner)
1052 (interfaces . (mensural-ligature-interface
1053 font-interface))))))
1057 (stencil . ,ly:text-interface::print)
1058 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1062 (extra-spacing-width . (+inf.0 . -inf.0))
1063 (outside-staff-priority . 1000)
1064 (meta . ((class . Item)
1065 (interfaces . (text-interface
1066 side-position-interface
1068 metronome-mark-interface))))))
1072 (stencil . ,ly:multi-measure-rest::print)
1073 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1074 (Y-offset . ,ly:staff-symbol-referencer::callback)
1075 (staff-position . 0)
1077 (thick-thickness . 6.6)
1078 (hair-thickness . 2.0)
1080 (meta . ((class . Spanner)
1081 (interfaces . (multi-measure-rest-interface
1082 multi-measure-interface
1085 staff-symbol-referencer-interface))))))
1087 (MultiMeasureRestNumber
1089 (bound-padding . 2.0)
1090 (springs-and-rods . ,ly:multi-measure-rest::set-text-rods)
1091 (stencil . ,ly:text-interface::print)
1092 (X-offset . ,(ly:make-simple-closure
1094 ,(ly:make-simple-closure
1095 (list ly:self-alignment-interface::x-aligned-on-self))
1096 ,(ly:make-simple-closure
1097 (list ly:self-alignment-interface::x-centered-on-y-parent)))))
1098 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1100 (self-alignment-X . ,CENTER)
1103 (staff-padding . 0.4)
1104 (font-encoding . fetaNumber)
1105 (meta . ((class . Spanner)
1106 (interfaces . (side-position-interface
1107 multi-measure-interface
1108 self-alignment-interface
1110 text-interface))))))
1112 (MultiMeasureRestText
1114 (stencil . ,ly:text-interface::print)
1115 (X-offset . ,(ly:make-simple-closure
1117 ,(ly:make-simple-closure
1118 (list ly:self-alignment-interface::x-centered-on-y-parent))
1119 ,(ly:make-simple-closure
1120 (list ly:self-alignment-interface::x-aligned-on-self)))))
1121 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1122 (self-alignment-X . ,CENTER)
1125 (staff-padding . 0.25)
1126 (outside-staff-priority . 450)
1127 (meta . ((class . Spanner)
1128 (interfaces . (side-position-interface
1129 multi-measure-interface
1130 self-alignment-interface
1132 text-interface))))))
1135 (NonMusicalPaperColumn
1137 (allow-loose-spacing . #t)
1139 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1140 (X-extent . ,ly:axis-group-interface::width)
1141 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1142 ;; (stencil . ,ly:paper-column::print)
1145 (line-break-permission . allow)
1146 (page-break-permission . allow)
1148 ;; debugging stuff: print column number.
1149 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1151 (meta . ((class . Paper_column)
1152 (interfaces . (paper-column-interface
1153 axis-group-interface
1154 separation-item-interface
1155 spaceable-grob-interface))))))
1160 (X-extent . ,ly:axis-group-interface::width)
1161 (Y-extent . ,ly:axis-group-interface::height)
1162 (prefer-dotted-right . #t)
1163 (positioning-done . ,ly:note-collision-interface::calc-positioning-done)
1164 (meta . ((class . Item)
1165 (interfaces . (note-collision-interface
1166 axis-group-interface))))))
1171 (X-extent . ,ly:axis-group-interface::width)
1172 (Y-extent . ,ly:axis-group-interface::height)
1173 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1174 (meta . ((class . Item)
1175 (interfaces . (axis-group-interface
1176 separation-item-interface
1177 note-column-interface))))))
1181 (stencil . ,ly:note-head::print)
1182 (duration-log . ,note-head::calc-duration-log)
1183 (stem-attachment . ,ly:note-head::calc-stem-attachment)
1184 (glyph-name . ,note-head::calc-glyph-name)
1185 (Y-offset . ,ly:staff-symbol-referencer::callback)
1186 (X-offset . ,ly:note-head::stem-x-shift)
1187 (meta . ((class . Item)
1188 (interfaces . (rhythmic-grob-interface
1189 rhythmic-head-interface
1193 staff-symbol-referencer-interface))))))
1197 (stem-spacing-correction . 0.5)
1198 (same-direction-correction . 0.25)
1199 (space-to-barline . #t)
1200 ;; Changed this from 0.75.
1201 ;; If you ever change this back, please document! --hwn
1202 (knee-spacing-correction . 1.0)
1203 (meta . ((class . Item)
1204 (interfaces . (spacing-interface
1205 note-spacing-interface))))))
1209 (stencil . ,ly:text-interface::print)
1210 (meta . ((class . Item)
1211 (interfaces . (note-name-interface
1213 font-interface))))))
1218 (self-alignment-X . ,CENTER)
1219 (break-visibility . ,begin-of-line-visible)
1220 (X-offset . ,(ly:make-simple-closure
1222 ,(ly:make-simple-closure
1223 (list ly:self-alignment-interface::x-aligned-on-self))
1224 ,(ly:make-simple-closure
1225 (list ly:self-alignment-interface::centered-on-x-parent)))))
1226 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1227 (stencil . ,ly:text-interface::print)
1228 (font-shape . italic)
1229 (staff-padding . 0.2)
1231 (meta . ((class . Item)
1232 (interfaces . (text-interface
1233 self-alignment-interface
1234 side-position-interface
1235 font-interface))))))
1239 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1240 (stencil . ,ly:ottava-bracket::print)
1241 (font-shape . italic)
1242 (shorten-pair . (0.0 . -0.6))
1243 (staff-padding . 1.0)
1245 (minimum-length . 1.0)
1246 (style . dashed-line)
1247 (dash-fraction . 0.3)
1248 (edge-height . (0 . 1.2))
1250 (outside-staff-priority . 400)
1251 (meta . ((class . Spanner)
1252 (interfaces . (ottava-bracket-interface
1253 horizontal-bracket-interface
1255 side-position-interface
1257 text-interface))))))
1263 (allow-loose-spacing . #t)
1264 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1265 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1266 ;; (stencil . ,ly:paper-column::print)
1267 (X-extent . ,ly:axis-group-interface::width)
1270 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1271 (meta . ((class . Paper_column)
1272 (interfaces . (paper-column-interface
1273 separation-item-interface
1274 axis-group-interface
1275 spaceable-grob-interface))))))
1278 . ((stencil . ,parentheses-item::print)
1279 (stencils . ,parentheses-item::calc-parenthesis-stencils)
1282 (meta . ((class . Item)
1283 (interfaces . (parentheses-interface font-interface))))))
1285 (HarmonicParenthesesItem
1286 . ((stencil . ,parentheses-item::print)
1288 (stencils . ,parentheses-item::calc-angled-bracket-stencils)
1289 (meta . ((class . Item)
1290 (interfaces . (parentheses-interface font-interface))))))
1293 . ((details . ,default-slur-details)
1294 (control-points . ,ly:slur::calc-control-points)
1295 (direction . ,ly:slur::calc-direction)
1296 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1297 (Y-extent . ,ly:slur::height)
1298 (stencil . ,ly:slur::print)
1300 (minimum-length . 1.5)
1301 (height-limit . 2.0)
1303 (cross-staff . ,ly:slur::calc-cross-staff)
1304 (meta . ((class . Spanner)
1305 (interfaces . (slur-interface))))))
1309 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1310 (stencil . ,ly:multi-measure-rest::percent)
1313 (font-encoding . fetaMusic)
1314 (meta . ((class . Spanner)
1315 (interfaces . (multi-measure-rest-interface
1317 percent-repeat-interface
1320 (PercentRepeatCounter
1322 (stencil . ,ly:text-interface::print)
1323 (X-offset . ,(ly:make-simple-closure
1325 ,(ly:make-simple-closure
1326 (list ly:self-alignment-interface::x-centered-on-y-parent))
1327 ,(ly:make-simple-closure
1328 (list ly:self-alignment-interface::x-aligned-on-self)))))
1329 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1330 (self-alignment-X . ,CENTER)
1333 (staff-padding . 0.25)
1335 (font-encoding . fetaNumber)
1336 (meta . ((class . Spanner)
1337 (interfaces . (side-position-interface
1338 self-alignment-interface
1339 percent-repeat-interface
1341 text-interface))))))
1343 ;; an example of a text spanner
1346 (stencil . ,ly:piano-pedal-bracket::print)
1348 (bound-padding . 1.0)
1350 (bracket-flare . (0.5 . 0.5))
1351 (edge-height . (1.0 . 1.0))
1352 (shorten-pair . (0.0 . 0.0))
1354 (meta . ((class . Spanner)
1355 (interfaces . (line-interface
1356 piano-pedal-interface
1357 piano-pedal-bracket-interface))))))
1362 (stencil . ,ly:text-interface::print)
1363 (X-offset . ,(ly:make-simple-closure
1365 ,(ly:make-simple-closure
1366 (list ly:break-alignable-interface::self-align-callback))
1367 ,(ly:make-simple-closure
1368 (list ly:self-alignment-interface::x-aligned-on-self)))))
1369 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1370 (extra-spacing-width . (+inf.0 . -inf.0))
1371 (self-alignment-X . ,CENTER)
1376 (break-visibility . ,end-of-line-invisible)
1377 (break-align-symbols . (staff-bar clef))
1379 (outside-staff-priority . 1500)
1380 (meta . ((class . Item)
1381 (interfaces . (text-interface
1382 side-position-interface
1383 break-alignable-interface
1386 self-alignment-interface))))))
1390 (stencil . ,ly:percent-repeat-item-interface::beat-slash)
1393 (meta . ((class . Item)
1394 (interfaces . (rhythmic-grob-interface
1395 percent-repeat-interface
1396 percent-repeat-item-interface))))))
1400 (stencil . ,ly:tie::print)
1401 (control-points . ,ly:semi-tie::calc-control-points)
1402 (direction . ,ly:tie::calc-direction)
1403 (details . ((ratio . 0.333)
1404 (height-limit . 1.0)))
1406 (head-direction . ,RIGHT)
1407 (meta . ((class . Item)
1408 (interfaces . (semi-tie-interface))))))
1414 (direction . ,ly:tie::calc-direction)
1415 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1417 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1418 (meta . ((class . Item)
1419 (interfaces . (semi-tie-column-interface))))))
1423 (stencil . ,ly:rest::print)
1424 (duration-log . ,stem::calc-duration-log)
1425 (X-extent . ,ly:rest::width)
1426 (Y-extent . ,ly:rest::height)
1427 (Y-offset . ,ly:rest::y-offset-callback)
1428 (minimum-distance . 0.25)
1429 (cross-staff . ,ly:rest::calc-cross-staff)
1430 (meta . ((class . Item)
1431 (interfaces . (font-interface
1432 rhythmic-head-interface
1433 rhythmic-grob-interface
1434 staff-symbol-referencer-interface
1435 rest-interface))))))
1439 (minimum-distance . 0.75)
1440 (positioning-done . ,ly:rest-collision::calc-positioning-done)
1441 (meta . ((class . Item)
1442 (interfaces . (rest-collision-interface))))))
1447 ;; don't set direction here: it breaks staccato.
1449 ;; padding set in script definitions.
1450 (staff-padding . 0.25)
1451 (X-offset . ,script-interface::calc-x-offset)
1452 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1455 (stencil . ,ly:script-interface::print)
1456 (direction . ,ly:script-interface::calc-direction)
1457 (positioning-done . ,ly:script-interface::calc-positioning-done)
1458 (font-encoding . fetaMusic)
1459 (cross-staff . ,ly:script-interface::calc-cross-staff)
1460 (meta . ((class . Item)
1461 (interfaces . (script-interface
1462 side-position-interface
1463 font-interface))))))
1467 (before-line-breaking . ,ly:script-column::before-line-breaking)
1468 (meta . ((class . Item)
1469 (interfaces . (script-column-interface))))))
1473 (before-line-breaking . ,ly:script-column::row-before-line-breaking)
1474 (meta . ((class . Item)
1475 (interfaces . (script-column-interface))))))
1479 (avoid-slur . inside)
1480 (X-extent . ,ly:axis-group-interface::width)
1481 (Y-extent . ,ly:axis-group-interface::height)
1482 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1483 (stencil . ,ly:separation-item::print)
1484 (meta . ((class . Item)
1486 separation-item-interface))))))
1489 . ((details . ,default-slur-details)
1490 (control-points . ,ly:slur::calc-control-points)
1491 (direction . ,ly:slur::calc-direction)
1492 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1493 (Y-extent . ,ly:slur::height)
1494 (stencil . ,ly:slur::print)
1496 (line-thickness . 0.8)
1497 (minimum-length . 1.5)
1498 (height-limit . 2.0)
1500 (avoid-slur . inside)
1501 (cross-staff . ,ly:slur::calc-cross-staff)
1502 (meta . ((class . Spanner)
1503 (interfaces . (slur-interface))))))
1507 (stencil . ,ly:text-interface::print)
1508 (direction . ,RIGHT)
1509 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1510 (extra-spacing-width . (+inf.0 . -inf.0))
1511 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
1512 (font-shape . italic)
1513 (self-alignment-X . ,CENTER)
1514 (meta . ((class . Item)
1515 (interfaces . (text-interface
1516 self-alignment-interface
1517 piano-pedal-script-interface
1518 font-interface))))))
1520 (SostenutoPedalLineSpanner
1523 (Y-extent . ,ly:axis-group-interface::height)
1524 (X-extent . ,ly:axis-group-interface::width)
1525 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1526 (outside-staff-priority . 1000)
1528 (staff-padding . 1.0)
1530 (minimum-space . 1.0)
1532 (meta . ((class . Spanner)
1533 (interfaces . (piano-pedal-interface
1534 axis-group-interface
1535 side-position-interface))))))
1539 (springs-and-rods . ,ly:spacing-spanner::set-springs)
1540 (common-shortest-duration . ,ly:spacing-spanner::calc-common-shortest-duration)
1541 (average-spacing-wishes . #t)
1542 (shortest-duration-space . 2.0)
1543 (spacing-increment . 1.2)
1545 (base-shortest-duration . ,(ly:make-moment 3 16))
1546 (meta . ((class . Spanner)
1548 spacing-options-interface
1549 spacing-spanner-interface))))))
1553 (break-align-symbol . staff-bar)
1554 (Y-extent . ,ly:axis-group-interface::height)
1558 (stencil . ,ly:span-bar::print)
1559 (bar-size . ,ly:span-bar::calc-bar-size)
1560 (bar-extent . ,ly:axis-group-interface::height)
1561 (X-extent . ,ly:span-bar::width)
1562 (glyph-name . ,ly:span-bar::calc-glyph-name)
1563 (before-line-breaking . ,ly:span-bar::before-line-breaking)
1564 (allow-span-bar . #t)
1569 ;; Ross. page 151 lists other values, we opt for a leaner look
1573 (hair-thickness . 1.6)
1574 (thick-thickness . 6.0)
1575 (meta . ((class . Item)
1576 (interfaces . (span-bar-interface
1578 bar-line-interface))))))
1582 (stencil . ,ly:text-interface::print)
1583 (font-series . bold)
1585 (X-offset . ,ly:side-position-interface::x-aligned-side)
1588 (meta . ((class . Item)
1589 (interfaces . (side-position-interface
1590 stanza-number-interface
1592 font-interface))))))
1597 (stem-spacing-correction . 0.4)
1598 (meta . ((class . Item)
1599 (interfaces . (spacing-interface
1600 staff-spacing-interface))))))
1604 (Y-extent . ,ly:staff-symbol::height)
1605 (stencil . ,ly:staff-symbol::print)
1607 (ledger-line-thickness . (1.0 . 0.1))
1609 (meta . ((class . Spanner)
1610 (interfaces . (staff-symbol-interface))))))
1614 (direction . ,ly:stem::calc-direction)
1615 (duration-log . ,stem::calc-duration-log)
1616 (default-direction . ,ly:stem::calc-default-direction)
1617 (stem-end-position . ,ly:stem::calc-stem-end-position)
1619 (neutral-direction . ,DOWN)
1620 (stem-info . ,ly:stem::calc-stem-info)
1621 (positioning-done . ,ly:stem::calc-positioning-done)
1622 (stencil . ,ly:stem::print)
1623 (X-extent . ,ly:stem::width)
1624 (Y-extent . ,ly:stem::height)
1625 (length . ,ly:stem::calc-length)
1627 (cross-staff . ,ly:stem::calc-cross-staff)
1630 ;; 3.5 (or 3 measured from note head) is standard length
1631 ;; 32nd, 64th flagged stems should be longer
1632 (lengths . (3.5 3.5 3.5 4.5 5.0))
1634 ;; FIXME. 3.5 yields too long beams (according to Ross and
1635 ;; looking at Baerenreiter examples) for a number of common
1636 ;; boundary cases. Subtracting half a beam thickness fixes
1637 ;; this, but the bug may well be somewhere else.
1639 ;; FIXME this should come from 'lengths
1640 (beamed-lengths . (3.26 3.5 3.6))
1642 ;; The 'normal' minima
1643 (beamed-minimum-free-lengths . (1.83 1.5 1.25))
1644 ;(beamed-minimum-free-lengths . (2.0 1.83 1.25))
1646 ;; The 'extreme case' minima
1647 (beamed-extreme-minimum-free-lengths . (2.0 1.25))
1649 ;; Stems in unnatural (forced) direction should be shortened by
1650 ;; one staff space, according to [Roush & Gourlay].
1651 ;; Flagged stems we shorten only half a staff space.
1652 (stem-shorten . (1.0 0.5))
1656 ;; We use the normal minima as minimum for the ideal lengths,
1657 ;; and the extreme minima as abolute minimum length.
1659 (X-offset . ,ly:stem::offset-callback)
1660 (Y-offset . ,ly:staff-symbol-referencer::callback)
1661 (meta . ((class . Item)
1662 (interfaces . (stem-interface
1663 font-interface))))))
1667 (Y-extent . ,ly:stem-tremolo::height)
1668 (X-extent . ,ly:stem-tremolo::width)
1669 (stencil . ,ly:stem-tremolo::print)
1670 (slope . ,ly:stem-tremolo::calc-slope)
1671 (beam-width . ,ly:stem-tremolo::calc-width) ; staff-space
1672 (style . ,ly:stem-tremolo::calc-style)
1673 (beam-thickness . 0.48) ; staff-space
1674 (meta . ((class . Item)
1675 (interfaces . (stem-tremolo-interface))))))
1679 (stencil . ,print-circled-text-callback)
1680 (text . ,string-number::calc-text)
1682 (staff-padding . 0.5)
1683 (self-alignment-X . ,CENTER)
1684 (self-alignment-Y . ,CENTER)
1685 (script-priority . 100)
1686 (avoid-slur . outside)
1687 (font-encoding . fetaNumber)
1688 (font-size . -5) ; don't overlap when next to heads.
1689 (meta . ((class . Item)
1690 (interfaces . (string-number-interface
1692 text-script-interface
1694 side-position-interface
1695 self-alignment-interface))))))
1699 (stencil . ,ly:text-interface::print)
1700 (text . ,stroke-finger::calc-text)
1701 (digit-names . #("p" "i" "m" "a" "x"))
1703 (staff-padding . 0.5)
1704 (self-alignment-X . ,CENTER)
1705 (self-alignment-Y . ,CENTER)
1706 (script-priority . 100)
1707 (font-shape . italic)
1708 (font-size . -4) ; don't overlap when next to heads.
1709 (meta . ((class . Item)
1710 (interfaces . (stroke-finger-interface
1712 text-script-interface
1714 side-position-interface
1715 self-alignment-interface))))))
1719 (extra-spacing-width . (+inf.0 . -inf.0))
1720 (stencil . ,ly:sustain-pedal::print)
1721 (self-alignment-X . ,CENTER)
1722 (direction . ,RIGHT)
1723 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
1724 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1725 (meta . ((class . Item)
1726 (interfaces . (piano-pedal-interface
1728 self-alignment-interface
1729 piano-pedal-script-interface
1730 font-interface))))))
1732 (SustainPedalLineSpanner
1735 (Y-extent . ,ly:axis-group-interface::height)
1736 (X-extent . ,ly:axis-group-interface::width)
1737 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1738 (outside-staff-priority . 1000)
1741 (staff-padding . 1.2)
1742 (minimum-space . 1.0)
1744 (meta . ((class . Spanner)
1745 (interfaces . (piano-pedal-interface
1746 axis-group-interface
1747 side-position-interface))))))
1752 (X-extent . ,ly:axis-group-interface::width)
1753 (Y-extent . ,ly:axis-group-interface::height)
1754 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
1755 (max-stretch . ,ly:axis-group-interface::calc-max-stretch)
1756 (meta . ((class . System)
1757 (interfaces . (system-interface
1758 axis-group-interface))))))
1764 (stencil . ,ly:system-start-delimiter::print)
1765 (collapse-height . 5.0)
1766 (X-offset . ,ly:side-position-interface::x-aligned-side)
1768 (font-encoding . fetaBraces)
1770 (meta . ((class . Spanner)
1771 (interfaces . (system-start-delimiter-interface
1772 side-position-interface
1773 font-interface))))))
1778 (X-offset . ,ly:side-position-interface::x-aligned-side)
1780 (stencil . ,ly:system-start-delimiter::print)
1781 (style . line-bracket)
1783 (meta . ((class . Spanner)
1784 (interfaces . (font-interface
1785 side-position-interface
1786 system-start-delimiter-interface))))))
1792 (X-offset . ,ly:side-position-interface::x-aligned-side)
1794 (stencil . ,ly:system-start-delimiter::print)
1796 (collapse-height . 5.0)
1798 (meta . ((class . Spanner)
1799 (interfaces . (font-interface
1800 side-position-interface
1801 system-start-delimiter-interface))))))
1808 (padding . -0.1) ;; bar must cover rounded ending of staff line.
1809 (X-offset . ,ly:side-position-interface::x-aligned-side)
1812 (collapse-height . 5.0)
1814 (stencil . ,ly:system-start-delimiter::print)
1815 (meta . ((class . Spanner)
1816 (interfaces . (side-position-interface
1817 system-start-delimiter-interface))))))
1822 (stencil . ,ly:text-interface::print)
1823 (duration-log . ,note-head::calc-duration-log)
1824 (Y-offset . ,ly:staff-symbol-referencer::callback)
1825 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1826 (direction . ,CENTER)
1828 (stem-attachment . (0.0 . 1.35))
1829 (font-series . bold)
1830 (meta . ((class . Item)
1832 . (rhythmic-head-interface
1833 font-interface rhythmic-grob-interface
1835 staff-symbol-referencer-interface
1836 text-interface))))))
1840 (extra-spacing-width . (+inf.0 . -inf.0))
1841 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1842 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1846 ;; sync with Fingering ?
1848 (staff-padding . 0.5)
1850 (stencil . ,ly:text-interface::print)
1851 (direction . ,ly:script-interface::calc-direction)
1852 (positioning-done . ,ly:script-interface::calc-positioning-done)
1854 (outside-staff-priority . 450)
1855 (avoid-slur . around)
1856 (slur-padding . 0.5)
1857 (script-priority . 200)
1858 (cross-staff . ,ly:script-interface::calc-cross-staff)
1859 ;; todo: add X self alignment?
1860 (meta . ((class . Item)
1861 (interfaces . (text-script-interface
1863 instrument-specific-markup-interface
1864 side-position-interface
1865 font-interface))))))
1869 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1870 (font-shape . italic)
1871 (style . dashed-line)
1872 (staff-padding . 0.8)
1873 (dash-fraction . 0.2)
1877 (outside-staff-priority . 350)
1879 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
1880 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
1881 (bound-details . ((left . ((Y . 0)
1883 (attach-dir . ,LEFT)
1889 (stencil . ,ly:line-spanner::print)
1891 (meta . ((class . Spanner)
1892 (interfaces . (line-spanner-interface
1893 side-position-interface
1894 font-interface))))))
1898 (control-points . ,ly:tie::calc-control-points)
1899 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1900 (avoid-slur . inside)
1901 (direction . ,ly:tie::calc-direction)
1902 (neutral-direction . ,UP)
1903 (stencil . ,ly:tie::print)
1906 ;; for a full list, see tie-details.cc
1908 (center-staff-line-clearance . 0.6)
1909 (tip-staff-line-clearance . 0.45)
1910 (note-head-gap . 0.2)
1912 (height-limit . 1.0)
1913 (horizontal-distance-penalty-factor . 10)
1914 (same-dir-as-stem-penalty . 8)
1915 (min-length-penalty-factor . 26)
1916 (tie-tie-collision-distance . 0.45)
1917 (tie-tie-collision-penalty . 25.0)
1918 (intra-space-threshold . 1.25)
1919 (outer-tie-vertical-distance-symmetry-penalty-factor . 10)
1920 (outer-tie-length-symmetry-penalty-factor . 10)
1921 (vertical-distance-penalty-factor . 7)
1922 (outer-tie-vertical-gap . 0.25)
1923 (multi-tie-region-size . 3)
1924 (single-tie-region-size . 4)
1925 (between-length-limit . 1.0)))
1928 (line-thickness . 0.8)
1929 (meta . ((class . Spanner)
1930 (interfaces . (tie-interface))))))
1934 (positioning-done . ,ly:tie-column::calc-positioning-done)
1935 (before-line-breaking . ,ly:tie-column::before-line-breaking)
1938 (meta . ((class . Spanner)
1939 (interfaces . (tie-column-interface))))))
1943 (stencil . ,ly:time-signature::print)
1944 (break-align-symbol . time-signature)
1946 . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1947 (break-visibility . ,all-visible)
1948 (avoid-slur . inside)
1949 (extra-spacing-height . (-1.0 . 1.0))
1951 (first-note . (fixed-space . 2.0))
1952 (right-edge . (extra-space . 0.5))
1953 (staff-bar . (minimum-space . 2.0))))
1956 (meta . ((class . Item)
1957 (interfaces . (time-signature-interface
1958 break-aligned-interface
1959 font-interface))))))
1963 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
1964 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
1966 (bound-details . ((left . ((text . ,(make-translate-scaled-markup
1968 (make-musicglyph-markup "scripts.trill")))
1970 (stencil-offset . (-0.5 . 0))
1972 (attach-dir . ,CENTER)
1973 ;; this isn't CENTER because the trill glyph's origin
1974 ;; is not centered in its extent; to have the trill
1975 ;; spanner aligned the same as a trill, we need a slight offset
1976 (anchor-alignment . 0.15)
1978 (left-broken . ((end-on-note . #t)))
1982 (stencil . ,ly:line-spanner::print)
1985 (staff-padding . 1.0)
1988 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1990 (outside-staff-priority . 50)
1991 (meta . ((class . Spanner)
1992 (interfaces . (line-spanner-interface
1994 trill-spanner-interface
1995 side-position-interface
1996 font-interface))))))
1998 (TrillPitchAccidental
1999 . ((X-offset . ,ly:side-position-interface::x-aligned-side)
2004 (stencil . ,ly:accidental-interface::print)
2005 (Y-extent . ,ly:accidental-interface::height)
2006 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
2007 (meta . ((class . Item)
2008 (interfaces . (trill-pitch-accidental-interface
2009 accidental-interface
2010 side-position-interface
2011 font-interface))))))
2014 . ((X-offset . ,ly:side-position-interface::x-aligned-side)
2017 (stencil . ,parenthesize-elements)
2018 (stencils . ,parentheses-item::calc-parenthesis-stencils)
2019 (direction . ,RIGHT)
2022 (meta . ((class . Item)
2023 (interfaces . (side-position-interface
2024 parentheses-interface
2027 axis-group-interface))))))
2031 (stencil . ,ly:note-head::print)
2033 (Y-offset . ,ly:staff-symbol-referencer::callback)
2035 (meta . ((class . Item)
2036 (interfaces . (rhythmic-head-interface
2038 pitched-trill-interface
2040 staff-symbol-referencer-interface))))))
2046 (edge-height . (0.7 . 0.7))
2047 (shorten-pair . (-0.2 . -0.2))
2048 (staff-padding . 0.25)
2049 (full-length-to-extent . #t)
2050 (direction . ,ly:tuplet-bracket::calc-direction)
2051 (positions . ,ly:tuplet-bracket::calc-positions)
2052 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
2053 (control-points . ,ly:tuplet-bracket::calc-control-points)
2054 (stencil . ,ly:tuplet-bracket::print)
2055 (cross-staff . ,ly:tuplet-bracket::calc-cross-staff)
2057 (meta . ((class . Spanner)
2058 (interfaces . (line-interface
2059 tuplet-bracket-interface))))))
2063 (stencil . ,ly:tuplet-number::print)
2064 (text . ,tuplet-number::calc-denominator-text)
2065 (font-shape . italic)
2067 (avoid-slur . inside)
2068 (cross-staff . ,ly:tuplet-number::calc-cross-staff)
2069 (meta . ((class . Spanner)
2070 (interfaces . (text-interface tuplet-number-interface
2071 font-interface))))))
2076 (stencil . ,ly:text-interface::print)
2077 (font-shape . italic)
2078 (extra-spacing-width . (+inf.0 . -inf.0))
2079 (self-alignment-X . ,CENTER)
2080 (direction . ,RIGHT)
2081 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
2082 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2083 (meta . ((class . Item)
2084 (interfaces . (text-interface
2085 piano-pedal-script-interface
2086 self-alignment-interface
2087 font-interface))))))
2089 (UnaCordaPedalLineSpanner
2092 (Y-extent . ,ly:axis-group-interface::height)
2093 (X-extent . ,ly:axis-group-interface::width)
2094 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2095 (outside-staff-priority . 1000)
2098 (staff-padding . 1.2)
2099 (minimum-space . 1.0)
2101 (meta . ((class . Spanner)
2102 (interfaces . (piano-pedal-interface
2103 axis-group-interface
2104 side-position-interface))))))
2111 (stencil . ,ly:vaticana-ligature::print)
2112 (meta . ((class . Spanner)
2113 (interfaces . (vaticana-ligature-interface
2114 font-interface))))))
2119 (positioning-done . ,ly:align-interface::calc-positioning-done)
2120 (after-line-breaking . ,ly:align-interface::stretch-after-break)
2121 (Y-extent . ,ly:axis-group-interface::height)
2122 (X-extent . ,ly:axis-group-interface::width)
2125 (vertical-skylines . ,ly:axis-group-interface::combine-skylines)
2127 (meta . ((class . Spanner)
2128 (object-callbacks . ((Y-common . ,ly:axis-group-interface::calc-y-common)))
2129 (interfaces . (align-interface
2130 axis-group-interface))))))
2135 (Y-offset . ,ly:hara-kiri-group-spanner::force-hara-kiri-callback)
2136 (Y-extent . ,ly:hara-kiri-group-spanner::y-extent)
2137 (X-extent . ,ly:axis-group-interface::width)
2138 (vertical-skylines . ,ly:hara-kiri-group-spanner::calc-skylines)
2139 (max-stretch . ,ly:axis-group-interface::calc-max-stretch)
2140 (stencil . ,ly:axis-group-interface::print)
2141 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2142 (meta . ((class . Spanner)
2143 (object-callbacks . ((X-common . ,ly:axis-group-interface::calc-x-common)))
2144 (interfaces . (axis-group-interface
2145 hara-kiri-group-spanner-interface
2146 vertically-spaceable-interface))))))
2150 (stencil . ,ly:volta-bracket-interface::print)
2151 (font-encoding . fetaNumber)
2152 (thickness . 1.6) ;; line-thickness
2153 (edge-height . (2.0 . 2.0)) ;; staff-space;
2157 (meta . ((class . Spanner)
2158 (interfaces . (volta-bracket-interface
2159 horizontal-bracket-interface
2162 side-position-interface
2163 font-interface))))))
2165 (VoltaBracketSpanner
2171 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2172 (outside-staff-priority . 100)
2173 (Y-extent . ,ly:axis-group-interface::height)
2174 (X-extent . ,ly:axis-group-interface::width)
2175 (no-alignment . ,#t)
2176 (meta . ((class . Spanner)
2177 (interfaces . (side-position-interface
2178 axis-group-interface))))))
2187 (bound-details . ((right . ((attach-dir . ,CENTER)
2190 (left . ((attach-dir . ,CENTER)
2194 (stencil . ,ly:line-spanner::print)
2195 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2196 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2197 (meta . ((class . Spanner)
2198 (interfaces . (line-spanner-interface
2199 line-interface))))))
2203 (define (completize-grob-entry x)
2204 "Transplant assoc key into 'name entry of 'meta of X. Set interfaces for Item, Spanner etc.
2206 ;; (display (car x))
2208 (let* ((name-sym (car x))
2209 (grob-entry (cdr x))
2210 (meta-entry (cdr (assoc 'meta grob-entry)))
2211 (class (cdr (assoc 'class meta-entry)))
2213 (cdr (assoc 'interfaces meta-entry))))
2217 (set! ifaces-entry (cons 'item-interface ifaces-entry)))
2218 ((eq? 'Spanner class)
2219 (set! ifaces-entry (cons 'spanner-interface ifaces-entry)))
2220 ((eq? 'Paper_column class)
2221 (set! ifaces-entry (cons 'item-interface
2222 (cons 'paper-column-interface ifaces-entry))))
2223 ((eq? 'System class)
2224 (set! ifaces-entry (cons 'system-interface
2225 (cons 'spanner-interface ifaces-entry))))
2227 (ly:warning "Unknown class ~a" class)))
2229 (set! ifaces-entry (uniq-list (sort ifaces-entry symbol<?)))
2230 (set! ifaces-entry (cons 'grob-interface ifaces-entry))
2232 (set! meta-entry (assoc-set! meta-entry 'name name-sym))
2233 (set! meta-entry (assoc-set! meta-entry 'interfaces
2235 (set! grob-entry (assoc-set! grob-entry 'meta meta-entry))
2236 (cons name-sym grob-entry)))
2238 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
2240 ;; (display (map pair? all-grob-descriptions))
2242 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
2245 ;; (display (car x)) (newline)
2247 (set-object-property! (car x) 'translation-type? list?)
2248 (set-object-property! (car x) 'is-grob? #t))
2249 all-grob-descriptions)
2251 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))
2253 (define pure-print-callbacks
2255 fret-board::calc-stencil
2256 print-circled-text-callback
2259 ly:arpeggio::brew-chord-bracket
2264 ly:text-interface::print
2265 ly:script-interface::print))
2267 ;; ly:grob::stencil-extent is safe iff the print callback is safe too
2268 (define (pure-stencil-height grob start stop)
2269 (let ((sten (ly:grob-property-data grob 'stencil)))
2272 (memq sten pure-print-callbacks))
2273 (ly:grob::stencil-height grob)
2276 (define pure-conversions-alist
2278 (,ly:accidental-interface::height . ,ly:accidental-interface::pure-height)
2279 (,ly:arpeggio::height . ,ly:arpeggio::pure-height)
2280 (,ly:slur::outside-slur-callback . ,ly:slur::pure-outside-slur-callback)
2281 (,ly:stem::height . ,ly:stem::pure-height)
2282 (,ly:rest::height . ,ly:rest::pure-height)
2283 (,ly:grob::stencil-height . ,pure-stencil-height)
2284 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)
2285 (,ly:axis-group-interface::height . ,ly:axis-group-interface::pure-height)
2286 (,ly:hara-kiri-group-spanner::y-extent . ,ly:hara-kiri-group-spanner::pure-height)
2287 (,ly:slur::height . ,ly:slur::pure-height)
2288 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)))
2290 (define pure-functions
2292 parenthesize-elements
2293 ly:rest::y-offset-callback
2294 ly:staff-symbol-referencer::callback
2295 ly:staff-symbol::height))
2297 (define-public (pure-relevant? grob)
2298 (let ((extent-callback (ly:grob-property-data grob 'Y-extent)))
2301 (pair? extent-callback)
2302 (memq extent-callback pure-functions)
2304 (pair? (assq extent-callback pure-conversions-alist))
2307 (not (eq? extent-callback ly:grob::stencil-height))
2308 (memq (ly:grob-property-data grob 'stencil) pure-print-callbacks)
2309 (ly:stencil? (ly:grob-property-data grob 'stencil))
2313 (define-public (call-pure-function unpure args start end)
2314 (if (ly:simple-closure? unpure)
2315 (ly:eval-simple-closure (car args) unpure start end)
2316 (if (not (procedure? unpure))
2318 (if (memq unpure pure-functions)
2320 (let ((pure (assq unpure pure-conversions-alist)))
2324 (list (car args) start end)