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-item-interface))))))
579 (DoublePercentRepeatCounter
581 (stencil . ,ly:text-interface::print)
582 (X-offset . ,(ly:make-simple-closure
584 ,(ly:make-simple-closure
585 (list ly:self-alignment-interface::centered-on-y-parent))
586 ,(ly:make-simple-closure
587 (list ly:self-alignment-interface::x-aligned-on-self)))))
588 (Y-offset . ,ly:side-position-interface::y-aligned-side)
589 (font-encoding . fetaNumber)
590 (self-alignment-X . ,CENTER)
594 (staff-padding . 0.25)
596 (meta . ((class . Item)
597 (interfaces . (side-position-interface
598 self-alignment-interface
599 percent-repeat-item-interface
606 (Y-offset . ,ly:side-position-interface::y-aligned-side)
607 (staff-padding . 0.1)
610 (minimum-space . 1.2)
613 (outside-staff-priority . 250)
614 (Y-extent . ,ly:axis-group-interface::height)
615 (X-extent . ,ly:axis-group-interface::width)
616 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
617 (meta . ((class . Spanner)
618 (interfaces . (axis-group-interface
620 dynamic-line-spanner-interface
621 side-position-interface))))))
628 (stencil . ,ly:text-interface::print)
629 (direction . ,ly:script-interface::calc-direction)
630 (positioning-done . ,ly:script-interface::calc-positioning-done)
632 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
633 (self-alignment-X . ,CENTER)
634 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
635 (self-alignment-Y . ,CENTER)
637 (font-encoding . fetaDynamic)
638 (font-shape . italic)
639 (extra-spacing-width . (+inf.0 . -inf.0))
640 (outside-staff-priority . 250)
641 (meta . ((class . Item)
642 (interfaces . (font-interface
644 self-alignment-interface
646 script-interface))))))
650 ;; rather ugh with NCSB
651 ;; (font-series . bold)
652 (font-shape . italic)
653 (style . dashed-line)
655 ;; make sure the spanner doesn't get too close to notes
656 (minimum-Y-extent . (-1 . 1))
657 (bound-details . ((right . ((attach-dir . ,LEFT)
661 (right-broken . ((attach-dir . ,RIGHT)
665 (left . ((attach-dir . ,LEFT)
667 (stencil-offset . (0 . -0.5))
670 (left-broken . ((attach-dir . ,RIGHT)
673 (stencil . ,ly:line-spanner::print)
674 (left-bound-info . ,ly:line-spanner::calc-left-bound-info-and-text)
675 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
677 ;; need to blend with dynamic texts.
679 (dash-fraction . 0.2)
681 (meta . ((class . Spanner)
682 (interfaces . (font-interface
684 line-spanner-interface
687 dynamic-text-spanner-interface
688 spanner-interface))))))
694 ;; sync with TextScript (?)
697 (avoid-slur . around)
699 (staff-padding . 0.5)
700 (self-alignment-X . ,CENTER)
701 (self-alignment-Y . ,CENTER)
702 (script-priority . 100)
703 (stencil . ,ly:text-interface::print)
704 (direction . ,ly:script-interface::calc-direction)
705 (positioning-done . ,ly:script-interface::calc-positioning-done)
706 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
708 (text . ,fingering::calc-text)
709 (font-encoding . fetaNumber)
710 (font-size . -5) ; don't overlap when next to heads.
711 (meta . ((class . Item)
712 (interfaces . (finger-interface
714 text-script-interface
716 side-position-interface
717 self-alignment-interface))))))
720 . ((stencil . ,fret-board::calc-stencil)
721 (finger-code . below-string)
722 (meta . ((class . Item)
723 (interfaces . (fret-diagram-interface
731 (zigzag-width . 0.75)
734 (bound-details . ((right . ((attach-dir . ,CENTER)
737 (left . ((attach-dir . ,CENTER)
741 (stencil . ,ly:line-spanner::print)
742 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
743 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
744 (meta . ((class . Spanner)
745 (interfaces . (line-interface
746 unbreakable-spanner-interface
747 line-spanner-interface))))))
751 (common-shortest-duration . ,grace-spacing::calc-shortest-duration)
752 (spacing-increment . 0.8)
753 (shortest-duration-space . 1.6)
754 (meta . ((class . Spanner)
755 (interfaces . (grace-spacing-interface
757 spacing-options-interface
758 spanner-interface))))))
763 (meta . ((class . Item)
764 (interfaces . (grid-point-interface))))))
768 (X-extent . ,ly:grid-line-interface::width)
769 (stencil . ,ly:grid-line-interface::print)
770 (self-alignment-X . ,CENTER)
771 (X-offset . ,(ly:make-simple-closure
773 ,(ly:make-simple-closure
774 (list ly:self-alignment-interface::centered-on-x-parent))
775 ,(ly:make-simple-closure
776 (list ly:self-alignment-interface::x-aligned-on-self)))))
778 (meta . ((class . Item)
779 (interfaces . (self-alignment-interface
780 grid-line-interface))))))
785 (stencil . ,ly:hairpin::print)
786 (springs-and-rods . ,ly:spanner::set-spacing-rods)
787 (after-line-breaking . ,ly:hairpin::after-line-breaking)
788 (grow-direction . ,hairpin::calc-grow-direction)
793 (minimum-length . 2.0)
794 (bound-padding . 1.0)
795 (self-alignment-Y . ,CENTER)
796 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
797 (meta . ((class . Spanner)
798 (interfaces . (hairpin-interface
800 self-alignment-interface
802 spanner-interface))))))
807 (stencil . ,ly:horizontal-bracket::print)
808 (Y-offset . ,ly:side-position-interface::y-aligned-side)
809 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
812 (staff-padding . 0.2)
815 (bracket-flare . (0.5 . 0.5))
816 (meta . ((class . Spanner)
817 (interfaces . (horizontal-bracket-interface
818 side-position-interface
820 spanner-interface))))))
826 (stencil . ,ly:system-start-text::print)
827 (X-offset . ,ly:side-position-interface::x-aligned-side)
829 (self-alignment-Y . ,CENTER)
830 (self-alignment-X . ,CENTER)
831 (meta . ((class . Spanner)
832 (interfaces . (system-start-text-interface
833 side-position-interface
839 (stencil . ,ly:text-interface::print)
840 (Y-offset . ,ly:side-position-interface::y-aligned-side)
841 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
842 (staff-padding . 0.5)
845 (self-alignment-X . ,LEFT)
846 (outside-staff-priority . 500)
847 (extra-spacing-width . '(+inf.0 . -inf.0))
848 (meta . ((class . Item)
849 (interfaces . (side-position-interface
855 (stencil . ,ly:key-signature-interface::print)
856 (glyph-name-alist . ,cancellation-glyph-name-alist)
858 (time-signature . (extra-space . 1.25))
859 (staff-bar . (extra-space . 0.6))
860 (key-signature . (extra-space . 0.5))
861 (right-edge . (extra-space . 0.5))
862 (first-note . (fixed-space . 2.5))))
863 (Y-offset . ,ly:staff-symbol-referencer::callback)
864 (break-align-symbol . key-cancellation)
865 (break-visibility . ,begin-of-line-invisible)
867 (meta . ((class . Item)
868 (interfaces . (key-cancellation-interface
869 key-signature-interface
871 break-aligned-interface))))))
875 (stencil . ,ly:key-signature-interface::print)
876 (avoid-slur . inside)
877 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
879 (time-signature . (extra-space . 1.15))
880 (staff-bar . (extra-space . 1.1))
881 (right-edge . (extra-space . 0.5))
882 (first-note . (fixed-space . 2.5))))
883 (Y-offset . ,ly:staff-symbol-referencer::callback)
884 (break-align-symbol . key-signature)
885 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
886 (break-visibility . ,begin-of-line-visible)
888 (meta . ((class . Item)
889 (interfaces . (key-signature-interface
891 break-aligned-interface))))))
896 (stencil . ,ly:tie::print)
897 (control-points . ,ly:semi-tie::calc-control-points)
898 (direction . ,ly:tie::calc-direction)
899 (details . ((ratio . 0.333)
900 (height-limit . 1.0)))
901 (head-direction . ,LEFT)
903 (meta . ((class . Item)
904 (interfaces . (semi-tie-interface))))))
906 (LaissezVibrerTieColumn
910 (head-direction . ,LEFT)
911 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
912 (meta . ((class . Item)
913 (interfaces . (semi-tie-column-interface))))))
917 (springs-and-rods . ,ly:ledger-line-spanner::set-spacing-rods)
918 (stencil . ,ly:ledger-line-spanner::print)
921 (minimum-length-fraction . 0.25)
922 (length-fraction . 0.25)
924 (meta . ((class . Spanner)
925 (interfaces . (ledger-line-spanner-interface))))))
929 (break-align-symbol . left-edge)
930 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
933 (break-visibility . ,center-invisible)
935 (custos . (extra-space . 0.0))
936 (ambitus . (extra-space . 2.0))
937 (time-signature . (extra-space . 1.0))
938 (staff-bar . (extra-space . 0.0))
939 (breathing-sign . (minimum-space . 0.0))
940 (clef . (extra-space . 0.8))
941 (first-note . (fixed-space . 2.0))
942 (right-edge . (extra-space . 0.0))
943 (key-signature . (extra-space . 0.0))
944 (key-cancellation . (extra-space . 0.0))
946 (meta . ((class . Item)
947 (interfaces . (break-aligned-interface))))))
951 ;; ugh. A ligature bracket is totally different from
956 (edge-height . (0.7 . 0.7))
957 (shorten-pair . (-0.2 . -0.2))
959 (positions . ,ly:tuplet-bracket::calc-positions)
960 (stencil . ,ly:tuplet-bracket::print)
961 (staff-padding . 0.25)
962 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
963 (control-points . ,ly:tuplet-bracket::calc-control-points)
964 (meta . ((class . Spanner)
965 (interfaces . (line-interface
966 tuplet-bracket-interface))))))
970 (stencil . ,ly:lyric-extender::print)
971 (thickness . 0.8) ; line-thickness
972 (minimum-length . 1.5)
974 (meta . ((class . Spanner)
975 (interfaces . (lyric-interface
976 lyric-extender-interface))))))
984 (minimum-length . 0.3)
985 (minimum-distance . 0.1)
987 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
988 (stencil . ,ly:lyric-hyphen::print)
990 (meta . ((class . Spanner)
991 (interfaces . (lyric-interface
993 lyric-hyphen-interface
994 spanner-interface))))))
997 . ((minimum-distance . 0.45)
998 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1002 (meta . ((class . Spanner)
1003 (interfaces . (spanner-interface
1004 lyric-hyphen-interface))))))
1008 (stencil . ,lyric-text::print)
1009 (text . ,(grob::calc-property-by-copy 'text))
1010 (X-offset . ,ly:self-alignment-interface::aligned-on-x-parent)
1011 (self-alignment-X . ,CENTER)
1013 (font-series . bold-narrow)
1015 (extra-spacing-width . (0.0 . 0.0))
1016 (meta . ((class . Item)
1017 (interfaces . (rhythmic-grob-interface
1018 lyric-syllable-interface
1019 self-alignment-interface
1021 font-interface))))))
1026 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1028 (stencil . ,ly:measure-grouping::print)
1034 (meta . ((class . Spanner)
1035 (interfaces . (side-position-interface
1036 measure-grouping-interface))))))
1040 (neutral-direction . ,DOWN)
1041 (meta . ((class . Item)
1042 (interfaces . (melody-spanner-interface))))))
1048 (stencil . ,ly:mensural-ligature::print)
1049 (meta . ((class . Spanner)
1050 (interfaces . (mensural-ligature-interface
1051 font-interface))))))
1055 (stencil . ,ly:text-interface::print)
1056 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1060 (extra-spacing-width . (+inf.0 . -inf.0))
1061 (outside-staff-priority . 1000)
1062 (meta . ((class . Item)
1063 (interfaces . (text-interface
1064 side-position-interface
1066 metronome-mark-interface))))))
1070 (stencil . ,ly:multi-measure-rest::print)
1071 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1072 (Y-offset . ,ly:staff-symbol-referencer::callback)
1073 (staff-position . 0)
1075 (thick-thickness . 6.6)
1076 (hair-thickness . 2.0)
1078 (meta . ((class . Spanner)
1079 (interfaces . (multi-measure-rest-interface
1080 multi-measure-interface
1083 staff-symbol-referencer-interface))))))
1085 (MultiMeasureRestNumber
1087 (bound-padding . 2.0)
1088 (springs-and-rods . ,ly:multi-measure-rest::set-text-rods)
1089 (stencil . ,ly:text-interface::print)
1090 (X-offset . ,(ly:make-simple-closure
1092 ,(ly:make-simple-closure
1093 (list ly:self-alignment-interface::x-aligned-on-self))
1094 ,(ly:make-simple-closure
1095 (list ly:self-alignment-interface::x-centered-on-y-parent)))))
1096 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1098 (self-alignment-X . ,CENTER)
1101 (staff-padding . 0.4)
1102 (font-encoding . fetaNumber)
1103 (meta . ((class . Spanner)
1104 (interfaces . (side-position-interface
1105 multi-measure-interface
1106 self-alignment-interface
1108 text-interface))))))
1110 (MultiMeasureRestText
1112 (stencil . ,ly:text-interface::print)
1113 (X-offset . ,(ly:make-simple-closure
1115 ,(ly:make-simple-closure
1116 (list ly:self-alignment-interface::x-centered-on-y-parent))
1117 ,(ly:make-simple-closure
1118 (list ly:self-alignment-interface::x-aligned-on-self)))))
1119 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1120 (self-alignment-X . ,CENTER)
1123 (staff-padding . 0.25)
1124 (outside-staff-priority . 450)
1125 (meta . ((class . Spanner)
1126 (interfaces . (side-position-interface
1127 multi-measure-interface
1128 self-alignment-interface
1130 text-interface))))))
1133 (NonMusicalPaperColumn
1135 (allow-loose-spacing . #t)
1137 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1138 (X-extent . ,ly:axis-group-interface::width)
1139 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1140 ;; (stencil . ,ly:paper-column::print)
1143 (line-break-permission . allow)
1144 (page-break-permission . allow)
1146 ;; debugging stuff: print column number.
1147 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1149 (meta . ((class . Paper_column)
1150 (interfaces . (paper-column-interface
1151 axis-group-interface
1152 separation-item-interface
1153 spaceable-grob-interface))))))
1158 (X-extent . ,ly:axis-group-interface::width)
1159 (Y-extent . ,ly:axis-group-interface::height)
1160 (prefer-dotted-right . #t)
1161 (positioning-done . ,ly:note-collision-interface::calc-positioning-done)
1162 (meta . ((class . Item)
1163 (interfaces . (note-collision-interface
1164 axis-group-interface))))))
1169 (X-extent . ,ly:axis-group-interface::width)
1170 (Y-extent . ,ly:axis-group-interface::height)
1171 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1172 (meta . ((class . Item)
1173 (interfaces . (axis-group-interface
1174 separation-item-interface
1175 note-column-interface))))))
1179 (stencil . ,ly:note-head::print)
1180 (duration-log . ,note-head::calc-duration-log)
1181 (stem-attachment . ,ly:note-head::calc-stem-attachment)
1182 (glyph-name . ,note-head::calc-glyph-name)
1183 (Y-offset . ,ly:staff-symbol-referencer::callback)
1184 (X-offset . ,ly:note-head::stem-x-shift)
1185 (meta . ((class . Item)
1186 (interfaces . (rhythmic-grob-interface
1187 rhythmic-head-interface
1191 staff-symbol-referencer-interface))))))
1195 (stem-spacing-correction . 0.5)
1196 (same-direction-correction . 0.25)
1197 (space-to-barline . #t)
1198 ;; Changed this from 0.75.
1199 ;; If you ever change this back, please document! --hwn
1200 (knee-spacing-correction . 1.0)
1201 (meta . ((class . Item)
1202 (interfaces . (spacing-interface
1203 note-spacing-interface))))))
1207 (stencil . ,ly:text-interface::print)
1208 (meta . ((class . Item)
1209 (interfaces . (note-name-interface
1211 font-interface))))))
1216 (self-alignment-X . ,CENTER)
1217 (break-visibility . ,begin-of-line-visible)
1218 (X-offset . ,(ly:make-simple-closure
1220 ,(ly:make-simple-closure
1221 (list ly:self-alignment-interface::x-aligned-on-self))
1222 ,(ly:make-simple-closure
1223 (list ly:self-alignment-interface::centered-on-x-parent)))))
1224 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1225 (stencil . ,ly:text-interface::print)
1226 (font-shape . italic)
1227 (staff-padding . 0.2)
1229 (meta . ((class . Item)
1230 (interfaces . (text-interface
1231 self-alignment-interface
1232 side-position-interface
1233 font-interface))))))
1237 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1238 (stencil . ,ly:ottava-bracket::print)
1239 (font-shape . italic)
1240 (shorten-pair . (0.0 . -0.6))
1241 (staff-padding . 1.0)
1243 (minimum-length . 1.0)
1244 (style . dashed-line)
1245 (dash-fraction . 0.3)
1246 (edge-height . (0 . 1.2))
1248 (outside-staff-priority . 400)
1249 (meta . ((class . Spanner)
1250 (interfaces . (ottava-bracket-interface
1251 horizontal-bracket-interface
1253 side-position-interface
1255 text-interface))))))
1261 (allow-loose-spacing . #t)
1262 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1263 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1264 ;; (stencil . ,ly:paper-column::print)
1265 (X-extent . ,ly:axis-group-interface::width)
1268 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1269 (meta . ((class . Paper_column)
1270 (interfaces . (paper-column-interface
1271 separation-item-interface
1272 axis-group-interface
1273 spaceable-grob-interface))))))
1276 . ((stencil . ,parentheses-item::print)
1277 (stencils . ,parentheses-item::calc-parenthesis-stencils)
1280 (meta . ((class . Item)
1281 (interfaces . (parentheses-interface font-interface))))))
1283 (HarmonicParenthesesItem
1284 . ((stencil . ,parentheses-item::print)
1286 (stencils . ,parentheses-item::calc-angled-bracket-stencils)
1287 (meta . ((class . Item)
1288 (interfaces . (parentheses-interface font-interface))))))
1291 . ((details . ,default-slur-details)
1292 (control-points . ,ly:slur::calc-control-points)
1293 (direction . ,ly:slur::calc-direction)
1294 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1295 (Y-extent . ,ly:slur::height)
1296 (stencil . ,ly:slur::print)
1298 (minimum-length . 1.5)
1299 (height-limit . 2.0)
1301 (cross-staff . ,ly:slur::calc-cross-staff)
1302 (meta . ((class . Spanner)
1303 (interfaces . (slur-interface))))))
1307 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1308 (stencil . ,ly:multi-measure-rest::percent)
1311 (font-encoding . fetaMusic)
1312 (meta . ((class . Spanner)
1313 (interfaces . (multi-measure-rest-interface
1315 percent-repeat-item-interface))))))
1317 (PercentRepeatCounter
1319 (stencil . ,ly:text-interface::print)
1320 (X-offset . ,(ly:make-simple-closure
1322 ,(ly:make-simple-closure
1323 (list ly:self-alignment-interface::x-centered-on-y-parent))
1324 ,(ly:make-simple-closure
1325 (list ly:self-alignment-interface::x-aligned-on-self)))))
1326 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1327 (self-alignment-X . ,CENTER)
1330 (staff-padding . 0.25)
1332 (font-encoding . fetaNumber)
1333 (meta . ((class . Spanner)
1334 (interfaces . (side-position-interface
1335 self-alignment-interface
1336 percent-repeat-item-interface
1338 text-interface))))))
1340 ;; an example of a text spanner
1343 (stencil . ,ly:piano-pedal-bracket::print)
1345 (bound-padding . 1.0)
1347 (bracket-flare . (0.5 . 0.5))
1348 (edge-height . (1.0 . 1.0))
1349 (shorten-pair . (0.0 . 0.0))
1351 (meta . ((class . Spanner)
1352 (interfaces . (line-interface
1353 piano-pedal-interface
1354 piano-pedal-bracket-interface))))))
1359 (stencil . ,ly:text-interface::print)
1360 (X-offset . ,(ly:make-simple-closure
1362 ,(ly:make-simple-closure
1363 (list ly:break-alignable-interface::self-align-callback))
1364 ,(ly:make-simple-closure
1365 (list ly:self-alignment-interface::x-aligned-on-self)))))
1366 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1367 (extra-spacing-width . (+inf.0 . -inf.0))
1368 (self-alignment-X . ,CENTER)
1373 (break-visibility . ,end-of-line-invisible)
1374 (break-align-symbols . (staff-bar clef))
1376 (outside-staff-priority . 1500)
1377 (meta . ((class . Item)
1378 (interfaces . (text-interface
1379 side-position-interface
1380 break-alignable-interface
1383 self-alignment-interface))))))
1387 (stencil . ,ly:percent-repeat-item-interface::beat-slash)
1390 (meta . ((class . Item)
1391 (interfaces . (rhythmic-grob-interface
1392 percent-repeat-item-interface))))))
1396 (stencil . ,ly:tie::print)
1397 (control-points . ,ly:semi-tie::calc-control-points)
1398 (direction . ,ly:tie::calc-direction)
1399 (details . ((ratio . 0.333)
1400 (height-limit . 1.0)))
1402 (head-direction . ,RIGHT)
1403 (meta . ((class . Item)
1404 (interfaces . (semi-tie-interface))))))
1410 (direction . ,ly:tie::calc-direction)
1411 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1413 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1414 (meta . ((class . Item)
1415 (interfaces . (semi-tie-column-interface))))))
1419 (stencil . ,ly:rest::print)
1420 (duration-log . ,stem::calc-duration-log)
1421 (X-extent . ,ly:rest::width)
1422 (Y-extent . ,ly:rest::height)
1423 (Y-offset . ,ly:rest::y-offset-callback)
1424 (minimum-distance . 0.25)
1425 (cross-staff . ,ly:rest::calc-cross-staff)
1426 (meta . ((class . Item)
1427 (interfaces . (font-interface
1428 rhythmic-head-interface
1429 rhythmic-grob-interface
1430 staff-symbol-referencer-interface
1431 rest-interface))))))
1435 (minimum-distance . 0.75)
1436 (positioning-done . ,ly:rest-collision::calc-positioning-done)
1437 (meta . ((class . Item)
1438 (interfaces . (rest-collision-interface))))))
1443 ;; don't set direction here: it breaks staccato.
1445 ;; padding set in script definitions.
1446 (staff-padding . 0.25)
1447 (X-offset . ,script-interface::calc-x-offset)
1448 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1451 (stencil . ,ly:script-interface::print)
1452 (direction . ,ly:script-interface::calc-direction)
1453 (positioning-done . ,ly:script-interface::calc-positioning-done)
1454 (font-encoding . fetaMusic)
1455 (cross-staff . ,ly:script-interface::calc-cross-staff)
1456 (meta . ((class . Item)
1457 (interfaces . (script-interface
1458 side-position-interface
1459 font-interface))))))
1463 (before-line-breaking . ,ly:script-column::before-line-breaking)
1464 (meta . ((class . Item)
1465 (interfaces . (script-column-interface))))))
1469 (before-line-breaking . ,ly:script-column::row-before-line-breaking)
1470 (meta . ((class . Item)
1471 (interfaces . (script-column-interface))))))
1475 (avoid-slur . inside)
1476 (X-extent . ,ly:axis-group-interface::width)
1477 (Y-extent . ,ly:axis-group-interface::height)
1478 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1479 (stencil . ,ly:separation-item::print)
1480 (meta . ((class . Item)
1482 separation-item-interface))))))
1485 . ((details . ,default-slur-details)
1486 (control-points . ,ly:slur::calc-control-points)
1487 (direction . ,ly:slur::calc-direction)
1488 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1489 (Y-extent . ,ly:slur::height)
1490 (stencil . ,ly:slur::print)
1492 (line-thickness . 0.8)
1493 (minimum-length . 1.5)
1494 (height-limit . 2.0)
1496 (avoid-slur . inside)
1497 (cross-staff . ,ly:slur::calc-cross-staff)
1498 (meta . ((class . Spanner)
1499 (interfaces . (slur-interface))))))
1503 (stencil . ,ly:text-interface::print)
1504 (direction . ,RIGHT)
1505 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1506 (extra-spacing-width . (+inf.0 . -inf.0))
1507 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
1508 (font-shape . italic)
1509 (self-alignment-X . ,CENTER)
1510 (meta . ((class . Item)
1511 (interfaces . (text-interface
1512 self-alignment-interface
1513 piano-pedal-script-interface
1514 font-interface))))))
1516 (SostenutoPedalLineSpanner
1519 (Y-extent . ,ly:axis-group-interface::height)
1520 (X-extent . ,ly:axis-group-interface::width)
1521 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1522 (outside-staff-priority . 1000)
1524 (staff-padding . 1.0)
1526 (minimum-space . 1.0)
1528 (meta . ((class . Spanner)
1529 (interfaces . (piano-pedal-interface
1530 axis-group-interface
1531 side-position-interface))))))
1535 (springs-and-rods . ,ly:spacing-spanner::set-springs)
1536 (common-shortest-duration . ,ly:spacing-spanner::calc-common-shortest-duration)
1537 (average-spacing-wishes . #t)
1538 (shortest-duration-space . 2.0)
1539 (spacing-increment . 1.2)
1541 (base-shortest-duration . ,(ly:make-moment 3 16))
1542 (meta . ((class . Spanner)
1544 spacing-options-interface
1545 spacing-spanner-interface))))))
1549 (break-align-symbol . staff-bar)
1550 (Y-extent . ,ly:axis-group-interface::height)
1554 (stencil . ,ly:span-bar::print)
1555 (bar-size . ,ly:span-bar::calc-bar-size)
1556 (bar-extent . ,ly:axis-group-interface::height)
1557 (X-extent . ,ly:span-bar::width)
1558 (glyph-name . ,ly:span-bar::calc-glyph-name)
1559 (before-line-breaking . ,ly:span-bar::before-line-breaking)
1560 (allow-span-bar . #t)
1565 ;; Ross. page 151 lists other values, we opt for a leaner look
1569 (hair-thickness . 1.6)
1570 (thick-thickness . 6.0)
1571 (meta . ((class . Item)
1572 (interfaces . (span-bar-interface
1574 bar-line-interface))))))
1578 (stencil . ,ly:text-interface::print)
1579 (font-series . bold)
1581 (X-offset . ,ly:side-position-interface::x-aligned-side)
1584 (meta . ((class . Item)
1585 (interfaces . (side-position-interface
1586 stanza-number-interface
1588 font-interface))))))
1593 (stem-spacing-correction . 0.4)
1594 (meta . ((class . Item)
1595 (interfaces . (spacing-interface
1596 staff-spacing-interface))))))
1600 (Y-extent . ,ly:staff-symbol::height)
1601 (stencil . ,ly:staff-symbol::print)
1603 (ledger-line-thickness . (1.0 . 0.1))
1605 (meta . ((class . Spanner)
1606 (interfaces . (staff-symbol-interface))))))
1610 (direction . ,ly:stem::calc-direction)
1611 (duration-log . ,stem::calc-duration-log)
1612 (default-direction . ,ly:stem::calc-default-direction)
1613 (stem-end-position . ,ly:stem::calc-stem-end-position)
1615 (neutral-direction . ,DOWN)
1616 (stem-info . ,ly:stem::calc-stem-info)
1617 (positioning-done . ,ly:stem::calc-positioning-done)
1618 (stencil . ,ly:stem::print)
1619 (X-extent . ,ly:stem::width)
1620 (Y-extent . ,ly:stem::height)
1621 (length . ,ly:stem::calc-length)
1623 (cross-staff . ,ly:stem::calc-cross-staff)
1626 ;; 3.5 (or 3 measured from note head) is standard length
1627 ;; 32nd, 64th flagged stems should be longer
1628 (lengths . (3.5 3.5 3.5 4.5 5.0))
1630 ;; FIXME. 3.5 yields too long beams (according to Ross and
1631 ;; looking at Baerenreiter examples) for a number of common
1632 ;; boundary cases. Subtracting half a beam thickness fixes
1633 ;; this, but the bug may well be somewhere else.
1635 ;; FIXME this should come from 'lengths
1636 (beamed-lengths . (3.26 3.5 3.6))
1638 ;; The 'normal' minima
1639 (beamed-minimum-free-lengths . (1.83 1.5 1.25))
1640 ;(beamed-minimum-free-lengths . (2.0 1.83 1.25))
1642 ;; The 'extreme case' minima
1643 (beamed-extreme-minimum-free-lengths . (2.0 1.25))
1645 ;; Stems in unnatural (forced) direction should be shortened by
1646 ;; one staff space, according to [Roush & Gourlay].
1647 ;; Flagged stems we shorten only half a staff space.
1648 (stem-shorten . (1.0 0.5))
1652 ;; We use the normal minima as minimum for the ideal lengths,
1653 ;; and the extreme minima as abolute minimum length.
1655 (X-offset . ,ly:stem::offset-callback)
1656 (Y-offset . ,ly:staff-symbol-referencer::callback)
1657 (meta . ((class . Item)
1658 (interfaces . (stem-interface
1659 font-interface))))))
1663 (Y-extent . ,ly:stem-tremolo::height)
1664 (X-extent . ,ly:stem-tremolo::width)
1665 (stencil . ,ly:stem-tremolo::print)
1666 (slope . ,ly:stem-tremolo::calc-slope)
1667 (beam-width . ,ly:stem-tremolo::calc-width) ; staff-space
1668 (style . ,ly:stem-tremolo::calc-style)
1669 (beam-thickness . 0.48) ; staff-space
1670 (meta . ((class . Item)
1671 (interfaces . (stem-tremolo-interface))))))
1675 (stencil . ,print-circled-text-callback)
1676 (text . ,string-number::calc-text)
1678 (staff-padding . 0.5)
1679 (self-alignment-X . ,CENTER)
1680 (self-alignment-Y . ,CENTER)
1681 (script-priority . 100)
1682 (font-encoding . fetaNumber)
1683 (font-size . -5) ; don't overlap when next to heads.
1684 (meta . ((class . Item)
1685 (interfaces . (string-number-interface
1687 text-script-interface
1689 side-position-interface
1690 self-alignment-interface))))))
1694 (stencil . ,ly:text-interface::print)
1695 (text . ,stroke-finger::calc-text)
1696 (digit-names . #("p" "i" "m" "a" "x"))
1698 (staff-padding . 0.5)
1699 (self-alignment-X . ,CENTER)
1700 (self-alignment-Y . ,CENTER)
1701 (script-priority . 100)
1702 (font-shape . italic)
1703 (font-size . -4) ; don't overlap when next to heads.
1704 (meta . ((class . Item)
1705 (interfaces . (stroke-finger-interface
1707 text-script-interface
1709 side-position-interface
1710 self-alignment-interface))))))
1714 (extra-spacing-width . (+inf.0 . -inf.0))
1715 (stencil . ,ly:sustain-pedal::print)
1716 (self-alignment-X . ,CENTER)
1717 (direction . ,RIGHT)
1718 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
1719 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1720 (meta . ((class . Item)
1721 (interfaces . (piano-pedal-interface
1723 self-alignment-interface
1724 piano-pedal-script-interface
1725 font-interface))))))
1727 (SustainPedalLineSpanner
1730 (Y-extent . ,ly:axis-group-interface::height)
1731 (X-extent . ,ly:axis-group-interface::width)
1732 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1733 (outside-staff-priority . 1000)
1736 (staff-padding . 1.2)
1737 (minimum-space . 1.0)
1739 (meta . ((class . Spanner)
1740 (interfaces . (piano-pedal-interface
1741 axis-group-interface
1742 side-position-interface))))))
1747 (X-extent . ,ly:axis-group-interface::width)
1748 (Y-extent . ,ly:axis-group-interface::height)
1749 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
1750 (max-stretch . ,ly:axis-group-interface::calc-max-stretch)
1751 (meta . ((class . System)
1752 (interfaces . (system-interface
1753 axis-group-interface))))))
1759 (stencil . ,ly:system-start-delimiter::print)
1760 (collapse-height . 5.0)
1761 (X-offset . ,ly:side-position-interface::x-aligned-side)
1763 (font-encoding . fetaBraces)
1765 (meta . ((class . Spanner)
1766 (interfaces . (system-start-delimiter-interface
1767 side-position-interface
1768 font-interface))))))
1773 (X-offset . ,ly:side-position-interface::x-aligned-side)
1775 (stencil . ,ly:system-start-delimiter::print)
1776 (style . line-bracket)
1778 (meta . ((class . Spanner)
1779 (interfaces . (font-interface
1780 side-position-interface
1781 system-start-delimiter-interface))))))
1787 (X-offset . ,ly:side-position-interface::x-aligned-side)
1789 (stencil . ,ly:system-start-delimiter::print)
1791 (collapse-height . 5.0)
1793 (meta . ((class . Spanner)
1794 (interfaces . (font-interface
1795 side-position-interface
1796 system-start-delimiter-interface))))))
1803 (padding . -0.1) ;; bar must cover rounded ending of staff line.
1804 (X-offset . ,ly:side-position-interface::x-aligned-side)
1807 (collapse-height . 5.0)
1809 (stencil . ,ly:system-start-delimiter::print)
1810 (meta . ((class . Spanner)
1811 (interfaces . (side-position-interface
1812 system-start-delimiter-interface))))))
1817 (stencil . ,ly:text-interface::print)
1818 (Y-offset . ,ly:staff-symbol-referencer::callback)
1819 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1820 (direction . ,CENTER)
1822 (stem-attachment . (0.0 . 1.35))
1823 (font-series . bold)
1824 (meta . ((class . Item)
1826 . (rhythmic-head-interface
1827 font-interface rhythmic-grob-interface
1829 staff-symbol-referencer-interface
1830 text-interface))))))
1834 (extra-spacing-width . (+inf.0 . -inf.0))
1835 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1836 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1840 ;; sync with Fingering ?
1842 (staff-padding . 0.5)
1844 (stencil . ,ly:text-interface::print)
1845 (direction . ,ly:script-interface::calc-direction)
1846 (positioning-done . ,ly:script-interface::calc-positioning-done)
1848 (outside-staff-priority . 450)
1849 (avoid-slur . around)
1850 (slur-padding . 0.5)
1851 (script-priority . 200)
1852 (cross-staff . ,ly:script-interface::calc-cross-staff)
1853 ;; todo: add X self alignment?
1854 (meta . ((class . Item)
1855 (interfaces . (text-script-interface
1857 side-position-interface
1858 font-interface))))))
1862 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1863 (font-shape . italic)
1864 (style . dashed-line)
1865 (staff-padding . 0.8)
1866 (dash-fraction . 0.2)
1870 (outside-staff-priority . 350)
1872 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
1873 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
1874 (bound-details . ((left . ((Y . 0)
1876 (attach-dir . ,LEFT)
1882 (stencil . ,ly:line-spanner::print)
1884 (meta . ((class . Spanner)
1885 (interfaces . (line-spanner-interface
1886 side-position-interface
1887 font-interface))))))
1891 (control-points . ,ly:tie::calc-control-points)
1892 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1893 (avoid-slur . inside)
1894 (direction . ,ly:tie::calc-direction)
1895 (neutral-direction . ,UP)
1896 (stencil . ,ly:tie::print)
1899 ;; for a full list, see tie-details.cc
1901 (center-staff-line-clearance . 0.6)
1902 (tip-staff-line-clearance . 0.45)
1903 (note-head-gap . 0.2)
1905 (height-limit . 1.0)
1906 (horizontal-distance-penalty-factor . 10)
1907 (same-dir-as-stem-penalty . 8)
1908 (min-length-penalty-factor . 26)
1909 (tie-tie-collision-distance . 0.45)
1910 (tie-tie-collision-penalty . 25.0)
1911 (intra-space-threshold . 1.25)
1912 (outer-tie-vertical-distance-symmetry-penalty-factor . 10)
1913 (outer-tie-length-symmetry-penalty-factor . 10)
1914 (vertical-distance-penalty-factor . 7)
1915 (outer-tie-vertical-gap . 0.25)
1916 (multi-tie-region-size . 1)
1917 (single-tie-region-size . 4)
1918 (between-length-limit . 1.0)))
1921 (line-thickness . 0.8)
1922 (meta . ((class . Spanner)
1923 (interfaces . (tie-interface))))))
1927 (positioning-done . ,ly:tie-column::calc-positioning-done)
1928 (before-line-breaking . ,ly:tie-column::before-line-breaking)
1931 (meta . ((class . Spanner)
1932 (interfaces . (tie-column-interface))))))
1936 (stencil . ,ly:time-signature::print)
1937 (break-align-symbol . time-signature)
1939 . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1940 (break-visibility . ,all-visible)
1941 (avoid-slur . inside)
1943 (first-note . (fixed-space . 2.0))
1944 (right-edge . (extra-space . 0.5))
1945 (staff-bar . (minimum-space . 2.0))))
1948 (meta . ((class . Item)
1949 (interfaces . (time-signature-interface
1950 break-aligned-interface
1951 font-interface))))))
1955 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
1956 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
1958 (bound-details . ((left . ((text . ,(make-translate-scaled-markup
1960 (make-musicglyph-markup "scripts.trill")))
1962 (stencil-offset . (-0.5 . 0))
1964 (attach-dir . ,CENTER)
1965 ;; this isn't CENTER because the trill glyph's origin
1966 ;; is not centered in its extent; to have the trill
1967 ;; spanner aligned the same as a trill, we need a slight offset
1968 (anchor-alignment . 0.15)
1970 (left-broken . ((end-on-note . #t)))
1974 (stencil . ,ly:line-spanner::print)
1977 (staff-padding . 1.0)
1980 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1982 (outside-staff-priority . 50)
1983 (meta . ((class . Spanner)
1984 (interfaces . (line-spanner-interface
1986 trill-spanner-interface
1987 side-position-interface
1988 font-interface))))))
1990 (TrillPitchAccidental
1991 . ((X-offset . ,ly:side-position-interface::x-aligned-side)
1996 (stencil . ,ly:accidental-interface::print)
1997 (Y-extent . ,ly:accidental-interface::height)
1998 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
1999 (meta . ((class . Item)
2000 (interfaces . (trill-pitch-accidental-interface
2001 accidental-interface
2002 side-position-interface
2003 font-interface))))))
2006 . ((X-offset . ,ly:side-position-interface::x-aligned-side)
2009 (stencil . ,parenthesize-elements)
2010 (stencils . ,parentheses-item::calc-parenthesis-stencils)
2011 (direction . ,RIGHT)
2014 (meta . ((class . Item)
2015 (interfaces . (side-position-interface
2016 parentheses-interface
2018 rhythmic-head-interface
2020 axis-group-interface))))))
2024 (stencil . ,ly:note-head::print)
2026 (Y-offset . ,ly:staff-symbol-referencer::callback)
2028 (meta . ((class . Item)
2029 (interfaces . (rhythmic-head-interface
2031 pitched-trill-interface
2033 staff-symbol-referencer-interface))))))
2039 (edge-height . (0.7 . 0.7))
2040 (shorten-pair . (-0.2 . -0.2))
2041 (staff-padding . 0.25)
2042 (direction . ,ly:tuplet-bracket::calc-direction)
2043 (positions . ,ly:tuplet-bracket::calc-positions)
2044 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
2045 (control-points . ,ly:tuplet-bracket::calc-control-points)
2046 (stencil . ,ly:tuplet-bracket::print)
2047 (cross-staff . ,ly:tuplet-bracket::calc-cross-staff)
2049 (meta . ((class . Spanner)
2050 (interfaces . (line-interface
2051 tuplet-bracket-interface))))))
2055 (stencil . ,ly:tuplet-number::print)
2056 (text . ,tuplet-number::calc-denominator-text)
2057 (font-shape . italic)
2059 (avoid-slur . inside)
2060 (cross-staff . ,ly:tuplet-number::calc-cross-staff)
2061 (meta . ((class . Spanner)
2062 (interfaces . (text-interface tuplet-number-interface
2063 font-interface))))))
2068 (stencil . ,ly:text-interface::print)
2069 (font-shape . italic)
2070 (extra-spacing-width . (+inf.0 . -inf.0))
2071 (self-alignment-X . ,CENTER)
2072 (direction . ,RIGHT)
2073 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
2074 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2075 (meta . ((class . Item)
2076 (interfaces . (text-interface
2077 piano-pedal-script-interface
2078 self-alignment-interface
2079 font-interface))))))
2081 (UnaCordaPedalLineSpanner
2084 (Y-extent . ,ly:axis-group-interface::height)
2085 (X-extent . ,ly:axis-group-interface::width)
2086 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2087 (outside-staff-priority . 1000)
2090 (staff-padding . 1.2)
2091 (minimum-space . 1.0)
2093 (meta . ((class . Spanner)
2094 (interfaces . (piano-pedal-interface
2095 axis-group-interface
2096 side-position-interface))))))
2103 (stencil . ,ly:vaticana-ligature::print)
2104 (meta . ((class . Spanner)
2105 (interfaces . (vaticana-ligature-interface
2106 font-interface))))))
2111 (positioning-done . ,ly:align-interface::calc-positioning-done)
2112 (after-line-breaking . ,ly:align-interface::stretch-after-break)
2113 (Y-extent . ,ly:axis-group-interface::height)
2114 (X-extent . ,ly:axis-group-interface::width)
2117 (vertical-skylines . ,ly:axis-group-interface::combine-skylines)
2119 (meta . ((class . Spanner)
2120 (object-callbacks . ((Y-common . ,ly:axis-group-interface::calc-y-common)))
2121 (interfaces . (align-interface
2122 axis-group-interface))))))
2127 (Y-offset . ,ly:hara-kiri-group-spanner::force-hara-kiri-callback)
2128 (Y-extent . ,ly:hara-kiri-group-spanner::y-extent)
2129 (X-extent . ,ly:axis-group-interface::width)
2130 (vertical-skylines . ,ly:hara-kiri-group-spanner::calc-skylines)
2131 (max-stretch . ,ly:axis-group-interface::calc-max-stretch)
2132 (stencil . ,ly:axis-group-interface::print)
2133 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2134 (meta . ((class . Spanner)
2135 (object-callbacks . ((X-common . ,ly:axis-group-interface::calc-x-common)))
2136 (interfaces . (axis-group-interface
2137 hara-kiri-group-spanner-interface
2138 vertically-spaceable-interface))))))
2142 (stencil . ,ly:volta-bracket-interface::print)
2143 (font-encoding . fetaNumber)
2144 (thickness . 1.6) ;; line-thickness
2145 (edge-height . (2.0 . 2.0)) ;; staff-space;
2148 (meta . ((class . Spanner)
2149 (interfaces . (volta-bracket-interface
2150 horizontal-bracket-interface
2153 side-position-interface
2154 font-interface))))))
2156 (VoltaBracketSpanner
2162 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2163 (outside-staff-priority . 100)
2164 (Y-extent . ,ly:axis-group-interface::height)
2165 (X-extent . ,ly:axis-group-interface::width)
2166 (no-alignment . ,#t)
2167 (meta . ((class . Spanner)
2168 (interfaces . (side-position-interface
2169 axis-group-interface))))))
2178 (bound-details . ((right . ((attach-dir . ,CENTER)
2181 (left . ((attach-dir . ,CENTER)
2185 (stencil . ,ly:line-spanner::print)
2186 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2187 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2188 (meta . ((class . Spanner)
2189 (interfaces . (line-spanner-interface
2190 line-interface))))))
2194 (define (completize-grob-entry x)
2195 "Transplant assoc key into 'name entry of 'meta of X. Set interfaces for Item, Spanner etc.
2197 ;; (display (car x))
2199 (let* ((name-sym (car x))
2200 (grob-entry (cdr x))
2201 (meta-entry (cdr (assoc 'meta grob-entry)))
2202 (class (cdr (assoc 'class meta-entry)))
2204 (cdr (assoc 'interfaces meta-entry))))
2208 (set! ifaces-entry (cons 'item-interface ifaces-entry)))
2209 ((eq? 'Spanner class)
2210 (set! ifaces-entry (cons 'spanner-interface ifaces-entry)))
2211 ((eq? 'Paper_column class)
2212 (set! ifaces-entry (cons 'item-interface
2213 (cons 'paper-column-interface ifaces-entry))))
2214 ((eq? 'System class)
2215 (set! ifaces-entry (cons 'system-interface
2216 (cons 'spanner-interface ifaces-entry))))
2218 (ly:warning "Unknown class ~a" class)))
2220 (set! ifaces-entry (uniq-list (sort ifaces-entry symbol<?)))
2221 (set! ifaces-entry (cons 'grob-interface ifaces-entry))
2223 (set! meta-entry (assoc-set! meta-entry 'name name-sym))
2224 (set! meta-entry (assoc-set! meta-entry 'interfaces
2226 (set! grob-entry (assoc-set! grob-entry 'meta meta-entry))
2227 (cons name-sym grob-entry)))
2229 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
2231 ;; (display (map pair? all-grob-descriptions))
2233 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
2236 ;; (display (car x)) (newline)
2238 (set-object-property! (car x) 'translation-type? list?)
2239 (set-object-property! (car x) 'is-grob? #t))
2240 all-grob-descriptions)
2242 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))
2244 (define pure-print-callbacks
2246 print-circled-text-callback
2249 ly:arpeggio::brew-chord-bracket
2254 ly:text-interface::print
2255 ly:script-interface::print))
2257 ;; ly:grob::stencil-extent is safe iff the print callback is safe too
2258 (define (pure-stencil-height grob start stop)
2259 (let ((sten (ly:grob-property-data grob 'stencil)))
2262 (memq sten pure-print-callbacks))
2263 (ly:grob::stencil-height grob)
2266 (define pure-conversions-alist
2268 (,ly:accidental-interface::height . ,ly:accidental-interface::pure-height)
2269 (,ly:arpeggio::height . ,ly:arpeggio::pure-height)
2270 (,ly:slur::outside-slur-callback . ,ly:slur::pure-outside-slur-callback)
2271 (,ly:stem::height . ,ly:stem::pure-height)
2272 (,ly:rest::height . ,ly:rest::pure-height)
2273 (,ly:grob::stencil-height . ,pure-stencil-height)
2274 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)
2275 (,ly:axis-group-interface::height . ,ly:axis-group-interface::pure-height)
2276 (,ly:hara-kiri-group-spanner::y-extent . ,ly:hara-kiri-group-spanner::pure-height)
2277 (,ly:slur::height . ,ly:slur::pure-height)
2278 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)))
2280 (define pure-functions
2282 parenthesize-elements
2283 ly:rest::y-offset-callback
2284 ly:staff-symbol-referencer::callback
2285 ly:staff-symbol::height))
2287 (define-public (pure-relevant? grob)
2288 (let ((extent-callback (ly:grob-property-data grob 'Y-extent)))
2291 (pair? extent-callback)
2292 (memq extent-callback pure-functions)
2294 (pair? (assq extent-callback pure-conversions-alist))
2297 (not (eq? extent-callback ly:grob::stencil-height))
2298 (memq (ly:grob-property-data grob 'stencil) pure-print-callbacks)
2299 (ly:stencil? (ly:grob-property-data grob 'stencil))
2303 (define-public (call-pure-function unpure args start end)
2304 (if (ly:simple-closure? unpure)
2305 (ly:eval-simple-closure (car args) unpure start end)
2306 (if (not (procedure? unpure))
2308 (if (memq unpure pure-functions)
2310 (let ((pure (assq unpure pure-conversions-alist)))
2314 (list (car args) start end)