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
858 (stencil . ,ly:key-signature-interface::print)
859 (glyph-name-alist . ,cancellation-glyph-name-alist)
861 (time-signature . (extra-space . 1.25))
862 (staff-bar . (extra-space . 0.6))
863 (key-signature . (extra-space . 0.5))
864 (right-edge . (extra-space . 0.5))
865 (first-note . (fixed-space . 2.5))))
866 (Y-offset . ,ly:staff-symbol-referencer::callback)
867 (break-align-symbol . key-cancellation)
868 (break-visibility . ,begin-of-line-invisible)
870 (meta . ((class . Item)
871 (interfaces . (key-cancellation-interface
872 key-signature-interface
874 break-aligned-interface))))))
878 (stencil . ,ly:key-signature-interface::print)
879 (avoid-slur . inside)
880 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
882 (time-signature . (extra-space . 1.15))
883 (staff-bar . (extra-space . 1.1))
884 (right-edge . (extra-space . 0.5))
885 (first-note . (fixed-space . 2.5))))
886 (Y-offset . ,ly:staff-symbol-referencer::callback)
887 (break-align-symbol . key-signature)
888 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
889 (break-visibility . ,begin-of-line-visible)
891 (meta . ((class . Item)
892 (interfaces . (key-signature-interface
894 break-aligned-interface))))))
899 (stencil . ,ly:tie::print)
900 (control-points . ,ly:semi-tie::calc-control-points)
901 (direction . ,ly:tie::calc-direction)
902 (details . ((ratio . 0.333)
903 (height-limit . 1.0)))
904 (head-direction . ,LEFT)
906 (meta . ((class . Item)
907 (interfaces . (semi-tie-interface))))))
909 (LaissezVibrerTieColumn
913 (head-direction . ,LEFT)
914 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
915 (meta . ((class . Item)
916 (interfaces . (semi-tie-column-interface))))))
920 (springs-and-rods . ,ly:ledger-line-spanner::set-spacing-rods)
921 (stencil . ,ly:ledger-line-spanner::print)
924 (minimum-length-fraction . 0.25)
925 (length-fraction . 0.25)
927 (meta . ((class . Spanner)
928 (interfaces . (ledger-line-spanner-interface))))))
932 (break-align-symbol . left-edge)
933 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
936 (break-visibility . ,center-invisible)
938 (custos . (extra-space . 0.0))
939 (ambitus . (extra-space . 2.0))
940 (time-signature . (extra-space . 1.0))
941 (staff-bar . (extra-space . 0.0))
942 (breathing-sign . (minimum-space . 0.0))
943 (clef . (extra-space . 0.8))
944 (first-note . (fixed-space . 2.0))
945 (right-edge . (extra-space . 0.0))
946 (key-signature . (extra-space . 0.0))
947 (key-cancellation . (extra-space . 0.0))
949 (meta . ((class . Item)
950 (interfaces . (break-aligned-interface))))))
954 ;; ugh. A ligature bracket is totally different from
959 (edge-height . (0.7 . 0.7))
960 (shorten-pair . (-0.2 . -0.2))
962 (positions . ,ly:tuplet-bracket::calc-positions)
963 (stencil . ,ly:tuplet-bracket::print)
964 (staff-padding . 0.25)
965 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
966 (control-points . ,ly:tuplet-bracket::calc-control-points)
967 (meta . ((class . Spanner)
968 (interfaces . (line-interface
969 tuplet-bracket-interface))))))
973 (stencil . ,ly:lyric-extender::print)
974 (thickness . 0.8) ; line-thickness
975 (minimum-length . 1.5)
977 (meta . ((class . Spanner)
978 (interfaces . (lyric-interface
979 lyric-extender-interface))))))
987 (minimum-length . 0.3)
988 (minimum-distance . 0.1)
990 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
991 (stencil . ,ly:lyric-hyphen::print)
993 (meta . ((class . Spanner)
994 (interfaces . (lyric-interface
996 lyric-hyphen-interface
997 spanner-interface))))))
1000 . ((minimum-distance . 0.45)
1001 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1005 (meta . ((class . Spanner)
1006 (interfaces . (spanner-interface
1007 lyric-hyphen-interface))))))
1011 (stencil . ,lyric-text::print)
1012 (text . ,(grob::calc-property-by-copy 'text))
1013 (X-offset . ,ly:self-alignment-interface::aligned-on-x-parent)
1014 (self-alignment-X . ,CENTER)
1016 (font-series . bold-narrow)
1018 (extra-spacing-width . (0.0 . 0.0))
1019 (meta . ((class . Item)
1020 (interfaces . (rhythmic-grob-interface
1021 lyric-syllable-interface
1022 self-alignment-interface
1024 font-interface))))))
1029 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1031 (stencil . ,ly:measure-grouping::print)
1037 (meta . ((class . Spanner)
1038 (interfaces . (side-position-interface
1039 measure-grouping-interface))))))
1043 (neutral-direction . ,DOWN)
1044 (meta . ((class . Item)
1045 (interfaces . (melody-spanner-interface))))))
1051 (stencil . ,ly:mensural-ligature::print)
1052 (meta . ((class . Spanner)
1053 (interfaces . (mensural-ligature-interface
1054 font-interface))))))
1058 (stencil . ,ly:text-interface::print)
1059 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1063 (extra-spacing-width . (+inf.0 . -inf.0))
1064 (outside-staff-priority . 1000)
1065 (meta . ((class . Item)
1066 (interfaces . (text-interface
1067 side-position-interface
1069 metronome-mark-interface))))))
1073 (stencil . ,ly:multi-measure-rest::print)
1074 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1075 (Y-offset . ,ly:staff-symbol-referencer::callback)
1076 (staff-position . 0)
1078 (thick-thickness . 6.6)
1079 (hair-thickness . 2.0)
1081 (meta . ((class . Spanner)
1082 (interfaces . (multi-measure-rest-interface
1083 multi-measure-interface
1086 staff-symbol-referencer-interface))))))
1088 (MultiMeasureRestNumber
1090 (bound-padding . 2.0)
1091 (springs-and-rods . ,ly:multi-measure-rest::set-text-rods)
1092 (stencil . ,ly:text-interface::print)
1093 (X-offset . ,(ly:make-simple-closure
1095 ,(ly:make-simple-closure
1096 (list ly:self-alignment-interface::x-aligned-on-self))
1097 ,(ly:make-simple-closure
1098 (list ly:self-alignment-interface::x-centered-on-y-parent)))))
1099 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1101 (self-alignment-X . ,CENTER)
1104 (staff-padding . 0.4)
1105 (font-encoding . fetaNumber)
1106 (meta . ((class . Spanner)
1107 (interfaces . (side-position-interface
1108 multi-measure-interface
1109 self-alignment-interface
1111 text-interface))))))
1113 (MultiMeasureRestText
1115 (stencil . ,ly:text-interface::print)
1116 (X-offset . ,(ly:make-simple-closure
1118 ,(ly:make-simple-closure
1119 (list ly:self-alignment-interface::x-centered-on-y-parent))
1120 ,(ly:make-simple-closure
1121 (list ly:self-alignment-interface::x-aligned-on-self)))))
1122 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1123 (self-alignment-X . ,CENTER)
1126 (staff-padding . 0.25)
1127 (outside-staff-priority . 450)
1128 (meta . ((class . Spanner)
1129 (interfaces . (side-position-interface
1130 multi-measure-interface
1131 self-alignment-interface
1133 text-interface))))))
1136 (NonMusicalPaperColumn
1138 (allow-loose-spacing . #t)
1140 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1141 (X-extent . ,ly:axis-group-interface::width)
1142 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1143 ;; (stencil . ,ly:paper-column::print)
1146 (line-break-permission . allow)
1147 (page-break-permission . allow)
1149 ;; debugging stuff: print column number.
1150 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1152 (meta . ((class . Paper_column)
1153 (interfaces . (paper-column-interface
1154 axis-group-interface
1155 separation-item-interface
1156 spaceable-grob-interface))))))
1161 (X-extent . ,ly:axis-group-interface::width)
1162 (Y-extent . ,ly:axis-group-interface::height)
1163 (prefer-dotted-right . #t)
1164 (positioning-done . ,ly:note-collision-interface::calc-positioning-done)
1165 (meta . ((class . Item)
1166 (interfaces . (note-collision-interface
1167 axis-group-interface))))))
1172 (X-extent . ,ly:axis-group-interface::width)
1173 (Y-extent . ,ly:axis-group-interface::height)
1174 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1175 (meta . ((class . Item)
1176 (interfaces . (axis-group-interface
1177 separation-item-interface
1178 note-column-interface))))))
1182 (stencil . ,ly:note-head::print)
1183 (duration-log . ,note-head::calc-duration-log)
1184 (stem-attachment . ,ly:note-head::calc-stem-attachment)
1185 (glyph-name . ,note-head::calc-glyph-name)
1186 (Y-offset . ,ly:staff-symbol-referencer::callback)
1187 (X-offset . ,ly:note-head::stem-x-shift)
1188 (meta . ((class . Item)
1189 (interfaces . (rhythmic-grob-interface
1190 rhythmic-head-interface
1194 staff-symbol-referencer-interface))))))
1198 (stem-spacing-correction . 0.5)
1199 (same-direction-correction . 0.25)
1200 (space-to-barline . #t)
1201 ;; Changed this from 0.75.
1202 ;; If you ever change this back, please document! --hwn
1203 (knee-spacing-correction . 1.0)
1204 (meta . ((class . Item)
1205 (interfaces . (spacing-interface
1206 note-spacing-interface))))))
1210 (stencil . ,ly:text-interface::print)
1211 (meta . ((class . Item)
1212 (interfaces . (note-name-interface
1214 font-interface))))))
1219 (self-alignment-X . ,CENTER)
1220 (break-visibility . ,begin-of-line-visible)
1221 (X-offset . ,(ly:make-simple-closure
1223 ,(ly:make-simple-closure
1224 (list ly:self-alignment-interface::x-aligned-on-self))
1225 ,(ly:make-simple-closure
1226 (list ly:self-alignment-interface::centered-on-x-parent)))))
1227 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1228 (stencil . ,ly:text-interface::print)
1229 (font-shape . italic)
1230 (staff-padding . 0.2)
1232 (meta . ((class . Item)
1233 (interfaces . (text-interface
1234 self-alignment-interface
1235 side-position-interface
1236 font-interface))))))
1240 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1241 (stencil . ,ly:ottava-bracket::print)
1242 (font-shape . italic)
1243 (shorten-pair . (0.0 . -0.6))
1244 (staff-padding . 1.0)
1246 (minimum-length . 1.0)
1247 (style . dashed-line)
1248 (dash-fraction . 0.3)
1249 (edge-height . (0 . 1.2))
1251 (outside-staff-priority . 400)
1252 (meta . ((class . Spanner)
1253 (interfaces . (ottava-bracket-interface
1254 horizontal-bracket-interface
1256 side-position-interface
1258 text-interface))))))
1264 (allow-loose-spacing . #t)
1265 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1266 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1267 ;; (stencil . ,ly:paper-column::print)
1268 (X-extent . ,ly:axis-group-interface::width)
1271 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1272 (meta . ((class . Paper_column)
1273 (interfaces . (paper-column-interface
1274 separation-item-interface
1275 axis-group-interface
1276 spaceable-grob-interface))))))
1279 . ((stencil . ,parentheses-item::print)
1280 (stencils . ,parentheses-item::calc-parenthesis-stencils)
1283 (meta . ((class . Item)
1284 (interfaces . (parentheses-interface font-interface))))))
1286 (HarmonicParenthesesItem
1287 . ((stencil . ,parentheses-item::print)
1289 (stencils . ,parentheses-item::calc-angled-bracket-stencils)
1290 (meta . ((class . Item)
1291 (interfaces . (parentheses-interface font-interface))))))
1294 . ((details . ,default-slur-details)
1295 (control-points . ,ly:slur::calc-control-points)
1296 (direction . ,ly:slur::calc-direction)
1297 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1298 (Y-extent . ,ly:slur::height)
1299 (stencil . ,ly:slur::print)
1301 (minimum-length . 1.5)
1302 (height-limit . 2.0)
1304 (cross-staff . ,ly:slur::calc-cross-staff)
1305 (meta . ((class . Spanner)
1306 (interfaces . (slur-interface))))))
1310 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1311 (stencil . ,ly:multi-measure-rest::percent)
1314 (font-encoding . fetaMusic)
1315 (meta . ((class . Spanner)
1316 (interfaces . (multi-measure-rest-interface
1318 percent-repeat-interface
1321 (PercentRepeatCounter
1323 (stencil . ,ly:text-interface::print)
1324 (X-offset . ,(ly:make-simple-closure
1326 ,(ly:make-simple-closure
1327 (list ly:self-alignment-interface::x-centered-on-y-parent))
1328 ,(ly:make-simple-closure
1329 (list ly:self-alignment-interface::x-aligned-on-self)))))
1330 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1331 (self-alignment-X . ,CENTER)
1334 (staff-padding . 0.25)
1336 (font-encoding . fetaNumber)
1337 (meta . ((class . Spanner)
1338 (interfaces . (side-position-interface
1339 self-alignment-interface
1340 percent-repeat-interface
1342 text-interface))))))
1344 ;; an example of a text spanner
1347 (stencil . ,ly:piano-pedal-bracket::print)
1349 (bound-padding . 1.0)
1351 (bracket-flare . (0.5 . 0.5))
1352 (edge-height . (1.0 . 1.0))
1353 (shorten-pair . (0.0 . 0.0))
1355 (meta . ((class . Spanner)
1356 (interfaces . (line-interface
1357 piano-pedal-interface
1358 piano-pedal-bracket-interface))))))
1363 (stencil . ,ly:text-interface::print)
1364 (X-offset . ,(ly:make-simple-closure
1366 ,(ly:make-simple-closure
1367 (list ly:break-alignable-interface::self-align-callback))
1368 ,(ly:make-simple-closure
1369 (list ly:self-alignment-interface::x-aligned-on-self)))))
1370 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1371 (extra-spacing-width . (+inf.0 . -inf.0))
1372 (self-alignment-X . ,CENTER)
1377 (break-visibility . ,end-of-line-invisible)
1378 (break-align-symbols . (staff-bar clef))
1380 (outside-staff-priority . 1500)
1381 (meta . ((class . Item)
1382 (interfaces . (text-interface
1383 side-position-interface
1384 break-alignable-interface
1387 self-alignment-interface))))))
1391 (stencil . ,ly:percent-repeat-item-interface::beat-slash)
1394 (meta . ((class . Item)
1395 (interfaces . (rhythmic-grob-interface
1396 percent-repeat-interface
1397 percent-repeat-item-interface))))))
1401 (stencil . ,ly:tie::print)
1402 (control-points . ,ly:semi-tie::calc-control-points)
1403 (direction . ,ly:tie::calc-direction)
1404 (details . ((ratio . 0.333)
1405 (height-limit . 1.0)))
1407 (head-direction . ,RIGHT)
1408 (meta . ((class . Item)
1409 (interfaces . (semi-tie-interface))))))
1415 (direction . ,ly:tie::calc-direction)
1416 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1418 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1419 (meta . ((class . Item)
1420 (interfaces . (semi-tie-column-interface))))))
1424 (stencil . ,ly:rest::print)
1425 (duration-log . ,stem::calc-duration-log)
1426 (X-extent . ,ly:rest::width)
1427 (Y-extent . ,ly:rest::height)
1428 (Y-offset . ,ly:rest::y-offset-callback)
1429 (minimum-distance . 0.25)
1430 (cross-staff . ,ly:rest::calc-cross-staff)
1431 (meta . ((class . Item)
1432 (interfaces . (font-interface
1433 rhythmic-head-interface
1434 rhythmic-grob-interface
1435 staff-symbol-referencer-interface
1436 rest-interface))))))
1440 (minimum-distance . 0.75)
1441 (positioning-done . ,ly:rest-collision::calc-positioning-done)
1442 (meta . ((class . Item)
1443 (interfaces . (rest-collision-interface))))))
1448 ;; don't set direction here: it breaks staccato.
1450 ;; padding set in script definitions.
1451 (staff-padding . 0.25)
1452 (X-offset . ,script-interface::calc-x-offset)
1453 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1456 (stencil . ,ly:script-interface::print)
1457 (direction . ,ly:script-interface::calc-direction)
1458 (positioning-done . ,ly:script-interface::calc-positioning-done)
1459 (font-encoding . fetaMusic)
1460 (cross-staff . ,ly:script-interface::calc-cross-staff)
1461 (meta . ((class . Item)
1462 (interfaces . (script-interface
1463 side-position-interface
1464 font-interface))))))
1468 (before-line-breaking . ,ly:script-column::before-line-breaking)
1469 (meta . ((class . Item)
1470 (interfaces . (script-column-interface))))))
1474 (before-line-breaking . ,ly:script-column::row-before-line-breaking)
1475 (meta . ((class . Item)
1476 (interfaces . (script-column-interface))))))
1480 (avoid-slur . inside)
1481 (X-extent . ,ly:axis-group-interface::width)
1482 (Y-extent . ,ly:axis-group-interface::height)
1483 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1484 (stencil . ,ly:separation-item::print)
1485 (meta . ((class . Item)
1487 separation-item-interface))))))
1490 . ((details . ,default-slur-details)
1491 (control-points . ,ly:slur::calc-control-points)
1492 (direction . ,ly:slur::calc-direction)
1493 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1494 (Y-extent . ,ly:slur::height)
1495 (stencil . ,ly:slur::print)
1497 (line-thickness . 0.8)
1498 (minimum-length . 1.5)
1499 (height-limit . 2.0)
1501 (avoid-slur . inside)
1502 (cross-staff . ,ly:slur::calc-cross-staff)
1503 (meta . ((class . Spanner)
1504 (interfaces . (slur-interface))))))
1508 (stencil . ,ly:text-interface::print)
1509 (direction . ,RIGHT)
1510 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1511 (extra-spacing-width . (+inf.0 . -inf.0))
1512 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
1513 (font-shape . italic)
1514 (self-alignment-X . ,CENTER)
1515 (meta . ((class . Item)
1516 (interfaces . (text-interface
1517 self-alignment-interface
1518 piano-pedal-script-interface
1519 font-interface))))))
1521 (SostenutoPedalLineSpanner
1524 (Y-extent . ,ly:axis-group-interface::height)
1525 (X-extent . ,ly:axis-group-interface::width)
1526 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1527 (outside-staff-priority . 1000)
1529 (staff-padding . 1.0)
1531 (minimum-space . 1.0)
1533 (meta . ((class . Spanner)
1534 (interfaces . (piano-pedal-interface
1535 axis-group-interface
1536 side-position-interface))))))
1540 (springs-and-rods . ,ly:spacing-spanner::set-springs)
1541 (common-shortest-duration . ,ly:spacing-spanner::calc-common-shortest-duration)
1542 (average-spacing-wishes . #t)
1543 (shortest-duration-space . 2.0)
1544 (spacing-increment . 1.2)
1546 (base-shortest-duration . ,(ly:make-moment 3 16))
1547 (meta . ((class . Spanner)
1549 spacing-options-interface
1550 spacing-spanner-interface))))))
1554 (break-align-symbol . staff-bar)
1555 (Y-extent . ,ly:axis-group-interface::height)
1559 (stencil . ,ly:span-bar::print)
1560 (bar-size . ,ly:span-bar::calc-bar-size)
1561 (bar-extent . ,ly:axis-group-interface::height)
1562 (X-extent . ,ly:span-bar::width)
1563 (glyph-name . ,ly:span-bar::calc-glyph-name)
1564 (before-line-breaking . ,ly:span-bar::before-line-breaking)
1565 (allow-span-bar . #t)
1570 ;; Ross. page 151 lists other values, we opt for a leaner look
1574 (hair-thickness . 1.6)
1575 (thick-thickness . 6.0)
1576 (meta . ((class . Item)
1577 (interfaces . (span-bar-interface
1579 bar-line-interface))))))
1583 (stencil . ,ly:text-interface::print)
1584 (font-series . bold)
1586 (X-offset . ,ly:side-position-interface::x-aligned-side)
1589 (meta . ((class . Item)
1590 (interfaces . (side-position-interface
1591 stanza-number-interface
1593 font-interface))))))
1598 (stem-spacing-correction . 0.4)
1599 (meta . ((class . Item)
1600 (interfaces . (spacing-interface
1601 staff-spacing-interface))))))
1605 (Y-extent . ,ly:staff-symbol::height)
1606 (stencil . ,ly:staff-symbol::print)
1608 (ledger-line-thickness . (1.0 . 0.1))
1610 (meta . ((class . Spanner)
1611 (interfaces . (staff-symbol-interface))))))
1615 (direction . ,ly:stem::calc-direction)
1616 (duration-log . ,stem::calc-duration-log)
1617 (default-direction . ,ly:stem::calc-default-direction)
1618 (stem-end-position . ,ly:stem::calc-stem-end-position)
1620 (neutral-direction . ,DOWN)
1621 (stem-info . ,ly:stem::calc-stem-info)
1622 (positioning-done . ,ly:stem::calc-positioning-done)
1623 (stencil . ,ly:stem::print)
1624 (X-extent . ,ly:stem::width)
1625 (Y-extent . ,ly:stem::height)
1626 (length . ,ly:stem::calc-length)
1628 (cross-staff . ,ly:stem::calc-cross-staff)
1629 (flag . ,ly:stem::calc-flag)
1632 ;; 3.5 (or 3 measured from note head) is standard length
1633 ;; 32nd, 64th flagged stems should be longer
1634 (lengths . (3.5 3.5 3.5 4.5 5.0))
1636 ;; FIXME. 3.5 yields too long beams (according to Ross and
1637 ;; looking at Baerenreiter examples) for a number of common
1638 ;; boundary cases. Subtracting half a beam thickness fixes
1639 ;; this, but the bug may well be somewhere else.
1641 ;; FIXME this should come from 'lengths
1642 (beamed-lengths . (3.26 3.5 3.6))
1644 ;; The 'normal' minima
1645 (beamed-minimum-free-lengths . (1.83 1.5 1.25))
1646 ;(beamed-minimum-free-lengths . (2.0 1.83 1.25))
1648 ;; The 'extreme case' minima
1649 (beamed-extreme-minimum-free-lengths . (2.0 1.25))
1651 ;; Stems in unnatural (forced) direction should be shortened by
1652 ;; one staff space, according to [Roush & Gourlay].
1653 ;; Flagged stems we shorten only half a staff space.
1654 (stem-shorten . (1.0 0.5))
1658 ;; We use the normal minima as minimum for the ideal lengths,
1659 ;; and the extreme minima as abolute minimum length.
1661 (X-offset . ,ly:stem::offset-callback)
1662 (Y-offset . ,ly:staff-symbol-referencer::callback)
1663 (meta . ((class . Item)
1664 (interfaces . (stem-interface
1665 font-interface))))))
1669 (Y-extent . ,ly:stem-tremolo::height)
1670 (X-extent . ,ly:stem-tremolo::width)
1671 (stencil . ,ly:stem-tremolo::print)
1672 (slope . ,ly:stem-tremolo::calc-slope)
1673 (beam-width . ,ly:stem-tremolo::calc-width) ; staff-space
1674 (style . ,ly:stem-tremolo::calc-style)
1675 (beam-thickness . 0.48) ; staff-space
1676 (meta . ((class . Item)
1677 (interfaces . (stem-tremolo-interface))))))
1681 (stencil . ,print-circled-text-callback)
1682 (text . ,string-number::calc-text)
1684 (staff-padding . 0.5)
1685 (self-alignment-X . ,CENTER)
1686 (self-alignment-Y . ,CENTER)
1687 (script-priority . 100)
1688 (avoid-slur . around)
1689 (font-encoding . fetaNumber)
1690 (font-size . -5) ; don't overlap when next to heads.
1691 (meta . ((class . Item)
1692 (interfaces . (string-number-interface
1694 text-script-interface
1696 side-position-interface
1697 self-alignment-interface))))))
1701 (stencil . ,ly:text-interface::print)
1702 (text . ,stroke-finger::calc-text)
1703 (digit-names . #("p" "i" "m" "a" "x"))
1705 (staff-padding . 0.5)
1706 (self-alignment-X . ,CENTER)
1707 (self-alignment-Y . ,CENTER)
1708 (script-priority . 100)
1709 (font-shape . italic)
1710 (font-size . -4) ; don't overlap when next to heads.
1711 (meta . ((class . Item)
1712 (interfaces . (stroke-finger-interface
1714 text-script-interface
1716 side-position-interface
1717 self-alignment-interface))))))
1721 (extra-spacing-width . (+inf.0 . -inf.0))
1722 (stencil . ,ly:sustain-pedal::print)
1723 (self-alignment-X . ,CENTER)
1724 (direction . ,RIGHT)
1725 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
1726 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1727 (meta . ((class . Item)
1728 (interfaces . (piano-pedal-interface
1730 self-alignment-interface
1731 piano-pedal-script-interface
1732 font-interface))))))
1734 (SustainPedalLineSpanner
1737 (Y-extent . ,ly:axis-group-interface::height)
1738 (X-extent . ,ly:axis-group-interface::width)
1739 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1740 (outside-staff-priority . 1000)
1743 (staff-padding . 1.2)
1744 (minimum-space . 1.0)
1746 (meta . ((class . Spanner)
1747 (interfaces . (piano-pedal-interface
1748 axis-group-interface
1749 side-position-interface))))))
1754 (X-extent . ,ly:axis-group-interface::width)
1755 (Y-extent . ,ly:axis-group-interface::height)
1756 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
1757 (max-stretch . ,ly:axis-group-interface::calc-max-stretch)
1758 (meta . ((class . System)
1759 (interfaces . (system-interface
1760 axis-group-interface))))))
1766 (stencil . ,ly:system-start-delimiter::print)
1767 (collapse-height . 5.0)
1768 (X-offset . ,ly:side-position-interface::x-aligned-side)
1770 (font-encoding . fetaBraces)
1772 (meta . ((class . Spanner)
1773 (interfaces . (system-start-delimiter-interface
1774 side-position-interface
1775 font-interface))))))
1780 (X-offset . ,ly:side-position-interface::x-aligned-side)
1782 (stencil . ,ly:system-start-delimiter::print)
1783 (style . line-bracket)
1785 (meta . ((class . Spanner)
1786 (interfaces . (font-interface
1787 side-position-interface
1788 system-start-delimiter-interface))))))
1794 (X-offset . ,ly:side-position-interface::x-aligned-side)
1796 (stencil . ,ly:system-start-delimiter::print)
1798 (collapse-height . 5.0)
1800 (meta . ((class . Spanner)
1801 (interfaces . (font-interface
1802 side-position-interface
1803 system-start-delimiter-interface))))))
1810 (padding . -0.1) ;; bar must cover rounded ending of staff line.
1811 (X-offset . ,ly:side-position-interface::x-aligned-side)
1814 (collapse-height . 5.0)
1816 (stencil . ,ly:system-start-delimiter::print)
1817 (meta . ((class . Spanner)
1818 (interfaces . (side-position-interface
1819 system-start-delimiter-interface))))))
1824 (stencil . ,ly:text-interface::print)
1825 (duration-log . ,note-head::calc-duration-log)
1826 (Y-offset . ,ly:staff-symbol-referencer::callback)
1827 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1828 (direction . ,CENTER)
1830 (stem-attachment . (0.0 . 1.35))
1831 (font-series . bold)
1832 (meta . ((class . Item)
1834 . (rhythmic-head-interface
1835 font-interface rhythmic-grob-interface
1837 staff-symbol-referencer-interface
1838 text-interface))))))
1842 (extra-spacing-width . (+inf.0 . -inf.0))
1843 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1844 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1848 ;; sync with Fingering ?
1850 (staff-padding . 0.5)
1852 (stencil . ,ly:text-interface::print)
1853 (direction . ,ly:script-interface::calc-direction)
1854 (positioning-done . ,ly:script-interface::calc-positioning-done)
1856 (outside-staff-priority . 450)
1857 (avoid-slur . around)
1858 (slur-padding . 0.5)
1859 (script-priority . 200)
1860 (cross-staff . ,ly:script-interface::calc-cross-staff)
1861 ;; todo: add X self alignment?
1862 (meta . ((class . Item)
1863 (interfaces . (text-script-interface
1865 instrument-specific-markup-interface
1866 side-position-interface
1867 font-interface))))))
1871 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1872 (font-shape . italic)
1873 (style . dashed-line)
1874 (staff-padding . 0.8)
1875 (dash-fraction . 0.2)
1879 (outside-staff-priority . 350)
1881 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
1882 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
1883 (bound-details . ((left . ((Y . 0)
1885 (attach-dir . ,LEFT)
1891 (stencil . ,ly:line-spanner::print)
1893 (meta . ((class . Spanner)
1894 (interfaces . (line-spanner-interface
1895 side-position-interface
1896 font-interface))))))
1900 (control-points . ,ly:tie::calc-control-points)
1901 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1902 (avoid-slur . inside)
1903 (direction . ,ly:tie::calc-direction)
1904 (neutral-direction . ,UP)
1905 (stencil . ,ly:tie::print)
1908 ;; for a full list, see tie-details.cc
1910 (center-staff-line-clearance . 0.6)
1911 (tip-staff-line-clearance . 0.45)
1912 (note-head-gap . 0.2)
1914 (height-limit . 1.0)
1915 (horizontal-distance-penalty-factor . 10)
1916 (same-dir-as-stem-penalty . 8)
1917 (min-length-penalty-factor . 26)
1918 (tie-tie-collision-distance . 0.45)
1919 (tie-tie-collision-penalty . 25.0)
1920 (intra-space-threshold . 1.25)
1921 (outer-tie-vertical-distance-symmetry-penalty-factor . 10)
1922 (outer-tie-length-symmetry-penalty-factor . 10)
1923 (vertical-distance-penalty-factor . 7)
1924 (outer-tie-vertical-gap . 0.25)
1925 (multi-tie-region-size . 3)
1926 (single-tie-region-size . 4)
1927 (between-length-limit . 1.0)))
1930 (line-thickness . 0.8)
1931 (meta . ((class . Spanner)
1932 (interfaces . (tie-interface))))))
1936 (positioning-done . ,ly:tie-column::calc-positioning-done)
1937 (before-line-breaking . ,ly:tie-column::before-line-breaking)
1940 (meta . ((class . Spanner)
1941 (interfaces . (tie-column-interface))))))
1945 (stencil . ,ly:time-signature::print)
1946 (break-align-symbol . time-signature)
1948 . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1949 (break-visibility . ,all-visible)
1950 (avoid-slur . inside)
1951 (extra-spacing-height . (-1.0 . 1.0))
1953 (first-note . (fixed-space . 2.0))
1954 (right-edge . (extra-space . 0.5))
1955 (staff-bar . (minimum-space . 2.0))))
1958 (meta . ((class . Item)
1959 (interfaces . (time-signature-interface
1960 break-aligned-interface
1961 font-interface))))))
1965 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
1966 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
1968 (bound-details . ((left . ((text . ,(make-translate-scaled-markup
1970 (make-musicglyph-markup "scripts.trill")))
1972 (stencil-offset . (-0.5 . 0))
1974 (attach-dir . ,CENTER)
1975 ;; this isn't CENTER because the trill glyph's origin
1976 ;; is not centered in its extent; to have the trill
1977 ;; spanner aligned the same as a trill, we need a slight offset
1978 (anchor-alignment . 0.15)
1980 (left-broken . ((end-on-note . #t)))
1984 (stencil . ,ly:line-spanner::print)
1987 (staff-padding . 1.0)
1990 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1992 (outside-staff-priority . 50)
1993 (meta . ((class . Spanner)
1994 (interfaces . (line-spanner-interface
1996 trill-spanner-interface
1997 side-position-interface
1998 font-interface))))))
2000 (TrillPitchAccidental
2001 . ((X-offset . ,ly:side-position-interface::x-aligned-side)
2006 (stencil . ,ly:accidental-interface::print)
2007 (Y-extent . ,ly:accidental-interface::height)
2008 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
2009 (meta . ((class . Item)
2010 (interfaces . (trill-pitch-accidental-interface
2011 accidental-interface
2012 side-position-interface
2013 font-interface))))))
2016 . ((X-offset . ,ly:side-position-interface::x-aligned-side)
2019 (stencil . ,parenthesize-elements)
2020 (stencils . ,parentheses-item::calc-parenthesis-stencils)
2021 (direction . ,RIGHT)
2024 (meta . ((class . Item)
2025 (interfaces . (side-position-interface
2026 parentheses-interface
2029 axis-group-interface))))))
2033 (stencil . ,ly:note-head::print)
2035 (Y-offset . ,ly:staff-symbol-referencer::callback)
2037 (meta . ((class . Item)
2038 (interfaces . (rhythmic-head-interface
2040 pitched-trill-interface
2042 staff-symbol-referencer-interface))))))
2048 (edge-height . (0.7 . 0.7))
2049 (shorten-pair . (-0.2 . -0.2))
2050 (staff-padding . 0.25)
2051 (full-length-to-extent . #t)
2052 (direction . ,ly:tuplet-bracket::calc-direction)
2053 (positions . ,ly:tuplet-bracket::calc-positions)
2054 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
2055 (control-points . ,ly:tuplet-bracket::calc-control-points)
2056 (stencil . ,ly:tuplet-bracket::print)
2057 (cross-staff . ,ly:tuplet-bracket::calc-cross-staff)
2059 (meta . ((class . Spanner)
2060 (interfaces . (line-interface
2061 tuplet-bracket-interface))))))
2065 (stencil . ,ly:tuplet-number::print)
2066 (text . ,tuplet-number::calc-denominator-text)
2067 (font-shape . italic)
2069 (avoid-slur . inside)
2070 (cross-staff . ,ly:tuplet-number::calc-cross-staff)
2071 (meta . ((class . Spanner)
2072 (interfaces . (text-interface tuplet-number-interface
2073 font-interface))))))
2078 (stencil . ,ly:text-interface::print)
2079 (font-shape . italic)
2080 (extra-spacing-width . (+inf.0 . -inf.0))
2081 (self-alignment-X . ,CENTER)
2082 (direction . ,RIGHT)
2083 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
2084 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2085 (meta . ((class . Item)
2086 (interfaces . (text-interface
2087 piano-pedal-script-interface
2088 self-alignment-interface
2089 font-interface))))))
2091 (UnaCordaPedalLineSpanner
2094 (Y-extent . ,ly:axis-group-interface::height)
2095 (X-extent . ,ly:axis-group-interface::width)
2096 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2097 (outside-staff-priority . 1000)
2100 (staff-padding . 1.2)
2101 (minimum-space . 1.0)
2103 (meta . ((class . Spanner)
2104 (interfaces . (piano-pedal-interface
2105 axis-group-interface
2106 side-position-interface))))))
2113 (stencil . ,ly:vaticana-ligature::print)
2114 (meta . ((class . Spanner)
2115 (interfaces . (vaticana-ligature-interface
2116 font-interface))))))
2121 (positioning-done . ,ly:align-interface::calc-positioning-done)
2122 (after-line-breaking . ,ly:align-interface::stretch-after-break)
2123 (Y-extent . ,ly:axis-group-interface::height)
2124 (X-extent . ,ly:axis-group-interface::width)
2127 (vertical-skylines . ,ly:axis-group-interface::combine-skylines)
2129 (meta . ((class . Spanner)
2130 (object-callbacks . ((Y-common . ,ly:axis-group-interface::calc-y-common)))
2131 (interfaces . (align-interface
2132 axis-group-interface))))))
2137 (Y-offset . ,ly:hara-kiri-group-spanner::force-hara-kiri-callback)
2138 (Y-extent . ,ly:hara-kiri-group-spanner::y-extent)
2139 (X-extent . ,ly:axis-group-interface::width)
2140 (vertical-skylines . ,ly:hara-kiri-group-spanner::calc-skylines)
2141 (max-stretch . ,ly:axis-group-interface::calc-max-stretch)
2142 (stencil . ,ly:axis-group-interface::print)
2143 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2144 (meta . ((class . Spanner)
2145 (object-callbacks . ((X-common . ,ly:axis-group-interface::calc-x-common)))
2146 (interfaces . (axis-group-interface
2147 hara-kiri-group-spanner-interface
2148 vertically-spaceable-interface))))))
2152 (stencil . ,ly:volta-bracket-interface::print)
2153 (font-encoding . fetaNumber)
2154 (thickness . 1.6) ;; line-thickness
2155 (edge-height . (2.0 . 2.0)) ;; staff-space;
2159 (meta . ((class . Spanner)
2160 (interfaces . (volta-bracket-interface
2161 horizontal-bracket-interface
2164 side-position-interface
2165 font-interface))))))
2167 (VoltaBracketSpanner
2173 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2174 (outside-staff-priority . 100)
2175 (Y-extent . ,ly:axis-group-interface::height)
2176 (X-extent . ,ly:axis-group-interface::width)
2177 (no-alignment . ,#t)
2178 (meta . ((class . Spanner)
2179 (interfaces . (side-position-interface
2180 axis-group-interface))))))
2189 (bound-details . ((right . ((attach-dir . ,CENTER)
2192 (left . ((attach-dir . ,CENTER)
2196 (stencil . ,ly:line-spanner::print)
2197 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2198 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2199 (meta . ((class . Spanner)
2200 (interfaces . (line-spanner-interface
2201 line-interface))))))
2205 (define (completize-grob-entry x)
2206 "Transplant assoc key into 'name entry of 'meta of X. Set interfaces for Item, Spanner etc.
2208 ;; (display (car x))
2210 (let* ((name-sym (car x))
2211 (grob-entry (cdr x))
2212 (meta-entry (cdr (assoc 'meta grob-entry)))
2213 (class (cdr (assoc 'class meta-entry)))
2215 (cdr (assoc 'interfaces meta-entry))))
2219 (set! ifaces-entry (cons 'item-interface ifaces-entry)))
2220 ((eq? 'Spanner class)
2221 (set! ifaces-entry (cons 'spanner-interface ifaces-entry)))
2222 ((eq? 'Paper_column class)
2223 (set! ifaces-entry (cons 'item-interface
2224 (cons 'paper-column-interface ifaces-entry))))
2225 ((eq? 'System class)
2226 (set! ifaces-entry (cons 'system-interface
2227 (cons 'spanner-interface ifaces-entry))))
2229 (ly:warning "Unknown class ~a" class)))
2231 (set! ifaces-entry (uniq-list (sort ifaces-entry symbol<?)))
2232 (set! ifaces-entry (cons 'grob-interface ifaces-entry))
2234 (set! meta-entry (assoc-set! meta-entry 'name name-sym))
2235 (set! meta-entry (assoc-set! meta-entry 'interfaces
2237 (set! grob-entry (assoc-set! grob-entry 'meta meta-entry))
2238 (cons name-sym grob-entry)))
2240 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
2242 ;; (display (map pair? all-grob-descriptions))
2244 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
2247 ;; (display (car x)) (newline)
2249 (set-object-property! (car x) 'translation-type? list?)
2250 (set-object-property! (car x) 'is-grob? #t))
2251 all-grob-descriptions)
2253 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))
2255 (define pure-print-callbacks
2257 fret-board::calc-stencil
2258 print-circled-text-callback
2261 ly:arpeggio::brew-chord-bracket
2266 ly:text-interface::print
2267 ly:script-interface::print))
2269 ;; ly:grob::stencil-extent is safe iff the print callback is safe too
2270 (define (pure-stencil-height grob start stop)
2271 (let ((sten (ly:grob-property-data grob 'stencil)))
2274 (memq sten pure-print-callbacks))
2275 (ly:grob::stencil-height grob)
2278 (define pure-conversions-alist
2280 (,ly:accidental-interface::height . ,ly:accidental-interface::pure-height)
2281 (,ly:arpeggio::height . ,ly:arpeggio::pure-height)
2282 (,ly:slur::outside-slur-callback . ,ly:slur::pure-outside-slur-callback)
2283 (,ly:stem::height . ,ly:stem::pure-height)
2284 (,ly:rest::height . ,ly:rest::pure-height)
2285 (,ly:grob::stencil-height . ,pure-stencil-height)
2286 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)
2287 (,ly:axis-group-interface::height . ,ly:axis-group-interface::pure-height)
2288 (,ly:hara-kiri-group-spanner::y-extent . ,ly:hara-kiri-group-spanner::pure-height)
2289 (,ly:slur::height . ,ly:slur::pure-height)
2290 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)))
2292 (define pure-functions
2294 parenthesize-elements
2295 ly:rest::y-offset-callback
2296 ly:staff-symbol-referencer::callback
2297 ly:staff-symbol::height))
2299 (define-public (pure-relevant? grob)
2300 (let ((extent-callback (ly:grob-property-data grob 'Y-extent)))
2303 (pair? extent-callback)
2304 (memq extent-callback pure-functions)
2306 (pair? (assq extent-callback pure-conversions-alist))
2309 (not (eq? extent-callback ly:grob::stencil-height))
2310 (memq (ly:grob-property-data grob 'stencil) pure-print-callbacks)
2311 (ly:stencil? (ly:grob-property-data grob 'stencil))
2315 (define-public (call-pure-function unpure args start end)
2316 (if (ly:simple-closure? unpure)
2317 (ly:eval-simple-closure (car args) unpure start end)
2318 (if (not (procedure? unpure))
2320 (if (memq unpure pure-functions)
2322 (let ((pure (assq unpure pure-conversions-alist)))
2326 (list (car args) start end)