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)
1628 (flag . ,ly:stem::calc-flag)
1631 ;; 3.5 (or 3 measured from note head) is standard length
1632 ;; 32nd, 64th flagged stems should be longer
1633 (lengths . (3.5 3.5 3.5 4.5 5.0))
1635 ;; FIXME. 3.5 yields too long beams (according to Ross and
1636 ;; looking at Baerenreiter examples) for a number of common
1637 ;; boundary cases. Subtracting half a beam thickness fixes
1638 ;; this, but the bug may well be somewhere else.
1640 ;; FIXME this should come from 'lengths
1641 (beamed-lengths . (3.26 3.5 3.6))
1643 ;; The 'normal' minima
1644 (beamed-minimum-free-lengths . (1.83 1.5 1.25))
1645 ;(beamed-minimum-free-lengths . (2.0 1.83 1.25))
1647 ;; The 'extreme case' minima
1648 (beamed-extreme-minimum-free-lengths . (2.0 1.25))
1650 ;; Stems in unnatural (forced) direction should be shortened by
1651 ;; one staff space, according to [Roush & Gourlay].
1652 ;; Flagged stems we shorten only half a staff space.
1653 (stem-shorten . (1.0 0.5))
1657 ;; We use the normal minima as minimum for the ideal lengths,
1658 ;; and the extreme minima as abolute minimum length.
1660 (X-offset . ,ly:stem::offset-callback)
1661 (Y-offset . ,ly:staff-symbol-referencer::callback)
1662 (meta . ((class . Item)
1663 (interfaces . (stem-interface
1664 font-interface))))))
1668 (Y-extent . ,ly:stem-tremolo::height)
1669 (X-extent . ,ly:stem-tremolo::width)
1670 (stencil . ,ly:stem-tremolo::print)
1671 (slope . ,ly:stem-tremolo::calc-slope)
1672 (beam-width . ,ly:stem-tremolo::calc-width) ; staff-space
1673 (style . ,ly:stem-tremolo::calc-style)
1674 (beam-thickness . 0.48) ; staff-space
1675 (meta . ((class . Item)
1676 (interfaces . (stem-tremolo-interface))))))
1680 (stencil . ,print-circled-text-callback)
1681 (text . ,string-number::calc-text)
1683 (staff-padding . 0.5)
1684 (self-alignment-X . ,CENTER)
1685 (self-alignment-Y . ,CENTER)
1686 (script-priority . 100)
1687 (avoid-slur . around)
1688 (font-encoding . fetaNumber)
1689 (font-size . -5) ; don't overlap when next to heads.
1690 (meta . ((class . Item)
1691 (interfaces . (string-number-interface
1693 text-script-interface
1695 side-position-interface
1696 self-alignment-interface))))))
1700 (stencil . ,ly:text-interface::print)
1701 (text . ,stroke-finger::calc-text)
1702 (digit-names . #("p" "i" "m" "a" "x"))
1704 (staff-padding . 0.5)
1705 (self-alignment-X . ,CENTER)
1706 (self-alignment-Y . ,CENTER)
1707 (script-priority . 100)
1708 (font-shape . italic)
1709 (font-size . -4) ; don't overlap when next to heads.
1710 (meta . ((class . Item)
1711 (interfaces . (stroke-finger-interface
1713 text-script-interface
1715 side-position-interface
1716 self-alignment-interface))))))
1720 (extra-spacing-width . (+inf.0 . -inf.0))
1721 (stencil . ,ly:sustain-pedal::print)
1722 (self-alignment-X . ,CENTER)
1723 (direction . ,RIGHT)
1724 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
1725 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1726 (meta . ((class . Item)
1727 (interfaces . (piano-pedal-interface
1729 self-alignment-interface
1730 piano-pedal-script-interface
1731 font-interface))))))
1733 (SustainPedalLineSpanner
1736 (Y-extent . ,ly:axis-group-interface::height)
1737 (X-extent . ,ly:axis-group-interface::width)
1738 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1739 (outside-staff-priority . 1000)
1742 (staff-padding . 1.2)
1743 (minimum-space . 1.0)
1745 (meta . ((class . Spanner)
1746 (interfaces . (piano-pedal-interface
1747 axis-group-interface
1748 side-position-interface))))))
1753 (X-extent . ,ly:axis-group-interface::width)
1754 (Y-extent . ,ly:axis-group-interface::height)
1755 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
1756 (max-stretch . ,ly:axis-group-interface::calc-max-stretch)
1757 (meta . ((class . System)
1758 (interfaces . (system-interface
1759 axis-group-interface))))))
1765 (stencil . ,ly:system-start-delimiter::print)
1766 (collapse-height . 5.0)
1767 (X-offset . ,ly:side-position-interface::x-aligned-side)
1769 (font-encoding . fetaBraces)
1771 (meta . ((class . Spanner)
1772 (interfaces . (system-start-delimiter-interface
1773 side-position-interface
1774 font-interface))))))
1779 (X-offset . ,ly:side-position-interface::x-aligned-side)
1781 (stencil . ,ly:system-start-delimiter::print)
1782 (style . line-bracket)
1784 (meta . ((class . Spanner)
1785 (interfaces . (font-interface
1786 side-position-interface
1787 system-start-delimiter-interface))))))
1793 (X-offset . ,ly:side-position-interface::x-aligned-side)
1795 (stencil . ,ly:system-start-delimiter::print)
1797 (collapse-height . 5.0)
1799 (meta . ((class . Spanner)
1800 (interfaces . (font-interface
1801 side-position-interface
1802 system-start-delimiter-interface))))))
1809 (padding . -0.1) ;; bar must cover rounded ending of staff line.
1810 (X-offset . ,ly:side-position-interface::x-aligned-side)
1813 (collapse-height . 5.0)
1815 (stencil . ,ly:system-start-delimiter::print)
1816 (meta . ((class . Spanner)
1817 (interfaces . (side-position-interface
1818 system-start-delimiter-interface))))))
1823 (stencil . ,ly:text-interface::print)
1824 (duration-log . ,note-head::calc-duration-log)
1825 (Y-offset . ,ly:staff-symbol-referencer::callback)
1826 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1827 (direction . ,CENTER)
1829 (stem-attachment . (0.0 . 1.35))
1830 (font-series . bold)
1831 (meta . ((class . Item)
1833 . (rhythmic-head-interface
1834 font-interface rhythmic-grob-interface
1836 staff-symbol-referencer-interface
1837 text-interface))))))
1841 (extra-spacing-width . (+inf.0 . -inf.0))
1842 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1843 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1847 ;; sync with Fingering ?
1849 (staff-padding . 0.5)
1851 (stencil . ,ly:text-interface::print)
1852 (direction . ,ly:script-interface::calc-direction)
1853 (positioning-done . ,ly:script-interface::calc-positioning-done)
1855 (outside-staff-priority . 450)
1856 (avoid-slur . around)
1857 (slur-padding . 0.5)
1858 (script-priority . 200)
1859 (cross-staff . ,ly:script-interface::calc-cross-staff)
1860 ;; todo: add X self alignment?
1861 (meta . ((class . Item)
1862 (interfaces . (text-script-interface
1864 instrument-specific-markup-interface
1865 side-position-interface
1866 font-interface))))))
1870 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1871 (font-shape . italic)
1872 (style . dashed-line)
1873 (staff-padding . 0.8)
1874 (dash-fraction . 0.2)
1878 (outside-staff-priority . 350)
1880 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
1881 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
1882 (bound-details . ((left . ((Y . 0)
1884 (attach-dir . ,LEFT)
1890 (stencil . ,ly:line-spanner::print)
1892 (meta . ((class . Spanner)
1893 (interfaces . (line-spanner-interface
1894 side-position-interface
1895 font-interface))))))
1899 (control-points . ,ly:tie::calc-control-points)
1900 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1901 (avoid-slur . inside)
1902 (direction . ,ly:tie::calc-direction)
1903 (neutral-direction . ,UP)
1904 (stencil . ,ly:tie::print)
1907 ;; for a full list, see tie-details.cc
1909 (center-staff-line-clearance . 0.6)
1910 (tip-staff-line-clearance . 0.45)
1911 (note-head-gap . 0.2)
1913 (height-limit . 1.0)
1914 (horizontal-distance-penalty-factor . 10)
1915 (same-dir-as-stem-penalty . 8)
1916 (min-length-penalty-factor . 26)
1917 (tie-tie-collision-distance . 0.45)
1918 (tie-tie-collision-penalty . 25.0)
1919 (intra-space-threshold . 1.25)
1920 (outer-tie-vertical-distance-symmetry-penalty-factor . 10)
1921 (outer-tie-length-symmetry-penalty-factor . 10)
1922 (vertical-distance-penalty-factor . 7)
1923 (outer-tie-vertical-gap . 0.25)
1924 (multi-tie-region-size . 3)
1925 (single-tie-region-size . 4)
1926 (between-length-limit . 1.0)))
1929 (line-thickness . 0.8)
1930 (meta . ((class . Spanner)
1931 (interfaces . (tie-interface))))))
1935 (positioning-done . ,ly:tie-column::calc-positioning-done)
1936 (before-line-breaking . ,ly:tie-column::before-line-breaking)
1939 (meta . ((class . Spanner)
1940 (interfaces . (tie-column-interface))))))
1944 (stencil . ,ly:time-signature::print)
1945 (break-align-symbol . time-signature)
1947 . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1948 (break-visibility . ,all-visible)
1949 (avoid-slur . inside)
1950 (extra-spacing-height . (-1.0 . 1.0))
1952 (first-note . (fixed-space . 2.0))
1953 (right-edge . (extra-space . 0.5))
1954 (staff-bar . (minimum-space . 2.0))))
1957 (meta . ((class . Item)
1958 (interfaces . (time-signature-interface
1959 break-aligned-interface
1960 font-interface))))))
1964 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
1965 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
1967 (bound-details . ((left . ((text . ,(make-translate-scaled-markup
1969 (make-musicglyph-markup "scripts.trill")))
1971 (stencil-offset . (-0.5 . 0))
1973 (attach-dir . ,CENTER)
1974 ;; this isn't CENTER because the trill glyph's origin
1975 ;; is not centered in its extent; to have the trill
1976 ;; spanner aligned the same as a trill, we need a slight offset
1977 (anchor-alignment . 0.15)
1979 (left-broken . ((end-on-note . #t)))
1983 (stencil . ,ly:line-spanner::print)
1986 (staff-padding . 1.0)
1989 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1991 (outside-staff-priority . 50)
1992 (meta . ((class . Spanner)
1993 (interfaces . (line-spanner-interface
1995 trill-spanner-interface
1996 side-position-interface
1997 font-interface))))))
1999 (TrillPitchAccidental
2000 . ((X-offset . ,ly:side-position-interface::x-aligned-side)
2005 (stencil . ,ly:accidental-interface::print)
2006 (Y-extent . ,ly:accidental-interface::height)
2007 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
2008 (meta . ((class . Item)
2009 (interfaces . (trill-pitch-accidental-interface
2010 accidental-interface
2011 side-position-interface
2012 font-interface))))))
2015 . ((X-offset . ,ly:side-position-interface::x-aligned-side)
2018 (stencil . ,parenthesize-elements)
2019 (stencils . ,parentheses-item::calc-parenthesis-stencils)
2020 (direction . ,RIGHT)
2023 (meta . ((class . Item)
2024 (interfaces . (side-position-interface
2025 parentheses-interface
2028 axis-group-interface))))))
2032 (stencil . ,ly:note-head::print)
2034 (Y-offset . ,ly:staff-symbol-referencer::callback)
2036 (meta . ((class . Item)
2037 (interfaces . (rhythmic-head-interface
2039 pitched-trill-interface
2041 staff-symbol-referencer-interface))))))
2047 (edge-height . (0.7 . 0.7))
2048 (shorten-pair . (-0.2 . -0.2))
2049 (staff-padding . 0.25)
2050 (full-length-to-extent . #t)
2051 (direction . ,ly:tuplet-bracket::calc-direction)
2052 (positions . ,ly:tuplet-bracket::calc-positions)
2053 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
2054 (control-points . ,ly:tuplet-bracket::calc-control-points)
2055 (stencil . ,ly:tuplet-bracket::print)
2056 (cross-staff . ,ly:tuplet-bracket::calc-cross-staff)
2058 (meta . ((class . Spanner)
2059 (interfaces . (line-interface
2060 tuplet-bracket-interface))))))
2064 (stencil . ,ly:tuplet-number::print)
2065 (text . ,tuplet-number::calc-denominator-text)
2066 (font-shape . italic)
2068 (avoid-slur . inside)
2069 (cross-staff . ,ly:tuplet-number::calc-cross-staff)
2070 (meta . ((class . Spanner)
2071 (interfaces . (text-interface tuplet-number-interface
2072 font-interface))))))
2077 (stencil . ,ly:text-interface::print)
2078 (font-shape . italic)
2079 (extra-spacing-width . (+inf.0 . -inf.0))
2080 (self-alignment-X . ,CENTER)
2081 (direction . ,RIGHT)
2082 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
2083 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2084 (meta . ((class . Item)
2085 (interfaces . (text-interface
2086 piano-pedal-script-interface
2087 self-alignment-interface
2088 font-interface))))))
2090 (UnaCordaPedalLineSpanner
2093 (Y-extent . ,ly:axis-group-interface::height)
2094 (X-extent . ,ly:axis-group-interface::width)
2095 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2096 (outside-staff-priority . 1000)
2099 (staff-padding . 1.2)
2100 (minimum-space . 1.0)
2102 (meta . ((class . Spanner)
2103 (interfaces . (piano-pedal-interface
2104 axis-group-interface
2105 side-position-interface))))))
2112 (stencil . ,ly:vaticana-ligature::print)
2113 (meta . ((class . Spanner)
2114 (interfaces . (vaticana-ligature-interface
2115 font-interface))))))
2120 (positioning-done . ,ly:align-interface::calc-positioning-done)
2121 (after-line-breaking . ,ly:align-interface::stretch-after-break)
2122 (Y-extent . ,ly:axis-group-interface::height)
2123 (X-extent . ,ly:axis-group-interface::width)
2126 (vertical-skylines . ,ly:axis-group-interface::combine-skylines)
2128 (meta . ((class . Spanner)
2129 (object-callbacks . ((Y-common . ,ly:axis-group-interface::calc-y-common)))
2130 (interfaces . (align-interface
2131 axis-group-interface))))))
2136 (Y-offset . ,ly:hara-kiri-group-spanner::force-hara-kiri-callback)
2137 (Y-extent . ,ly:hara-kiri-group-spanner::y-extent)
2138 (X-extent . ,ly:axis-group-interface::width)
2139 (vertical-skylines . ,ly:hara-kiri-group-spanner::calc-skylines)
2140 (max-stretch . ,ly:axis-group-interface::calc-max-stretch)
2141 (stencil . ,ly:axis-group-interface::print)
2142 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2143 (meta . ((class . Spanner)
2144 (object-callbacks . ((X-common . ,ly:axis-group-interface::calc-x-common)))
2145 (interfaces . (axis-group-interface
2146 hara-kiri-group-spanner-interface
2147 vertically-spaceable-interface))))))
2151 (stencil . ,ly:volta-bracket-interface::print)
2152 (font-encoding . fetaNumber)
2153 (thickness . 1.6) ;; line-thickness
2154 (edge-height . (2.0 . 2.0)) ;; staff-space;
2158 (meta . ((class . Spanner)
2159 (interfaces . (volta-bracket-interface
2160 horizontal-bracket-interface
2163 side-position-interface
2164 font-interface))))))
2166 (VoltaBracketSpanner
2172 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2173 (outside-staff-priority . 100)
2174 (Y-extent . ,ly:axis-group-interface::height)
2175 (X-extent . ,ly:axis-group-interface::width)
2176 (no-alignment . ,#t)
2177 (meta . ((class . Spanner)
2178 (interfaces . (side-position-interface
2179 axis-group-interface))))))
2188 (bound-details . ((right . ((attach-dir . ,CENTER)
2191 (left . ((attach-dir . ,CENTER)
2195 (stencil . ,ly:line-spanner::print)
2196 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2197 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2198 (meta . ((class . Spanner)
2199 (interfaces . (line-spanner-interface
2200 line-interface))))))
2204 (define (completize-grob-entry x)
2205 "Transplant assoc key into 'name entry of 'meta of X. Set interfaces for Item, Spanner etc.
2207 ;; (display (car x))
2209 (let* ((name-sym (car x))
2210 (grob-entry (cdr x))
2211 (meta-entry (cdr (assoc 'meta grob-entry)))
2212 (class (cdr (assoc 'class meta-entry)))
2214 (cdr (assoc 'interfaces meta-entry))))
2218 (set! ifaces-entry (cons 'item-interface ifaces-entry)))
2219 ((eq? 'Spanner class)
2220 (set! ifaces-entry (cons 'spanner-interface ifaces-entry)))
2221 ((eq? 'Paper_column class)
2222 (set! ifaces-entry (cons 'item-interface
2223 (cons 'paper-column-interface ifaces-entry))))
2224 ((eq? 'System class)
2225 (set! ifaces-entry (cons 'system-interface
2226 (cons 'spanner-interface ifaces-entry))))
2228 (ly:warning "Unknown class ~a" class)))
2230 (set! ifaces-entry (uniq-list (sort ifaces-entry symbol<?)))
2231 (set! ifaces-entry (cons 'grob-interface ifaces-entry))
2233 (set! meta-entry (assoc-set! meta-entry 'name name-sym))
2234 (set! meta-entry (assoc-set! meta-entry 'interfaces
2236 (set! grob-entry (assoc-set! grob-entry 'meta meta-entry))
2237 (cons name-sym grob-entry)))
2239 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
2241 ;; (display (map pair? all-grob-descriptions))
2243 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
2246 ;; (display (car x)) (newline)
2248 (set-object-property! (car x) 'translation-type? list?)
2249 (set-object-property! (car x) 'is-grob? #t))
2250 all-grob-descriptions)
2252 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))
2254 (define pure-print-callbacks
2256 fret-board::calc-stencil
2257 print-circled-text-callback
2260 ly:arpeggio::brew-chord-bracket
2265 ly:text-interface::print
2266 ly:script-interface::print))
2268 ;; ly:grob::stencil-extent is safe iff the print callback is safe too
2269 (define (pure-stencil-height grob start stop)
2270 (let ((sten (ly:grob-property-data grob 'stencil)))
2273 (memq sten pure-print-callbacks))
2274 (ly:grob::stencil-height grob)
2277 (define pure-conversions-alist
2279 (,ly:accidental-interface::height . ,ly:accidental-interface::pure-height)
2280 (,ly:arpeggio::height . ,ly:arpeggio::pure-height)
2281 (,ly:slur::outside-slur-callback . ,ly:slur::pure-outside-slur-callback)
2282 (,ly:stem::height . ,ly:stem::pure-height)
2283 (,ly:rest::height . ,ly:rest::pure-height)
2284 (,ly:grob::stencil-height . ,pure-stencil-height)
2285 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)
2286 (,ly:axis-group-interface::height . ,ly:axis-group-interface::pure-height)
2287 (,ly:hara-kiri-group-spanner::y-extent . ,ly:hara-kiri-group-spanner::pure-height)
2288 (,ly:slur::height . ,ly:slur::pure-height)
2289 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)))
2291 (define pure-functions
2293 parenthesize-elements
2294 ly:rest::y-offset-callback
2295 ly:staff-symbol-referencer::callback
2296 ly:staff-symbol::height))
2298 (define-public (pure-relevant? grob)
2299 (let ((extent-callback (ly:grob-property-data grob 'Y-extent)))
2302 (pair? extent-callback)
2303 (memq extent-callback pure-functions)
2305 (pair? (assq extent-callback pure-conversions-alist))
2308 (not (eq? extent-callback ly:grob::stencil-height))
2309 (memq (ly:grob-property-data grob 'stencil) pure-print-callbacks)
2310 (ly:stencil? (ly:grob-property-data grob 'stencil))
2314 (define-public (call-pure-function unpure args start end)
2315 (if (ly:simple-closure? unpure)
2316 (ly:eval-simple-closure (car args) unpure start end)
2317 (if (not (procedure? unpure))
2319 (if (memq unpure pure-functions)
2321 (let ((pure (assq unpure pure-conversions-alist)))
2325 (list (car args) start end)