1 ;;;; define-grobs.scm --
3 ;;;; source file of the GNU LilyPond music typesetter
5 ;;;; (c) 1998--2009 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 (define-public all-grob-descriptions
20 (alteration . ,accidental-interface::calc-alteration)
22 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
23 (stencil . ,ly:accidental-interface::print)
24 (X-extent . ,ly:accidental-interface::width)
25 (Y-extent . ,ly:accidental-interface::height)
26 (meta . ((class . Item)
27 (interfaces . (accidental-interface
32 (alteration . ,accidental-interface::calc-alteration)
34 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
36 (stencil . ,ly:accidental-interface::print)
37 (Y-extent . ,ly:accidental-interface::height)
38 (meta . ((class . Item)
39 (interfaces . (accidental-interface
46 (positioning-done . ,ly:accidental-placement::calc-positioning-done)
48 ;; this is quite small, but it is very ugly to have
49 ;; accs closer to the previous note than to the next one.
50 (right-padding . 0.15)
52 ;; for horizontally stacked scripts.
53 (script-priority . -100)
55 (X-extent . ,ly:axis-group-interface::width)
56 (meta . ((class . Item)
57 (interfaces . (accidental-placement-interface))))))
61 (alteration . ,accidental-interface::calc-alteration)
64 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
65 (outside-staff-priority . 0)
67 (self-alignment-X . ,CENTER)
69 (staff-padding . 0.25)
70 (stencil . ,ly:accidental-interface::print)
71 (X-extent . ,ly:accidental-interface::width)
72 (X-offset . ,(ly:make-simple-closure
74 ,(ly:make-simple-closure
75 (list ly:self-alignment-interface::centered-on-x-parent))
76 ,(ly:make-simple-closure
77 (list ly:self-alignment-interface::x-aligned-on-self)))))
78 (Y-extent . ,ly:accidental-interface::height)
79 (Y-offset . ,ly:side-position-interface::y-aligned-side)
80 (meta . ((class . Item)
81 (interfaces . (accidental-interface
82 accidental-suggestion-interface
85 self-alignment-interface
86 side-position-interface))))))
91 (break-align-symbol . ambitus)
92 (break-visibility . ,begin-of-line-visible)
95 (clef . (extra-space . 0.5))
96 (key-signature . (extra-space . 0.0))
97 (staff-bar . (extra-space . 0.0))
98 (time-signature . (extra-space . 0.0))
99 (first-note . (fixed-space . 0.0))))
100 (X-extent . ,ly:axis-group-interface::width)
101 (Y-extent . ,ly:axis-group-interface::height)
102 (meta . ((class . Item)
103 (interfaces . (ambitus-interface
105 break-aligned-interface))))))
110 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
113 (stencil . ,ly:accidental-interface::print)
114 (X-offset . ,ly:side-position-interface::x-aligned-side)
115 (Y-extent . ,ly:accidental-interface::height)
116 (meta . ((class . Item)
117 (interfaces . (accidental-interface
118 break-aligned-interface
120 side-position-interface))))))
125 (stencil . ,ambitus::print)
127 (X-offset . ,ly:self-alignment-interface::centered-on-x-parent)
128 (meta . ((class . Item)
129 (interfaces . (ambitus-interface
135 (glyph-name . ,note-head::calc-glyph-name)
136 (stencil . ,ly:note-head::print)
137 (Y-offset . ,ly:staff-symbol-referencer::callback)
138 (meta . ((class . Item)
139 (interfaces . (ambitus-interface
143 rhythmic-head-interface
144 staff-symbol-referencer-interface))))))
150 (positions . ,ly:arpeggio::calc-positions)
151 (script-priority . 0)
153 (staff-position . 0.0)
154 (stencil . ,ly:arpeggio::print)
155 (X-extent . ,ly:arpeggio::width)
156 (X-offset . ,ly:side-position-interface::x-aligned-side)
157 (Y-extent . ,ly:arpeggio::height)
158 (Y-offset . ,ly:staff-symbol-referencer::callback)
159 (meta . ((class . Item)
160 (interfaces . (arpeggio-interface
162 side-position-interface
163 staff-symbol-referencer-interface))))))
167 (stencil . ,ly:balloon-interface::print)
168 (text . ,(grob::calc-property-by-copy 'text))
169 (X-offset . ,(grob::calc-property-by-copy 'X-offset))
170 (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
171 (meta . ((class . Item)
172 (interfaces . (balloon-interface
178 (allow-span-bar . #t)
179 (bar-extent . ,ly:bar-line::calc-bar-extent)
180 (bar-size . ,ly:bar-line::calc-bar-size)
181 (break-align-anchor . ,ly:bar-line::calc-anchor)
182 (break-align-symbol . staff-bar)
183 (break-visibility . ,bar-line::calc-break-visibility)
186 (glyph-name . ,bar-line::calc-glyph-name)
189 ;; Ross. page 151 lists other values, we opt for a leaner look
192 ;; kern should scale with line-thickness too.
195 (hair-thickness . 1.9)
196 (thick-thickness . 6.0)
201 (time-signature . (extra-space . 0.75))
202 (custos . (minimum-space . 2.0))
203 (clef . (minimum-space . 1.0))
204 (key-signature . (extra-space . 1.0))
205 (key-cancellation . (extra-space . 1.0))
206 (first-note . (fixed-space . 1.3))
207 (next-note . (semi-fixed-space . 0.9))
208 (right-edge . (extra-space . 0.0))))
209 (stencil . ,ly:bar-line::print)
210 (meta . ((class . Item)
211 (interfaces . (bar-line-interface
212 break-aligned-interface
217 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
218 ;; want the bar number before the clef at line start.
219 (break-align-symbols . (left-edge staff-bar))
221 (break-visibility . ,begin-of-line-visible)
223 (font-family . roman)
226 (outside-staff-priority . 100)
228 (self-alignment-X . ,RIGHT)
230 (stencil . ,ly:text-interface::print)
231 (X-offset . ,(ly:make-simple-closure
233 ,(ly:make-simple-closure
234 (list ly:break-alignable-interface::self-align-callback))
235 ,(ly:make-simple-closure
236 (list ly:self-alignment-interface::x-aligned-on-self)))))
237 (Y-offset . ,ly:side-position-interface::y-aligned-side)
240 (interfaces . (break-alignable-interface
242 self-alignment-interface
243 side-position-interface
248 (stencil . ,ly:text-interface::print)
249 (meta . ((class . Item)
250 (interfaces . (bass-figure-interface
252 rhythmic-grob-interface
259 (positioning-done . ,ly:align-interface::align-to-minimum-distances)
260 (stacking-dir . ,DOWN)
261 (Y-extent . ,ly:axis-group-interface::height)
262 (meta . ((class . Spanner)
263 (interfaces . (align-interface
265 bass-figure-alignment-interface))))))
267 (BassFigureAlignmentPositioning
273 (staff-padding . 1.0)
274 (Y-extent . ,ly:axis-group-interface::height)
275 (Y-offset . ,ly:side-position-interface::y-aligned-side)
276 (meta . ((class . Spanner)
277 (interfaces . (axis-group-interface
278 side-position-interface))))))
282 (edge-height . (0.2 . 0.2))
283 (stencil . ,ly:enclosing-bracket::print)
284 (X-extent . ,ly:enclosing-bracket::width)
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))))))
297 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
299 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
300 (Y-extent . ,ly:axis-group-interface::height)
301 (meta . ((class . Spanner)
302 (interfaces . (axis-group-interface))))))
307 ;; todo: clean this up a bit: the list is getting
310 (auto-knee-gap . 5.5)
311 (beam-thickness . 0.48) ; in staff-space
313 ;; We have some unreferenced problems here.
315 ;; If we shorten beamed stems less than normal stems (1 staff-space),
316 ;; or high order less than 8th beams, patterns like
317 ;; c''4 [c''8 c''] c''4 [c''16 c]
318 ;; are ugly (different stem lengths).
320 ;; But if we shorten 16th beams as much as 8th beams, a single
321 ;; forced 16th beam looks *very* short.
323 ;; We choose to shorten 8th beams the same as single stems,
324 ;; and high order beams less than 8th beams, so that all
325 ;; isolated shortened beams look nice and a bit shortened,
326 ;; sadly possibly breaking patterns with high order beams.
327 (beamed-stem-shorten . (1.0 0.5 0.25))
329 (beaming . ,ly:beam::calc-beaming)
331 (concaveness . ,ly:beam::calc-concaveness)
332 (cross-staff . ,ly:beam::calc-cross-staff)
336 (secondary-beam-demerit . 10)
337 (stem-length-demerit-factor . 5)
340 (stem-length-limit-penalty . 5000)
341 (damping-direction-penalty . 800)
342 (hint-direction-penalty . 20)
343 (musical-direction-factor . 400)
344 (ideal-slope-factor . 10)
345 (round-to-zero-slope . 0.02)))
346 (direction . ,ly:beam::calc-direction)
348 ;; only for debugging.
349 (font-family . roman)
352 (neutral-direction . ,DOWN)
353 (positions . ,(ly:make-simple-closure
354 (ly:make-simple-closure
355 (list chain-grob-member-functions
357 ly:beam::calc-least-squares-positions
358 ly:beam::slope-damping
359 ly:beam::shift-region-to-valid
363 ;; this is a hack to set stem lengths, if positions is set.
364 (quantized-positions . ,ly:beam::set-stem-lengths)
366 (shorten . ,ly:beam::calc-stem-shorten)
367 (stencil . ,ly:beam::print)
369 (meta . ((class . Spanner)
370 (object-callbacks . ((normal-stems . ,ly:beam::calc-normal-stems)))
371 (interfaces . (beam-interface
373 staff-symbol-referencer-interface
374 unbreakable-spanner-interface))))))
378 (minimum-length . 0.5)
379 (stencil . ,bend::print)
381 (meta . ((class . Spanner)
382 (interfaces . (bend-after-interface
383 spanner-interface))))))
388 (break-align-anchor . ,ly:break-aligned-interface::calc-average-anchor)
389 (break-visibility . ,ly:break-aligned-interface::calc-break-visibility)
390 (X-extent . ,ly:axis-group-interface::width)
391 (meta . ((class . Item)
392 (interfaces . (axis-group-interface
393 break-aligned-interface))))))
398 (break-align-orders . ;; end of line
434 (positioning-done . ,ly:break-alignment-interface::calc-positioning-done)
436 (X-extent . ,ly:axis-group-interface::width)
437 (meta . ((class . Item)
438 (interfaces . (axis-group-interface
439 break-alignment-interface))))))
443 (break-align-symbol . breathing-sign)
444 (break-visibility . ,begin-of-line-invisible)
447 (ambitus . (extra-space . 2.0))
448 (custos . (minimum-space . 1.0))
449 (key-signature . (minimum-space . 1.5))
450 (time-signature . (minimum-space . 1.5))
451 (staff-bar . (minimum-space . 1.5))
452 (clef . (minimum-space . 2.0))
453 (first-note . (fixed-space . 1.0)) ;huh?
454 (right-edge . (extra-space . 0.1))))
455 (stencil . ,ly:text-interface::print)
456 (text . ,(make-musicglyph-markup "scripts.rcomma"))
457 (Y-offset . ,ly:breathing-sign::offset-callback)
458 (meta . ((class . Item)
459 (interfaces . (break-aligned-interface
460 breathing-sign-interface
466 (after-line-breaking . ,ly:chord-name::after-line-breaking)
469 (stencil . ,ly:text-interface::print)
471 (meta . ((class . Item)
472 (interfaces . (chord-name-interface
474 rhythmic-grob-interface
479 (avoid-slur . inside)
480 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
481 (break-align-symbol . clef)
482 (break-visibility . ,begin-of-line-visible)
483 (glyph-name . ,ly:clef::calc-glyph-name)
485 (space-alist . ((ambitus . (extra-space . 2.0))
486 (staff-bar . (extra-space . 0.7))
487 (key-cancellation . (minimum-space . 3.5))
488 (key-signature . (minimum-space . 3.5))
489 (time-signature . (minimum-space . 4.2))
490 (first-note . (minimum-fixed-space . 5.0))
491 (next-note . (extra-space . 0.5))
492 (right-edge . (extra-space . 0.5))))
493 (stencil . ,ly:clef::print)
494 (Y-offset . ,ly:staff-symbol-referencer::callback)
495 (meta . ((class . Item)
496 (interfaces . (break-aligned-interface
499 staff-symbol-referencer-interface))))))
503 (cross-staff . ,ly:cluster::calc-cross-staff)
504 (minimum-length . 0.0)
506 (springs-and-rods . ,ly:spanner::set-spacing-rods)
507 (stencil . ,ly:cluster::print)
509 (meta . ((class . Spanner)
510 (interfaces . (cluster-interface))))))
512 (ClusterSpannerBeacon
514 (Y-extent . ,ly:cluster-beacon::height)
515 (meta . ((class . Item)
516 (interfaces . (cluster-beacon-interface
517 rhythmic-grob-interface))))))
521 (avoid-slur . outside)
524 (extra-spacing-width . (+inf.0 . -inf.0))
527 (script-priority . 200)
529 (staff-padding . 0.5)
530 ;; todo: add X self alignment?
531 (stencil . ,ly:text-interface::print)
532 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
533 (Y-offset . ,ly:side-position-interface::y-aligned-side)
534 (meta . ((class . Item)
535 (interfaces . (font-interface
536 side-position-interface
538 text-script-interface))))))
542 (break-align-symbol . custos)
543 (break-visibility . ,end-of-line-visible)
544 (neutral-direction . ,DOWN)
547 (first-note . (minimum-fixed-space . 0.0))
548 (right-edge . (extra-space . 0.1))))
549 (stencil . ,ly:custos::print)
551 (Y-offset . ,ly:staff-symbol-referencer::callback)
552 (meta . ((class . Item)
553 (interfaces . (break-aligned-interface
556 staff-symbol-referencer-interface))))))
562 (positioning-done . ,ly:dot-column::calc-positioning-done)
563 (X-extent . ,ly:axis-group-interface::width)
564 (meta . ((class . Item)
565 (interfaces . (axis-group-interface
566 dot-column-interface))))))
570 (dot-count . ,dots::calc-dot-count)
571 (staff-position . ,dots::calc-staff-position)
572 (stencil . ,ly:dots::print)
573 (meta . ((class . Item)
574 (interfaces . (dots-interface
576 staff-symbol-referencer-interface))))))
580 (break-align-symbol . staff-bar)
581 (break-visibility . ,begin-of-line-invisible)
582 (dot-negative-kern . 0.75)
583 (font-encoding . fetaMusic)
585 (slash-negative-kern . 1.6)
587 (stencil . ,ly:percent-repeat-item-interface::double-percent)
590 (meta . ((class . Item)
591 (interfaces . (break-aligned-interface
593 percent-repeat-interface
594 percent-repeat-item-interface))))))
596 (DoublePercentRepeatCounter
599 (font-encoding . fetaNumber)
602 (self-alignment-X . ,CENTER)
604 (staff-padding . 0.25)
605 (stencil . ,ly:text-interface::print)
606 (X-offset . ,(ly:make-simple-closure
608 ,(ly:make-simple-closure
609 (list ly:self-alignment-interface::centered-on-y-parent))
610 ,(ly:make-simple-closure
611 (list ly:self-alignment-interface::x-aligned-on-self)))))
612 (Y-offset . ,ly:side-position-interface::y-aligned-side)
613 (meta . ((class . Item)
614 (interfaces . (font-interface
615 percent-repeat-interface
616 percent-repeat-item-interface
617 self-alignment-interface
618 side-position-interface
624 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
626 (minimum-space . 1.2)
627 (outside-staff-priority . 250)
631 (staff-padding . 0.1)
632 (X-extent . ,ly:axis-group-interface::width)
633 (Y-extent . ,ly:axis-group-interface::height)
634 (Y-offset . ,ly:side-position-interface::y-aligned-side)
635 (meta . ((class . Spanner)
636 (interfaces . (axis-group-interface
638 dynamic-line-spanner-interface
639 side-position-interface))))))
646 (direction . ,ly:script-interface::calc-direction)
647 (extra-spacing-width . (+inf.0 . -inf.0))
648 (font-encoding . fetaDynamic)
650 (font-shape . italic)
651 (outside-staff-priority . 250)
652 (positioning-done . ,ly:script-interface::calc-positioning-done)
653 (self-alignment-X . ,CENTER)
654 (self-alignment-Y . ,CENTER)
655 (stencil . ,ly:text-interface::print)
656 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
657 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
658 (meta . ((class . Item)
659 (interfaces . (dynamic-interface
662 self-alignment-interface
667 (bound-details . ((right . ((attach-dir . ,LEFT)
671 (right-broken . ((attach-dir . ,RIGHT)
675 (left . ((attach-dir . ,LEFT)
677 (stencil-offset . (0 . -0.5))
680 (left-broken . ((attach-dir . ,RIGHT)
683 (dash-fraction . 0.2)
686 ;; rather ugh with NCSB
687 ;; (font-series . bold)
688 (font-shape . italic)
690 ;; need to blend with dynamic texts.
693 (left-bound-info . ,ly:line-spanner::calc-left-bound-info-and-text)
695 ;; make sure the spanner doesn't get too close to notes
696 (minimum-Y-extent . (-1 . 1))
698 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
699 (stencil . ,ly:line-spanner::print)
700 (style . dashed-line)
701 (meta . ((class . Spanner)
702 (interfaces . (dynamic-interface
703 dynamic-text-spanner-interface
706 line-spanner-interface
714 ;; sync with TextScript (?)
716 (avoid-slur . around)
717 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
718 (direction . ,ly:script-interface::calc-direction)
719 (font-encoding . fetaNumber)
720 (font-size . -5) ; don't overlap when next to heads.
722 (positioning-done . ,ly:script-interface::calc-positioning-done)
723 (script-priority . 100)
724 (self-alignment-X . ,CENTER)
725 (self-alignment-Y . ,CENTER)
727 (staff-padding . 0.5)
728 (stencil . ,ly:text-interface::print)
729 (text . ,fingering::calc-text)
730 (meta . ((class . Item)
731 (interfaces . (finger-interface
733 self-alignment-interface
734 side-position-interface
736 text-script-interface))))))
740 (after-line-breaking . ,ly:chord-name::after-line-breaking)
741 (fret-diagram-details . ((finger-code . below-string)))
742 (stencil . ,fret-board::calc-stencil)
743 (meta . ((class . Item)
744 (interfaces . (chord-name-interface
746 fret-diagram-interface
747 rhythmic-grob-interface))))))
752 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
753 (bound-details . ((right . ((attach-dir . ,CENTER)
756 (left . ((attach-dir . ,CENTER)
761 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
762 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
763 (stencil . ,ly:line-spanner::print)
767 (zigzag-width . 0.75)
768 (meta . ((class . Spanner)
769 (interfaces . (line-interface
770 line-spanner-interface
771 unbreakable-spanner-interface))))))
775 (common-shortest-duration . ,grace-spacing::calc-shortest-duration)
776 (shortest-duration-space . 1.6)
777 (spacing-increment . 0.8)
778 (meta . ((class . Spanner)
779 (interfaces . (grace-spacing-interface
780 spacing-options-interface
781 spanner-interface))))))
786 (self-alignment-X . ,CENTER)
787 (stencil . ,ly:grid-line-interface::print)
788 (X-extent . ,ly:grid-line-interface::width)
789 (X-offset . ,(ly:make-simple-closure
791 ,(ly:make-simple-closure
792 (list ly:self-alignment-interface::centered-on-x-parent))
793 ,(ly:make-simple-closure
794 (list ly:self-alignment-interface::x-aligned-on-self)))))
795 (meta . ((class . Item)
796 (interfaces . (grid-line-interface
797 self-alignment-interface))))))
803 (meta . ((class . Item)
804 (interfaces . (grid-point-interface))))))
809 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
810 (bound-padding . 1.0)
812 (grow-direction . ,hairpin::calc-grow-direction)
814 (minimum-length . 2.0)
815 (self-alignment-Y . ,CENTER)
816 (springs-and-rods . ,ly:spanner::set-spacing-rods)
817 (stencil . ,ly:hairpin::print)
820 (Y-extent . ,ly:hairpin::height)
821 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
822 (meta . ((class . Spanner)
823 (interfaces . (dynamic-interface
826 self-alignment-interface
827 spanner-interface))))))
829 (HarmonicParenthesesItem
832 (stencil . ,parentheses-item::print)
833 (stencils . ,parentheses-item::calc-angled-bracket-stencils)
834 (meta . ((class . Item)
835 (interfaces . (font-interface
836 parentheses-interface))))))
840 (bracket-flare . (0.5 . 0.5))
841 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
845 (staff-padding . 0.2)
846 (stencil . ,ly:horizontal-bracket::print)
848 (Y-offset . ,ly:side-position-interface::y-aligned-side)
849 (meta . ((class . Spanner)
850 (interfaces . (horizontal-bracket-interface
852 side-position-interface
853 spanner-interface))))))
860 (self-alignment-X . ,CENTER)
861 (self-alignment-Y . ,CENTER)
862 (stencil . ,system-start-text::print)
863 (X-offset . ,system-start-text::calc-x-offset)
864 (Y-offset . ,system-start-text::calc-y-offset)
865 (meta . ((class . Spanner)
866 (interfaces . (font-interface
867 self-alignment-interface
868 side-position-interface
869 system-start-text-interface))))))
874 (extra-spacing-width . (+inf.0 . -inf.0))
875 (outside-staff-priority . 500)
877 (self-alignment-X . ,LEFT)
879 (staff-padding . 0.5)
880 (stencil . ,ly:text-interface::print)
881 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
882 (Y-offset . ,ly:side-position-interface::y-aligned-side)
883 (meta . ((class . Item)
884 (interfaces . (font-interface
885 self-alignment-interface
886 side-position-interface
892 (break-align-symbol . key-cancellation)
893 (break-visibility . ,begin-of-line-invisible)
894 (glyph-name-alist . ,cancellation-glyph-name-alist)
897 (time-signature . (extra-space . 1.25))
898 (staff-bar . (extra-space . 0.6))
899 (key-signature . (extra-space . 0.5))
900 (right-edge . (extra-space . 0.5))
901 (first-note . (fixed-space . 2.5))))
902 (stencil . ,ly:key-signature-interface::print)
903 (Y-offset . ,ly:staff-symbol-referencer::callback)
904 (meta . ((class . Item)
905 (interfaces . (break-aligned-interface
907 key-cancellation-interface
908 key-signature-interface
909 staff-symbol-referencer-interface))))))
913 (avoid-slur . inside)
914 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
915 (break-align-symbol . key-signature)
916 (break-visibility . ,begin-of-line-visible)
917 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
920 (time-signature . (extra-space . 1.15))
921 (staff-bar . (extra-space . 1.1))
922 (right-edge . (extra-space . 0.5))
923 (first-note . (fixed-space . 2.5))))
924 (stencil . ,ly:key-signature-interface::print)
925 (Y-offset . ,ly:staff-symbol-referencer::callback)
926 (meta . ((class . Item)
927 (interfaces . (break-aligned-interface
929 key-signature-interface
930 staff-symbol-referencer-interface))))))
935 (control-points . ,ly:semi-tie::calc-control-points)
936 (details . ((ratio . 0.333)
937 (height-limit . 1.0)))
938 (direction . ,ly:tie::calc-direction)
939 (head-direction . ,LEFT)
940 (stencil . ,ly:tie::print)
942 (meta . ((class . Item)
943 (interfaces . (semi-tie-interface))))))
945 (LaissezVibrerTieColumn
947 (head-direction . ,LEFT)
948 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
951 (meta . ((class . Item)
952 (interfaces . (semi-tie-column-interface))))))
957 (length-fraction . 0.25)
958 (minimum-length-fraction . 0.25)
959 (springs-and-rods . ,ly:ledger-line-spanner::set-spacing-rods)
960 (stencil . ,ly:ledger-line-spanner::print)
963 (meta . ((class . Spanner)
964 (interfaces . (ledger-line-spanner-interface))))))
968 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
969 (break-align-symbol . left-edge)
970 (break-visibility . ,center-invisible)
973 (custos . (extra-space . 0.0))
974 (ambitus . (extra-space . 2.0))
975 (time-signature . (extra-space . 1.0))
976 (staff-bar . (extra-space . 0.0))
977 (breathing-sign . (minimum-space . 0.0))
978 (clef . (extra-space . 0.8))
979 (first-note . (fixed-space . 2.0))
980 (right-edge . (extra-space . 0.0))
981 (key-signature . (extra-space . 0.0))
982 (key-cancellation . (extra-space . 0.0))
985 (meta . ((class . Item)
986 (interfaces . (break-aligned-interface))))))
990 ;; ugh. A ligature bracket is totally different from
993 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
994 (control-points . ,ly:tuplet-bracket::calc-control-points)
996 (edge-height . (0.7 . 0.7))
998 (positions . ,ly:tuplet-bracket::calc-positions)
999 (shorten-pair . (-0.2 . -0.2))
1000 (staff-padding . 0.25)
1001 (stencil . ,ly:tuplet-bracket::print)
1003 (meta . ((class . Spanner)
1004 (interfaces . (line-interface
1005 tuplet-bracket-interface))))))
1009 (minimum-length . 1.5)
1010 (stencil . ,ly:lyric-extender::print)
1011 (thickness . 0.8) ; line-thickness
1012 (Y-extent . (0 . 0))
1013 (meta . ((class . Spanner)
1014 (interfaces . (lyric-extender-interface
1015 lyric-interface))))))
1019 (dash-period . 10.0)
1022 (minimum-distance . 0.1)
1023 (minimum-length . 0.3)
1025 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1026 (stencil . ,ly:lyric-hyphen::print)
1028 (Y-extent . (0 . 0))
1029 (meta . ((class . Spanner)
1030 (interfaces . (font-interface
1031 lyric-hyphen-interface
1033 spanner-interface))))))
1037 (minimum-distance . 0.45)
1039 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1042 (meta . ((class . Spanner)
1043 (interfaces . (lyric-hyphen-interface
1044 spanner-interface))))))
1048 (extra-spacing-width . (0.0 . 0.0))
1049 (font-series . bold-narrow)
1051 (self-alignment-X . ,CENTER)
1052 (stencil . ,lyric-text::print)
1053 (text . ,(grob::calc-property-by-copy 'text))
1055 (X-offset . ,ly:self-alignment-interface::aligned-on-x-parent)
1056 (meta . ((class . Item)
1057 (interfaces . (font-interface
1058 lyric-syllable-interface
1059 rhythmic-grob-interface
1060 self-alignment-interface
1061 text-interface))))))
1071 (stencil . ,ly:measure-grouping::print)
1073 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1074 (meta . ((class . Spanner)
1075 (interfaces . (measure-grouping-interface
1076 side-position-interface))))))
1080 (neutral-direction . ,DOWN)
1081 (meta . ((class . Item)
1082 (interfaces . (melody-spanner-interface))))))
1087 (stencil . ,ly:mensural-ligature::print)
1089 (meta . ((class . Spanner)
1090 (interfaces . (font-interface
1091 mensural-ligature-interface))))))
1095 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1097 (extra-spacing-width . (+inf.0 . -inf.0))
1098 (outside-staff-priority . 1000)
1101 (stencil . ,ly:text-interface::print)
1102 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1103 (meta . ((class . Item)
1104 (interfaces . (font-interface
1105 metronome-mark-interface
1106 side-position-interface
1107 text-interface))))))
1112 (hair-thickness . 2.0)
1114 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1115 (staff-position . 0)
1116 (stencil . ,ly:multi-measure-rest::print)
1117 (thick-thickness . 6.6)
1118 (Y-offset . ,ly:staff-symbol-referencer::callback)
1119 (meta . ((class . Spanner)
1120 (interfaces . (font-interface
1121 multi-measure-interface
1122 multi-measure-rest-interface
1124 staff-symbol-referencer-interface))))))
1126 (MultiMeasureRestNumber
1128 (bound-padding . 2.0)
1130 (font-encoding . fetaNumber)
1132 (self-alignment-X . ,CENTER)
1134 (springs-and-rods . ,ly:multi-measure-rest::set-text-rods)
1135 (staff-padding . 0.4)
1136 (stencil . ,ly:text-interface::print)
1137 (X-offset . ,(ly:make-simple-closure
1139 ,(ly:make-simple-closure
1140 (list ly:self-alignment-interface::x-aligned-on-self))
1141 ,(ly:make-simple-closure
1142 (list ly:self-alignment-interface::x-centered-on-y-parent)))))
1143 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1144 (meta . ((class . Spanner)
1145 (interfaces . (font-interface
1146 multi-measure-interface
1147 self-alignment-interface
1148 side-position-interface
1149 text-interface))))))
1151 (MultiMeasureRestText
1154 (outside-staff-priority . 450)
1156 (self-alignment-X . ,CENTER)
1157 (staff-padding . 0.25)
1158 (stencil . ,ly:text-interface::print)
1159 (X-offset . ,(ly:make-simple-closure
1161 ,(ly:make-simple-closure
1162 (list ly:self-alignment-interface::x-centered-on-y-parent))
1163 ,(ly:make-simple-closure
1164 (list ly:self-alignment-interface::x-aligned-on-self)))))
1165 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1166 (meta . ((class . Spanner)
1167 (interfaces . (font-interface
1168 multi-measure-interface
1169 self-alignment-interface
1170 side-position-interface
1171 text-interface))))))
1174 (NonMusicalPaperColumn
1176 (allow-loose-spacing . #t)
1178 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1179 (full-measure-extra-space . 1.0)
1180 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1181 ;; (stencil . ,ly:paper-column::print)
1183 (line-break-permission . allow)
1185 (page-break-permission . allow)
1187 ;; debugging stuff: print column number.
1188 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1190 (X-extent . ,ly:axis-group-interface::width)
1191 (meta . ((class . Paper_column)
1192 (interfaces . (axis-group-interface
1194 paper-column-interface
1195 separation-item-interface
1196 spaceable-grob-interface))))))
1201 (positioning-done . ,ly:note-collision-interface::calc-positioning-done)
1202 (prefer-dotted-right . #t)
1203 (X-extent . ,ly:axis-group-interface::width)
1204 (Y-extent . ,ly:axis-group-interface::height)
1205 (meta . ((class . Item)
1206 (interfaces . (axis-group-interface
1207 note-collision-interface))))))
1212 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1213 (X-extent . ,ly:axis-group-interface::width)
1214 (Y-extent . ,ly:axis-group-interface::height)
1215 (meta . ((class . Item)
1216 (interfaces . (axis-group-interface
1217 note-column-interface
1218 separation-item-interface))))))
1222 (duration-log . ,note-head::calc-duration-log)
1223 (glyph-name . ,note-head::calc-glyph-name)
1224 (stem-attachment . ,ly:note-head::calc-stem-attachment)
1225 (stencil . ,ly:note-head::print)
1226 (X-offset . ,ly:note-head::stem-x-shift)
1227 (Y-offset . ,ly:staff-symbol-referencer::callback)
1228 (meta . ((class . Item)
1229 (interfaces . (font-interface
1230 gregorian-ligature-interface
1232 mensural-ligature-interface
1234 rhythmic-grob-interface
1235 rhythmic-head-interface
1236 staff-symbol-referencer-interface
1237 vaticana-ligature-interface))))))
1241 (stencil . ,ly:text-interface::print)
1242 (meta . ((class . Item)
1243 (interfaces . (font-interface
1245 text-interface))))))
1249 ;; Changed this from 0.75.
1250 ;; If you ever change this back, please document! --hwn
1251 (knee-spacing-correction . 1.0)
1252 (same-direction-correction . 0.25)
1253 (space-to-barline . #t)
1254 (stem-spacing-correction . 0.5)
1255 (meta . ((class . Item)
1256 (interfaces . (note-spacing-interface
1257 spacing-interface))))))
1262 (break-visibility . ,begin-of-line-visible)
1263 (font-shape . italic)
1265 (self-alignment-X . ,CENTER)
1266 (staff-padding . 0.2)
1267 (stencil . ,ly:text-interface::print)
1268 (X-offset . ,(ly:make-simple-closure
1270 ,(ly:make-simple-closure
1271 (list ly:self-alignment-interface::x-aligned-on-self))
1272 ,(ly:make-simple-closure
1273 (list ly:self-alignment-interface::centered-on-x-parent)))))
1274 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1275 (meta . ((class . Item)
1276 (interfaces . (font-interface
1277 self-alignment-interface
1278 side-position-interface
1279 text-interface))))))
1283 (dash-fraction . 0.3)
1285 (edge-height . (0 . 1.2))
1286 (font-shape . italic)
1287 (minimum-length . 1.0)
1288 (outside-staff-priority . 400)
1290 (shorten-pair . (0.0 . -0.6))
1291 (staff-padding . 1.0)
1292 (stencil . ,ly:ottava-bracket::print)
1293 (style . dashed-line)
1294 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1295 (meta . ((class . Spanner)
1296 (interfaces . (font-interface
1297 horizontal-bracket-interface
1299 ottava-bracket-interface
1300 side-position-interface
1301 text-interface))))))
1306 (allow-loose-spacing . #t)
1308 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1309 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1310 ;; (stencil . ,ly:paper-column::print)
1311 (X-extent . ,ly:axis-group-interface::width)
1314 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1315 (meta . ((class . Paper_column)
1316 (interfaces . (axis-group-interface
1318 paper-column-interface
1319 separation-item-interface
1320 spaceable-grob-interface))))))
1326 (stencil . ,parentheses-item::print)
1327 (stencils . ,parentheses-item::calc-parenthesis-stencils)
1328 (meta . ((class . Item)
1329 (interfaces . (font-interface
1330 parentheses-interface))))))
1334 (dot-negative-kern . 0.75)
1335 (font-encoding . fetaMusic)
1337 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1338 (stencil . ,ly:multi-measure-rest::percent)
1340 (meta . ((class . Spanner)
1341 (interfaces . (font-interface
1342 multi-measure-rest-interface
1343 percent-repeat-interface))))))
1345 (PercentRepeatCounter
1348 (font-encoding . fetaNumber)
1351 (self-alignment-X . ,CENTER)
1352 (staff-padding . 0.25)
1353 (stencil . ,ly:text-interface::print)
1354 (X-offset . ,(ly:make-simple-closure
1356 ,(ly:make-simple-closure
1357 (list ly:self-alignment-interface::x-centered-on-y-parent))
1358 ,(ly:make-simple-closure
1359 (list ly:self-alignment-interface::x-aligned-on-self)))))
1360 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1361 (meta . ((class . Spanner)
1362 (interfaces . (font-interface
1363 percent-repeat-interface
1364 self-alignment-interface
1365 side-position-interface
1366 text-interface))))))
1370 (control-points . ,ly:slur::calc-control-points)
1371 (cross-staff . ,ly:slur::calc-cross-staff)
1372 (details . ,default-slur-details)
1373 (direction . ,ly:slur::calc-direction)
1374 (height-limit . 2.0)
1375 (minimum-length . 1.5)
1377 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1378 (stencil . ,ly:slur::print)
1380 (Y-extent . ,ly:slur::height)
1381 (meta . ((class . Spanner)
1382 (interfaces . (slur-interface))))))
1384 ;; an example of a text spanner
1387 (bound-padding . 1.0)
1388 (bracket-flare . (0.5 . 0.5))
1390 (edge-height . (1.0 . 1.0))
1391 (shorten-pair . (0.0 . 0.0))
1392 (stencil . ,ly:piano-pedal-bracket::print)
1395 (meta . ((class . Spanner)
1396 (interfaces . (line-interface
1397 piano-pedal-bracket-interface
1398 piano-pedal-interface))))))
1403 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1405 (break-align-symbols . (staff-bar clef))
1406 (break-visibility . ,end-of-line-invisible)
1408 (extra-spacing-width . (+inf.0 . -inf.0))
1411 (outside-staff-priority . 1500)
1413 (self-alignment-X . ,CENTER)
1414 (stencil . ,ly:text-interface::print)
1415 (X-offset . ,(ly:make-simple-closure
1417 ,(ly:make-simple-closure
1418 (list ly:break-alignable-interface::self-align-callback))
1419 ,(ly:make-simple-closure
1420 (list ly:self-alignment-interface::x-aligned-on-self)))))
1421 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1422 (meta . ((class . Item)
1423 (interfaces . (break-alignable-interface
1426 self-alignment-interface
1427 side-position-interface
1428 text-interface))))))
1433 (stencil . ,ly:percent-repeat-item-interface::beat-slash)
1435 (meta . ((class . Item)
1436 (interfaces . (percent-repeat-interface
1437 percent-repeat-item-interface
1438 rhythmic-grob-interface))))))
1442 (control-points . ,ly:semi-tie::calc-control-points)
1443 (details . ((ratio . 0.333)
1444 (height-limit . 1.0)))
1445 (direction . ,ly:tie::calc-direction)
1446 (head-direction . ,RIGHT)
1447 (stencil . ,ly:tie::print)
1449 (meta . ((class . Item)
1450 (interfaces . (semi-tie-interface))))))
1454 (direction . ,ly:tie::calc-direction)
1455 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1456 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1459 (meta . ((class . Item)
1460 (interfaces . (semi-tie-column-interface))))))
1464 (cross-staff . ,ly:rest::calc-cross-staff)
1465 (duration-log . ,stem::calc-duration-log)
1466 (minimum-distance . 0.25)
1467 (stencil . ,ly:rest::print)
1468 (X-extent . ,ly:rest::width)
1469 (Y-extent . ,ly:rest::height)
1470 (Y-offset . ,ly:rest::y-offset-callback)
1471 (meta . ((class . Item)
1472 (interfaces . (font-interface
1474 rhythmic-grob-interface
1475 rhythmic-head-interface
1476 staff-symbol-referencer-interface))))))
1480 (minimum-distance . 0.75)
1481 (positioning-done . ,ly:rest-collision::calc-positioning-done)
1482 (meta . ((class . Item)
1483 (interfaces . (rest-collision-interface))))))
1488 (cross-staff . ,ly:script-interface::calc-cross-staff)
1489 (direction . ,ly:script-interface::calc-direction)
1490 (font-encoding . fetaMusic)
1491 (positioning-done . ,ly:script-interface::calc-positioning-done)
1494 ;; padding set in script definitions.
1495 (staff-padding . 0.25)
1497 (stencil . ,ly:script-interface::print)
1498 (X-offset . ,script-interface::calc-x-offset)
1499 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1500 (meta . ((class . Item)
1501 (interfaces . (font-interface
1503 side-position-interface))))))
1507 (before-line-breaking . ,ly:script-column::before-line-breaking)
1508 (meta . ((class . Item)
1509 (interfaces . (script-column-interface))))))
1513 (before-line-breaking . ,ly:script-column::row-before-line-breaking)
1514 (meta . ((class . Item)
1515 (interfaces . (script-column-interface))))))
1519 (avoid-slur . inside)
1520 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1521 (stencil . ,ly:separation-item::print)
1522 (X-extent . ,ly:axis-group-interface::width)
1523 (Y-extent . ,ly:axis-group-interface::height)
1524 (meta . ((class . Item)
1525 (interfaces . (separation-item-interface))))))
1529 (avoid-slur . inside)
1530 (control-points . ,ly:slur::calc-control-points)
1531 (cross-staff . ,ly:slur::calc-cross-staff)
1532 (details . ,default-slur-details)
1533 (direction . ,ly:slur::calc-direction)
1534 (height-limit . 2.0)
1535 (line-thickness . 0.8)
1536 (minimum-length . 1.5)
1538 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1539 (stencil . ,ly:slur::print)
1541 (Y-extent . ,ly:slur::height)
1542 (meta . ((class . Spanner)
1543 (interfaces . (slur-interface))))))
1547 (direction . ,RIGHT)
1548 (extra-spacing-width . (+inf.0 . -inf.0))
1549 (font-shape . italic)
1550 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
1551 (self-alignment-X . ,CENTER)
1552 (stencil . ,ly:text-interface::print)
1553 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1554 (meta . ((class . Item)
1555 (interfaces . (font-interface
1556 piano-pedal-script-interface
1557 self-alignment-interface
1558 text-interface))))))
1560 (SostenutoPedalLineSpanner
1564 (minimum-space . 1.0)
1565 (outside-staff-priority . 1000)
1568 (staff-padding . 1.0)
1569 (X-extent . ,ly:axis-group-interface::width)
1570 (Y-extent . ,ly:axis-group-interface::height)
1571 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1572 (meta . ((class . Spanner)
1573 (interfaces . (axis-group-interface
1574 piano-pedal-interface
1575 side-position-interface))))))
1579 (average-spacing-wishes . #t)
1580 (base-shortest-duration . ,(ly:make-moment 3 16))
1581 (common-shortest-duration . ,ly:spacing-spanner::calc-common-shortest-duration)
1582 (shortest-duration-space . 2.0)
1583 (spacing-increment . 1.2)
1584 (springs-and-rods . ,ly:spacing-spanner::set-springs)
1585 (meta . ((class . Spanner)
1586 (interfaces . (spacing-options-interface
1587 spacing-spanner-interface))))))
1591 (allow-span-bar . #t)
1592 (bar-extent . ,ly:axis-group-interface::height)
1593 (bar-size . ,ly:span-bar::calc-bar-size)
1594 (before-line-breaking . ,ly:span-bar::before-line-breaking)
1595 (break-align-symbol . staff-bar)
1597 (glyph-name . ,ly:span-bar::calc-glyph-name)
1599 ;; ugh duplication! (these 4 properties were copied from Barline)
1601 ;; Ross. page 151 lists other values, we opt for a leaner look
1605 (hair-thickness . 1.6)
1606 (thick-thickness . 6.0)
1610 (stencil . ,ly:span-bar::print)
1611 (X-extent . ,ly:span-bar::width)
1612 (Y-extent . ,ly:axis-group-interface::height)
1613 (meta . ((class . Item)
1614 (interfaces . (bar-line-interface
1616 span-bar-interface))))))
1620 (between-staff-spacing . ((space . 9)
1621 (minimum-distance . 7)
1623 (after-last-staff-spacing . ((space . 10.5)
1624 (minimum-distance . 8)
1626 (meta . ((class . Spanner)
1627 (interfaces . (staff-grouper-interface))))))
1632 (stem-spacing-correction . 0.4)
1633 (meta . ((class . Item)
1634 (interfaces . (spacing-interface
1635 staff-spacing-interface))))))
1640 (ledger-line-thickness . (1.0 . 0.1))
1642 (stencil . ,ly:staff-symbol::print)
1643 (Y-extent . ,ly:staff-symbol::height)
1644 (meta . ((class . Spanner)
1645 (interfaces . (staff-symbol-interface))))))
1650 (font-series . bold)
1653 (stencil . ,ly:text-interface::print)
1654 (X-offset . ,ly:side-position-interface::x-aligned-side)
1655 (meta . ((class . Item)
1656 (interfaces . (font-interface
1657 side-position-interface
1658 stanza-number-interface
1659 text-interface))))))
1663 (beamlet-default-length . (1.1 . 1.1))
1664 (beamlet-max-length-proportion . (0.75 . 0.75))
1665 (cross-staff . ,ly:stem::calc-cross-staff)
1666 (default-direction . ,ly:stem::calc-default-direction)
1669 ;; 3.5 (or 3 measured from note head) is standard length
1670 ;; 32nd, 64th, 128th flagged stems should be longer
1671 (lengths . (3.5 3.5 3.5 4.5 5.0 6.0))
1673 ;; FIXME. 3.5 yields too long beams (according to Ross and
1674 ;; looking at Baerenreiter examples) for a number of common
1675 ;; boundary cases. Subtracting half a beam thickness fixes
1676 ;; this, but the bug may well be somewhere else.
1678 ;; FIXME this should come from 'lengths
1679 (beamed-lengths . (3.26 3.5 3.6))
1681 ;; The 'normal' minima
1682 (beamed-minimum-free-lengths . (1.83 1.5 1.25))
1683 ;(beamed-minimum-free-lengths . (2.0 1.83 1.25))
1685 ;; The 'extreme case' minima
1686 (beamed-extreme-minimum-free-lengths . (2.0 1.25))
1688 ;; Stems in unnatural (forced) direction should be shortened by
1689 ;; one staff space, according to [Roush & Gourlay].
1690 ;; Flagged stems we shorten only half a staff space.
1691 (stem-shorten . (1.0 0.5))
1695 ;; We use the normal minima as minimum for the ideal lengths,
1696 ;; and the extreme minima as abolute minimum length.
1698 (direction . ,ly:stem::calc-direction)
1699 (duration-log . ,stem::calc-duration-log)
1700 (flag . ,ly:stem::calc-flag)
1701 (length . ,ly:stem::calc-length)
1702 (neutral-direction . ,DOWN)
1703 (positioning-done . ,ly:stem::calc-positioning-done)
1704 (stem-end-position . ,ly:stem::calc-stem-end-position)
1705 (stem-info . ,ly:stem::calc-stem-info)
1706 (stencil . ,ly:stem::print)
1708 (X-extent . ,ly:stem::width)
1709 (X-offset . ,ly:stem::offset-callback)
1710 (Y-extent . ,ly:stem::height)
1711 (Y-offset . ,ly:staff-symbol-referencer::callback)
1712 (meta . ((class . Item)
1713 (interfaces . (font-interface
1714 stem-interface))))))
1718 (beam-thickness . 0.48) ; staff-space
1719 (beam-width . ,ly:stem-tremolo::calc-width) ; staff-space
1720 (slope . ,ly:stem-tremolo::calc-slope)
1721 (stencil . ,ly:stem-tremolo::print)
1722 (style . ,ly:stem-tremolo::calc-style)
1723 (X-extent . ,ly:stem-tremolo::width)
1724 (Y-extent . ,ly:stem-tremolo::height)
1725 (meta . ((class . Item)
1726 (interfaces . (stem-tremolo-interface))))))
1730 (avoid-slur . around)
1731 (font-encoding . fetaNumber)
1732 (font-size . -5) ; don't overlap when next to heads.
1734 (script-priority . 100)
1735 (self-alignment-X . ,CENTER)
1736 (self-alignment-Y . ,CENTER)
1737 (staff-padding . 0.5)
1738 (stencil . ,print-circled-text-callback)
1739 (text . ,string-number::calc-text)
1740 (meta . ((class . Item)
1741 (interfaces . (font-interface
1742 self-alignment-interface
1743 side-position-interface
1744 string-number-interface
1746 text-script-interface))))))
1750 (digit-names . #("p" "i" "m" "a" "x"))
1751 (font-shape . italic)
1752 (font-size . -4) ; don't overlap when next to heads.
1754 (script-priority . 100)
1755 (self-alignment-X . ,CENTER)
1756 (self-alignment-Y . ,CENTER)
1757 (staff-padding . 0.5)
1758 (stencil . ,ly:text-interface::print)
1759 (text . ,stroke-finger::calc-text)
1760 (meta . ((class . Item)
1761 (interfaces . (font-interface
1762 self-alignment-interface
1763 side-position-interface
1764 stroke-finger-interface
1766 text-script-interface))))))
1770 (direction . ,RIGHT)
1771 (extra-spacing-width . (+inf.0 . -inf.0))
1772 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
1773 (self-alignment-X . ,CENTER)
1774 (stencil . ,ly:sustain-pedal::print)
1775 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1776 (meta . ((class . Item)
1777 (interfaces . (font-interface
1778 piano-pedal-interface
1779 piano-pedal-script-interface
1780 self-alignment-interface
1781 text-interface))))))
1783 (SustainPedalLineSpanner
1787 (minimum-space . 1.0)
1788 (outside-staff-priority . 1000)
1791 (staff-padding . 1.2)
1792 (X-extent . ,ly:axis-group-interface::width)
1793 (Y-extent . ,ly:axis-group-interface::height)
1794 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1795 (meta . ((class . Spanner)
1796 (interfaces . (axis-group-interface
1797 piano-pedal-interface
1798 side-position-interface))))))
1803 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
1804 (X-extent . ,ly:axis-group-interface::width)
1805 (Y-extent . ,ly:axis-group-interface::height)
1806 (meta . ((class . System)
1807 (interfaces . (axis-group-interface
1808 system-interface))))))
1812 (collapse-height . 5.0)
1816 (padding . -0.1) ;; bar must cover rounded ending of staff line.
1817 (stencil . ,ly:system-start-delimiter::print)
1820 (X-offset . ,ly:side-position-interface::x-aligned-side)
1822 (meta . ((class . Spanner)
1823 (interfaces . (side-position-interface
1824 system-start-delimiter-interface))))))
1828 (collapse-height . 5.0)
1830 (font-encoding . fetaBraces)
1832 (stencil . ,ly:system-start-delimiter::print)
1834 (X-offset . ,ly:side-position-interface::x-aligned-side)
1836 (meta . ((class . Spanner)
1837 (interfaces . (font-interface
1838 side-position-interface
1839 system-start-delimiter-interface))))))
1843 (collapse-height . 5.0)
1846 (stencil . ,ly:system-start-delimiter::print)
1849 (X-offset . ,ly:side-position-interface::x-aligned-side)
1851 (meta . ((class . Spanner)
1852 (interfaces . (font-interface
1853 side-position-interface
1854 system-start-delimiter-interface))))))
1859 (stencil . ,ly:system-start-delimiter::print)
1860 (style . line-bracket)
1862 (X-offset . ,ly:side-position-interface::x-aligned-side)
1864 (meta . ((class . Spanner)
1865 (interfaces . (font-interface
1866 side-position-interface
1867 system-start-delimiter-interface))))))
1872 (details . ((tied-properties . ((break-visibility . ,begin-of-line-visible)
1873 (parenthesize . #t)))
1874 (repeat-tied-properties . ((note-head-visible . #t)
1875 (parenthesize . #t)))))
1876 (direction . ,CENTER)
1877 (duration-log . ,note-head::calc-duration-log)
1878 (font-series . bold)
1880 (stem-attachment . (0.0 . 1.35))
1881 (stencil . ,ly:text-interface::print)
1882 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1883 (Y-offset . ,ly:staff-symbol-referencer::callback)
1884 (meta . ((class . Item)
1885 (interfaces . (font-interface
1887 rhythmic-grob-interface
1888 rhythmic-head-interface
1889 staff-symbol-referencer-interface
1890 tab-note-head-interface
1891 text-interface))))))
1895 (avoid-slur . around)
1896 (cross-staff . ,ly:script-interface::calc-cross-staff)
1898 (direction . ,ly:script-interface::calc-direction)
1899 (extra-spacing-width . (+inf.0 . -inf.0))
1900 (outside-staff-priority . 450)
1902 ;; sync with Fingering ?
1905 (positioning-done . ,ly:script-interface::calc-positioning-done)
1906 (script-priority . 200)
1908 (slur-padding . 0.5)
1909 (staff-padding . 0.5)
1910 (stencil . ,ly:text-interface::print)
1911 ;; todo: add X self alignment?
1912 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1913 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1914 (meta . ((class . Item)
1915 (interfaces . (font-interface
1916 instrument-specific-markup-interface
1917 self-alignment-interface
1918 side-position-interface
1920 text-script-interface))))))
1924 (bound-details . ((left . ((Y . 0)
1926 (attach-dir . ,LEFT)
1932 (dash-fraction . 0.2)
1935 (font-shape . italic)
1936 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
1937 (outside-staff-priority . 350)
1938 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
1940 (staff-padding . 0.8)
1941 (stencil . ,ly:line-spanner::print)
1942 (style . dashed-line)
1943 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1945 (meta . ((class . Spanner)
1946 (interfaces . (font-interface
1948 line-spanner-interface
1949 side-position-interface))))))
1953 (avoid-slur . inside)
1954 (control-points . ,ly:tie::calc-control-points)
1956 ;; for a full list, see tie-details.cc
1958 (center-staff-line-clearance . 0.6)
1959 (tip-staff-line-clearance . 0.45)
1960 (note-head-gap . 0.2)
1962 (height-limit . 1.0)
1963 (horizontal-distance-penalty-factor . 10)
1964 (same-dir-as-stem-penalty . 8)
1965 (min-length-penalty-factor . 26)
1966 (tie-tie-collision-distance . 0.45)
1967 (tie-tie-collision-penalty . 25.0)
1968 (intra-space-threshold . 1.25)
1969 (outer-tie-vertical-distance-symmetry-penalty-factor . 10)
1970 (outer-tie-length-symmetry-penalty-factor . 10)
1971 (vertical-distance-penalty-factor . 7)
1972 (outer-tie-vertical-gap . 0.25)
1973 (multi-tie-region-size . 3)
1974 (single-tie-region-size . 4)
1975 (between-length-limit . 1.0)))
1977 (direction . ,ly:tie::calc-direction)
1979 (line-thickness . 0.8)
1980 (neutral-direction . ,UP)
1981 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1982 (stencil . ,ly:tie::print)
1984 (meta . ((class . Spanner)
1985 (interfaces . (tie-interface))))))
1989 (before-line-breaking . ,ly:tie-column::before-line-breaking)
1990 (positioning-done . ,ly:tie-column::calc-positioning-done)
1993 (meta . ((class . Spanner)
1994 (interfaces . (tie-column-interface))))))
1998 (avoid-slur . inside)
2000 . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
2001 (break-align-symbol . time-signature)
2002 (break-visibility . ,all-visible)
2003 (extra-spacing-height . (-1.0 . 1.0))
2006 (first-note . (fixed-space . 2.0))
2007 (right-edge . (extra-space . 0.5))
2008 (staff-bar . (minimum-space . 2.0))))
2009 (stencil . ,ly:time-signature::print)
2011 (meta . ((class . Item)
2012 (interfaces . (break-aligned-interface
2014 time-signature-interface))))))
2016 (TrillPitchAccidental
2020 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
2023 (stencil . ,ly:accidental-interface::print)
2024 (X-offset . ,ly:side-position-interface::x-aligned-side)
2025 (Y-extent . ,ly:accidental-interface::height)
2026 (meta . ((class . Item)
2027 (interfaces . (accidental-interface
2029 side-position-interface
2030 trill-pitch-accidental-interface))))))
2035 (direction . ,RIGHT)
2039 (stencil . ,parenthesize-elements)
2040 (stencils . ,parentheses-item::calc-parenthesis-stencils)
2041 (X-offset . ,ly:side-position-interface::x-aligned-side)
2042 (meta . ((class . Item)
2043 (interfaces . (axis-group-interface
2046 parentheses-interface
2047 side-position-interface))))))
2053 (stencil . ,ly:note-head::print)
2054 (Y-offset . ,ly:staff-symbol-referencer::callback)
2055 (meta . ((class . Item)
2056 (interfaces . (font-interface
2058 pitched-trill-interface
2059 rhythmic-head-interface
2060 staff-symbol-referencer-interface))))))
2064 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2065 (bound-details . ((left . ((text . ,(make-translate-scaled-markup
2067 (make-musicglyph-markup "scripts.trill")))
2069 (stencil-offset . (-0.5 . 0))
2071 (attach-dir . ,CENTER)
2072 ;; this isn't CENTER because the trill glyph's origin
2073 ;; is not centered in its extent; to have the trill
2074 ;; spanner aligned the same as a trill, we need a slight offset
2075 (anchor-alignment . 0.15)
2077 (left-broken . ((end-on-note . #t)))
2081 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2082 (outside-staff-priority . 50)
2084 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2086 (staff-padding . 1.0)
2087 (stencil . ,ly:line-spanner::print)
2089 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2090 (meta . ((class . Spanner)
2091 (interfaces . (font-interface
2093 line-spanner-interface
2094 side-position-interface
2095 trill-spanner-interface))))))
2099 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
2100 (control-points . ,ly:tuplet-bracket::calc-control-points)
2101 (cross-staff . ,ly:tuplet-bracket::calc-cross-staff)
2102 (direction . ,ly:tuplet-bracket::calc-direction)
2103 (edge-height . (0.7 . 0.7))
2104 (full-length-to-extent . #t)
2106 (positions . ,ly:tuplet-bracket::calc-positions)
2107 (shorten-pair . (-0.2 . -0.2))
2108 (staff-padding . 0.25)
2109 (stencil . ,ly:tuplet-bracket::print)
2112 (meta . ((class . Spanner)
2113 (interfaces . (line-interface
2114 tuplet-bracket-interface))))))
2118 (avoid-slur . inside)
2119 (cross-staff . ,ly:tuplet-number::calc-cross-staff)
2120 (font-shape . italic)
2122 (stencil . ,ly:tuplet-number::print)
2123 (text . ,tuplet-number::calc-denominator-text)
2124 (meta . ((class . Spanner)
2125 (interfaces . (font-interface
2127 tuplet-number-interface))))))
2132 (direction . ,RIGHT)
2133 (extra-spacing-width . (+inf.0 . -inf.0))
2134 (font-shape . italic)
2135 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
2136 (self-alignment-X . ,CENTER)
2137 (stencil . ,ly:text-interface::print)
2138 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2139 (meta . ((class . Item)
2140 (interfaces . (font-interface
2141 piano-pedal-script-interface
2142 self-alignment-interface
2143 text-interface))))))
2145 (UnaCordaPedalLineSpanner
2149 (minimum-space . 1.0)
2150 (outside-staff-priority . 1000)
2153 (staff-padding . 1.2)
2154 (X-extent . ,ly:axis-group-interface::width)
2155 (Y-extent . ,ly:axis-group-interface::height)
2156 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2157 (meta . ((class . Spanner)
2158 (interfaces . (axis-group-interface
2159 piano-pedal-interface
2160 side-position-interface))))))
2166 (stencil . ,ly:vaticana-ligature::print)
2168 (meta . ((class . Spanner)
2169 (interfaces . (font-interface
2170 vaticana-ligature-interface))))))
2175 (positioning-done . ,ly:align-interface::align-to-ideal-distances)
2177 (vertical-skylines . ,ly:axis-group-interface::combine-skylines)
2178 (X-extent . ,ly:axis-group-interface::width)
2179 (Y-extent . ,ly:axis-group-interface::height)
2180 (meta . ((class . Spanner)
2181 (object-callbacks . ((Y-common . ,ly:axis-group-interface::calc-y-common)))
2182 (interfaces . (align-interface
2183 axis-group-interface))))))
2187 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2189 (default-next-staff-spacing . ((space . 9)
2190 (minimum-distance . 8)
2192 (next-staff-spacing . ,ly:axis-group-interface::calc-next-staff-spacing)
2193 (non-affinity-spacing . ((padding . 0.5)))
2194 (stencil . ,ly:axis-group-interface::print)
2195 (vertical-skylines . ,ly:hara-kiri-group-spanner::calc-skylines)
2196 (X-extent . ,ly:axis-group-interface::width)
2197 (Y-extent . ,ly:hara-kiri-group-spanner::y-extent)
2198 (Y-offset . ,ly:hara-kiri-group-spanner::force-hara-kiri-callback)
2199 (meta . ((class . Spanner)
2200 (object-callbacks . ((X-common . ,ly:axis-group-interface::calc-x-common)))
2201 (interfaces . (axis-group-interface
2202 hara-kiri-group-spanner-interface
2203 vertically-spaceable-interface))))))
2207 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2208 (bound-details . ((right . ((attach-dir . ,CENTER)
2211 (left . ((attach-dir . ,CENTER)
2216 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2218 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2219 (stencil . ,ly:line-spanner::print)
2223 (meta . ((class . Spanner)
2224 (interfaces . (line-interface
2225 line-spanner-interface))))))
2230 (edge-height . (2.0 . 2.0)) ;; staff-space;
2231 (font-encoding . fetaNumber)
2233 (stencil . ,ly:volta-bracket-interface::print)
2234 (thickness . 1.6) ;; line-thickness
2236 (meta . ((class . Spanner)
2237 (interfaces . (font-interface
2238 horizontal-bracket-interface
2240 side-position-interface
2242 volta-bracket-interface))))))
2244 (VoltaBracketSpanner
2246 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
2249 (no-alignment . ,#t)
2250 (outside-staff-priority . 600)
2253 (X-extent . ,ly:axis-group-interface::width)
2254 (Y-extent . ,ly:axis-group-interface::height)
2255 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2256 (meta . ((class . Spanner)
2257 (interfaces . (axis-group-interface
2258 side-position-interface))))))
2262 (define (completize-grob-entry x)
2263 "Transplant assoc key into 'name entry of 'meta of X. Set interfaces for Item, Spanner etc.
2265 ;; (display (car x))
2267 (let* ((name-sym (car x))
2268 (grob-entry (cdr x))
2269 (meta-entry (assoc-get 'meta grob-entry))
2270 (class (assoc-get 'class meta-entry))
2272 (assoc-get 'interfaces meta-entry)))
2276 (set! ifaces-entry (cons 'item-interface ifaces-entry)))
2277 ((eq? 'Spanner class)
2278 (set! ifaces-entry (cons 'spanner-interface ifaces-entry)))
2279 ((eq? 'Paper_column class)
2280 (set! ifaces-entry (cons 'item-interface
2281 (cons 'paper-column-interface ifaces-entry))))
2282 ((eq? 'System class)
2283 (set! ifaces-entry (cons 'system-interface
2284 (cons 'spanner-interface ifaces-entry))))
2286 (ly:warning "Unknown class ~a" class)))
2288 (set! ifaces-entry (uniq-list (sort ifaces-entry symbol<?)))
2289 (set! ifaces-entry (cons 'grob-interface ifaces-entry))
2291 (set! meta-entry (assoc-set! meta-entry 'name name-sym))
2292 (set! meta-entry (assoc-set! meta-entry 'interfaces
2294 (set! grob-entry (assoc-set! grob-entry 'meta meta-entry))
2295 (cons name-sym grob-entry)))
2297 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
2299 ;; (display (map pair? all-grob-descriptions))
2301 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
2304 ;; (display (car x)) (newline)
2306 (set-object-property! (car x) 'translation-type? list?)
2307 (set-object-property! (car x) 'is-grob? #t))
2308 all-grob-descriptions)
2310 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))
2312 (define pure-print-callbacks
2314 fret-board::calc-stencil
2315 print-circled-text-callback
2318 ly:arpeggio::brew-chord-bracket
2320 ly:mensural-ligature::brew-ligature-primitive
2324 ly:text-interface::print
2325 ly:script-interface::print))
2327 ;; ly:grob::stencil-extent is safe iff the print callback is safe too
2328 (define (pure-stencil-height grob start stop)
2329 (let ((sten (ly:grob-property-data grob 'stencil)))
2332 (memq sten pure-print-callbacks))
2333 (ly:grob::stencil-height grob)
2336 (define pure-conversions-alist
2338 (,ly:accidental-interface::height . ,ly:accidental-interface::pure-height)
2339 (,ly:arpeggio::height . ,ly:arpeggio::pure-height)
2340 (,ly:slur::outside-slur-callback . ,ly:slur::pure-outside-slur-callback)
2341 (,ly:hairpin::height . ,ly:hairpin::pure-height)
2342 (,ly:stem::height . ,ly:stem::pure-height)
2343 (,ly:rest::height . ,ly:rest::pure-height)
2344 (,ly:grob::stencil-height . ,pure-stencil-height)
2345 (,ly:self-alignment-interface::y-aligned-on-self . ,ly:self-alignment-interface::pure-y-aligned-on-self)
2346 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)
2347 (,ly:axis-group-interface::height . ,ly:axis-group-interface::pure-height)
2348 (,ly:hara-kiri-group-spanner::y-extent . ,ly:hara-kiri-group-spanner::pure-height)
2349 (,ly:slur::height . ,ly:slur::pure-height)
2350 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)))
2352 (define pure-functions
2354 parenthesize-elements
2355 ly:rest::y-offset-callback
2356 ly:staff-symbol-referencer::callback
2357 ly:staff-symbol::height))
2359 (define-public (pure-relevant? grob)
2360 (let ((extent-callback (ly:grob-property-data grob 'Y-extent)))
2363 (pair? extent-callback)
2364 (memq extent-callback pure-functions)
2366 (pair? (assq extent-callback pure-conversions-alist))
2369 (not (eq? extent-callback ly:grob::stencil-height))
2370 (memq (ly:grob-property-data grob 'stencil) pure-print-callbacks)
2371 (ly:stencil? (ly:grob-property-data grob 'stencil))
2375 (define-public (call-pure-function unpure args start end)
2376 (if (ly:simple-closure? unpure)
2377 (ly:eval-simple-closure (car args) unpure start end)
2378 (if (not (procedure? unpure))
2380 (if (memq unpure pure-functions)
2382 (let ((pure (assq unpure pure-conversions-alist)))
2386 (list (car args) start end)