1 ;;;; This file is part of LilyPond, the GNU music typesetter.
3 ;;;; Copyright (C) 1998--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
4 ;;;; Jan Nieuwenhuizen <janneke@gnu.org>
6 ;;;; LilyPond is free software: you can redistribute it and/or modify
7 ;;;; it under the terms of the GNU General Public License as published by
8 ;;;; the Free Software Foundation, either version 3 of the License, or
9 ;;;; (at your option) any later version.
11 ;;;; LilyPond is distributed in the hope that it will be useful,
12 ;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;;;; GNU General Public License for more details.
16 ;;;; You should have received a copy of the GNU General Public License
17 ;;;; along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
19 ;;;; distances are given in line-thickness (thicknesses) and
20 ;;;; staff-space (distances)
22 ;;;; WARNING: the meta field should be the last one.
23 ;;;; WARNING: don't use anonymous functions for initialization.
25 ;; TODO: junk the meta field in favor of something more compact?
27 (define-public all-grob-descriptions
31 (alteration . ,accidental-interface::calc-alteration)
33 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
34 (stencil . ,ly:accidental-interface::print)
35 (X-extent . ,ly:accidental-interface::width)
36 (Y-extent . ,ly:accidental-interface::height)
37 (meta . ((class . Item)
38 (interfaces . (accidental-interface
39 inline-accidental-interface
44 (alteration . ,accidental-interface::calc-alteration)
46 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
48 (stencil . ,ly:accidental-interface::print)
49 (Y-extent . ,ly:accidental-interface::height)
50 (meta . ((class . Item)
51 (interfaces . (accidental-interface
52 inline-accidental-interface
58 (positioning-done . ,ly:accidental-placement::calc-positioning-done)
60 ;; this is quite small, but it is very ugly to have
61 ;; accs closer to the previous note than to the next one.
62 (right-padding . 0.15)
64 ;; for horizontally stacked scripts.
65 (script-priority . -100)
67 (X-extent . ,ly:axis-group-interface::width)
68 (meta . ((class . Item)
69 (interfaces . (accidental-placement-interface))))))
73 (alteration . ,accidental-interface::calc-alteration)
76 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
77 (outside-staff-priority . 0)
79 (self-alignment-X . ,CENTER)
81 (staff-padding . 0.25)
82 (stencil . ,ly:accidental-interface::print)
83 (X-extent . ,ly:accidental-interface::width)
84 (X-offset . ,(ly:make-simple-closure
86 ,(ly:make-simple-closure
87 (list ly:self-alignment-interface::centered-on-x-parent))
88 ,(ly:make-simple-closure
89 (list ly:self-alignment-interface::x-aligned-on-self)))))
90 (Y-extent . ,ly:accidental-interface::height)
91 (Y-offset . ,ly:side-position-interface::y-aligned-side)
92 (meta . ((class . Item)
93 (interfaces . (accidental-interface
94 accidental-suggestion-interface
97 self-alignment-interface
98 side-position-interface))))))
103 (break-align-symbol . ambitus)
104 (break-visibility . ,begin-of-line-visible)
107 (cue-end-clef . (extra-space . 0.5))
108 (clef . (extra-space . 0.5))
109 (cue-clef . (extra-space . 0.5))
110 (key-signature . (extra-space . 0.0))
111 (staff-bar . (extra-space . 0.0))
112 (time-signature . (extra-space . 0.0))
113 (first-note . (fixed-space . 0.0))))
114 (X-extent . ,ly:axis-group-interface::width)
115 (Y-extent . ,ly:axis-group-interface::height)
116 (meta . ((class . Item)
117 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
118 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
119 (interfaces . (ambitus-interface
121 break-aligned-interface))))))
126 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
129 (stencil . ,ly:accidental-interface::print)
130 (X-offset . ,ly:side-position-interface::x-aligned-side)
131 (Y-extent . ,ly:accidental-interface::height)
132 (meta . ((class . Item)
133 (interfaces . (accidental-interface
134 break-aligned-interface
136 side-position-interface))))))
141 (stencil . ,ambitus::print)
143 (X-offset . ,ly:self-alignment-interface::centered-on-x-parent)
144 (meta . ((class . Item)
145 (interfaces . (ambitus-interface
151 (glyph-name . ,note-head::calc-glyph-name)
152 (stencil . ,ly:note-head::print)
153 (Y-offset . ,ly:staff-symbol-referencer::callback)
154 (meta . ((class . Item)
155 (interfaces . (ambitus-interface
159 rhythmic-head-interface
160 staff-symbol-referencer-interface))))))
166 (positions . ,ly:arpeggio::calc-positions)
167 (script-priority . 0)
169 (staff-position . 0.0)
170 (stencil . ,ly:arpeggio::print)
171 (X-extent . ,ly:arpeggio::width)
172 (X-offset . ,ly:side-position-interface::x-aligned-side)
173 (Y-offset . ,ly:staff-symbol-referencer::callback)
174 (meta . ((class . Item)
175 (interfaces . (arpeggio-interface
177 side-position-interface
178 staff-symbol-referencer-interface))))))
182 (annotation-balloon . #t)
183 (annotation-line . #t)
184 (stencil . ,ly:balloon-interface::print)
185 (text . ,(grob::calc-property-by-copy 'text))
186 (X-offset . ,(grob::calc-property-by-copy 'X-offset))
187 (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
188 (meta . ((class . Item)
189 (interfaces . (balloon-interface
195 (allow-span-bar . #t)
196 (bar-extent . ,ly:bar-line::calc-bar-extent)
197 (break-align-anchor . ,ly:bar-line::calc-anchor)
198 (break-align-symbol . staff-bar)
199 (break-visibility . ,bar-line::calc-break-visibility)
202 (glyph-name . ,bar-line::calc-glyph-name)
205 ;; Ross. page 151 lists other values, we opt for a leaner look
208 ;; kern should scale with line-thickness too.
211 (hair-thickness . 1.9)
212 (thick-thickness . 6.0)
217 (time-signature . (extra-space . 0.75))
218 (custos . (minimum-space . 2.0))
219 (clef . (minimum-space . 1.0))
220 (key-signature . (extra-space . 1.0))
221 (key-cancellation . (extra-space . 1.0))
222 (first-note . (fixed-space . 1.3))
223 (next-note . (semi-fixed-space . 0.9))
224 (right-edge . (extra-space . 0.0))))
225 (stencil . ,ly:bar-line::print)
226 (meta . ((class . Item)
227 (interfaces . (bar-line-interface
228 break-aligned-interface
233 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
234 ;; want the bar number before the clef at line start.
235 (break-align-symbols . (left-edge staff-bar))
237 (break-visibility . ,begin-of-line-visible)
239 (font-family . roman)
242 (outside-staff-priority . 100)
244 (self-alignment-X . ,RIGHT)
246 (stencil . ,ly:text-interface::print)
247 (X-offset . ,(ly:make-simple-closure
249 ,(ly:make-simple-closure
250 (list ly:break-alignable-interface::self-align-callback))
251 ,(ly:make-simple-closure
252 (list ly:self-alignment-interface::x-aligned-on-self)))))
253 (Y-offset . ,ly:side-position-interface::y-aligned-side)
256 (interfaces . (break-alignable-interface
258 self-alignment-interface
259 side-position-interface
264 (stencil . ,ly:text-interface::print)
265 (meta . ((class . Item)
266 (interfaces . (bass-figure-interface
268 rhythmic-grob-interface
275 (positioning-done . ,ly:align-interface::align-to-minimum-distances)
276 (stacking-dir . ,DOWN)
277 (Y-extent . ,ly:axis-group-interface::height)
278 (meta . ((class . Spanner)
279 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
280 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
281 (interfaces . (align-interface
283 bass-figure-alignment-interface))))))
285 (BassFigureAlignmentPositioning
291 (staff-padding . 1.0)
292 (Y-extent . ,ly:axis-group-interface::height)
293 (Y-offset . ,ly:side-position-interface::y-aligned-side)
294 (meta . ((class . Spanner)
295 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
296 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
297 (interfaces . (axis-group-interface
298 side-position-interface))))))
302 (edge-height . (0.2 . 0.2))
303 (stencil . ,ly:enclosing-bracket::print)
304 (X-extent . ,ly:enclosing-bracket::width)
305 (meta . ((class . Item)
306 (interfaces . (enclosing-bracket-interface))))))
308 (BassFigureContinuation
310 (stencil . ,ly:figured-bass-continuation::print)
311 (Y-offset . ,ly:figured-bass-continuation::center-on-figures)
312 (meta . ((class . Spanner)
313 (interfaces . (figured-bass-continuation-interface))))))
317 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
319 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
320 (Y-extent . ,ly:axis-group-interface::height)
321 (meta . ((class . Spanner)
322 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
323 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
324 (interfaces . (axis-group-interface))))))
329 ;; todo: clean this up a bit: the list is getting
331 (auto-knee-gap . 5.5)
332 (beam-thickness . 0.48) ; in staff-space
334 ;; We have some unreferenced problems here.
336 ;; If we shorten beamed stems less than normal stems (1 staff-space),
337 ;; or high order less than 8th beams, patterns like
338 ;; c''4 [c''8 c''] c''4 [c''16 c]
339 ;; are ugly (different stem lengths).
341 ;; But if we shorten 16th beams as much as 8th beams, a single
342 ;; forced 16th beam looks *very* short.
344 ;; We choose to shorten 8th beams the same as single stems,
345 ;; and high order beams less than 8th beams, so that all
346 ;; isolated shortened beams look nice and a bit shortened,
347 ;; sadly possibly breaking patterns with high order beams.
348 (beamed-stem-shorten . (1.0 0.5 0.25))
350 (beaming . ,ly:beam::calc-beaming)
352 (collision-interfaces . (beam-interface
354 inline-accidental-interface
355 key-signature-interface
358 time-signature-interface))
359 (concaveness . ,ly:beam::calc-concaveness)
360 (cross-staff . ,ly:beam::calc-cross-staff)
364 (secondary-beam-demerit . 10)
365 (stem-length-demerit-factor . 5)
368 (stem-length-limit-penalty . 5000)
369 (damping-direction-penalty . 800)
370 (hint-direction-penalty . 20)
371 (musical-direction-factor . 400)
372 (ideal-slope-factor . 10)
373 (collision-penalty . 500)
374 (collision-padding . 0.35)
375 (round-to-zero-slope . 0.02)))
376 (direction . ,ly:beam::calc-direction)
378 (normalized-endpoints . ,ly:spanner::calc-normalized-endpoints)
379 ;; only for debugging.
380 (font-family . roman)
383 (neutral-direction . ,DOWN)
384 (positions . ,(ly:make-simple-closure
385 (ly:make-simple-closure
386 (list chain-grob-member-functions
388 ly:beam::calc-least-squares-positions
389 ly:beam::slope-damping
390 ly:beam::shift-region-to-valid
394 ;; this is a hack to set stem lengths, if positions is set.
395 (quantized-positions . ,ly:beam::set-stem-lengths)
397 (shorten . ,ly:beam::calc-stem-shorten)
398 (stencil . ,ly:beam::print)
400 (meta . ((class . Spanner)
401 (object-callbacks . ((normal-stems . ,ly:beam::calc-normal-stems)))
402 (interfaces . (beam-interface
404 staff-symbol-referencer-interface
405 unbreakable-spanner-interface))))))
409 (minimum-length . 0.5)
410 (stencil . ,bend::print)
412 (meta . ((class . Spanner)
413 (interfaces . (bend-after-interface
414 spanner-interface))))))
419 (break-align-anchor . ,ly:break-aligned-interface::calc-average-anchor)
420 (break-visibility . ,ly:break-aligned-interface::calc-break-visibility)
421 (X-extent . ,ly:axis-group-interface::width)
422 (meta . ((class . Item)
423 (interfaces . (axis-group-interface
424 break-aligned-interface))))))
429 (break-align-orders . ;; end of line
470 (positioning-done . ,ly:break-alignment-interface::calc-positioning-done)
472 (X-extent . ,ly:axis-group-interface::width)
473 (meta . ((class . Item)
474 (interfaces . (axis-group-interface
475 break-alignment-interface))))))
479 (break-align-symbol . breathing-sign)
480 (break-visibility . ,begin-of-line-invisible)
483 (ambitus . (extra-space . 2.0))
484 (custos . (minimum-space . 1.0))
485 (key-signature . (minimum-space . 1.5))
486 (time-signature . (minimum-space . 1.5))
487 (staff-bar . (minimum-space . 1.5))
488 (clef . (minimum-space . 2.0))
489 (cue-clef . (minimum-space . 2.0))
490 (cue-end-clef . (minimum-space . 2.0))
491 (first-note . (fixed-space . 1.0)) ;huh?
492 (right-edge . (extra-space . 0.1))))
493 (stencil . ,ly:text-interface::print)
494 (text . ,(make-musicglyph-markup "scripts.rcomma"))
495 (Y-offset . ,ly:breathing-sign::offset-callback)
496 (meta . ((class . Item)
497 (interfaces . (break-aligned-interface
498 breathing-sign-interface
504 (after-line-breaking . ,ly:chord-name::after-line-breaking)
507 (stencil . ,ly:text-interface::print)
508 (extra-spacing-height . (0.2 . -0.2))
510 (meta . ((class . Item)
511 (interfaces . (chord-name-interface
513 rhythmic-grob-interface
518 (avoid-slur . inside)
519 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
520 (break-align-symbol . clef)
521 (break-visibility . ,begin-of-line-visible)
522 (glyph-name . ,ly:clef::calc-glyph-name)
524 (space-alist . ((cue-clef . (extra-space . 2.0))
525 (staff-bar . (extra-space . 0.7))
526 (key-cancellation . (minimum-space . 3.5))
527 (key-signature . (minimum-space . 3.5))
528 (time-signature . (minimum-space . 4.2))
529 (first-note . (minimum-fixed-space . 5.0))
530 (next-note . (extra-space . 0.5))
531 (right-edge . (extra-space . 0.5))))
532 (stencil . ,ly:clef::print)
533 (Y-offset . ,ly:staff-symbol-referencer::callback)
534 (meta . ((class . Item)
535 (interfaces . (break-aligned-interface
538 staff-symbol-referencer-interface))))))
542 (cross-staff . ,ly:cluster::calc-cross-staff)
543 (minimum-length . 0.0)
545 (springs-and-rods . ,ly:spanner::set-spacing-rods)
546 (stencil . ,ly:cluster::print)
548 (meta . ((class . Spanner)
549 (interfaces . (cluster-interface))))))
551 (ClusterSpannerBeacon
553 (Y-extent . ,ly:cluster-beacon::height)
554 (meta . ((class . Item)
555 (interfaces . (cluster-beacon-interface
556 rhythmic-grob-interface))))))
560 (avoid-slur . outside)
563 (extra-spacing-width . (+inf.0 . -inf.0))
565 (outside-staff-priority . 450)
567 (script-priority . 200)
569 (staff-padding . 0.5)
570 ;; todo: add X self alignment?
571 (stencil . ,ly:text-interface::print)
572 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
573 (Y-offset . ,ly:side-position-interface::y-aligned-side)
574 (meta . ((class . Item)
575 (interfaces . (font-interface
576 side-position-interface
578 text-script-interface))))))
582 (avoid-slur . inside)
583 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
584 (break-align-symbol . cue-clef)
585 (break-visibility . ,begin-of-line-visible)
587 (glyph-name . ,ly:clef::calc-glyph-name)
589 (full-size-change . #t)
590 (space-alist . ((staff-bar . (minimum-space . 2.7))
591 (key-cancellation . (minimum-space . 3.5))
592 (key-signature . (minimum-space . 3.5))
593 (time-signature . (minimum-space . 4.2))
594 (custos . (minimum-space . 0.0))
595 (first-note . (minimum-fixed-space . 3.0))
596 (next-note . (extra-space . 0.5))
597 (right-edge . (extra-space . 0.5))))
598 (stencil . ,ly:clef::print)
599 (Y-offset . ,ly:staff-symbol-referencer::callback)
600 (meta . ((class . Item)
601 (interfaces . (break-aligned-interface
604 staff-symbol-referencer-interface))))))
608 (avoid-slur . inside)
609 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
610 (break-align-symbol . cue-end-clef)
611 (break-visibility . ,begin-of-line-invisible)
613 (glyph-name . ,ly:clef::calc-glyph-name)
615 (full-size-change . #t)
616 (space-alist . ((clef . (extra-space . 0.7))
617 (cue-clef . (extra-space . 0.7))
618 (staff-bar . (extra-space . 0.7))
619 (key-cancellation . (minimum-space . 3.5))
620 (key-signature . (minimum-space . 3.5))
621 (time-signature . (minimum-space . 4.2))
622 (first-note . (minimum-fixed-space . 5.0))
623 (next-note . (extra-space . 0.5))
624 (right-edge . (extra-space . 0.5))))
625 (stencil . ,ly:clef::print)
626 (Y-offset . ,ly:staff-symbol-referencer::callback)
627 (meta . ((class . Item)
628 (interfaces . (break-aligned-interface
631 staff-symbol-referencer-interface))))))
635 (break-align-symbol . custos)
636 (break-visibility . ,end-of-line-visible)
637 (neutral-direction . ,DOWN)
640 (first-note . (minimum-fixed-space . 0.0))
641 (right-edge . (extra-space . 0.1))))
642 (stencil . ,ly:custos::print)
644 (Y-offset . ,ly:staff-symbol-referencer::callback)
645 (meta . ((class . Item)
646 (interfaces . (break-aligned-interface
649 staff-symbol-referencer-interface))))))
655 (positioning-done . ,ly:dot-column::calc-positioning-done)
656 (X-extent . ,ly:axis-group-interface::width)
657 (meta . ((class . Item)
658 (interfaces . (axis-group-interface
659 dot-column-interface))))))
663 (dot-count . ,dots::calc-dot-count)
664 (staff-position . ,dots::calc-staff-position)
665 (stencil . ,ly:dots::print)
666 (extra-spacing-height . (-0.5 . 0.5))
667 (meta . ((class . Item)
668 (interfaces . (dots-interface
670 staff-symbol-referencer-interface))))))
674 (break-align-symbol . staff-bar)
675 (break-visibility . ,begin-of-line-invisible)
676 (dot-negative-kern . 0.75)
677 (font-encoding . fetaMusic)
679 (slash-negative-kern . 1.6)
681 (stencil . ,ly:percent-repeat-item-interface::double-percent)
683 (meta . ((class . Item)
684 (interfaces . (break-aligned-interface
686 percent-repeat-interface
687 percent-repeat-item-interface))))))
689 (DoublePercentRepeatCounter
692 (font-encoding . fetaText)
695 (self-alignment-X . ,CENTER)
697 (staff-padding . 0.25)
698 (stencil . ,ly:text-interface::print)
699 (X-offset . ,(ly:make-simple-closure
701 ,(ly:make-simple-closure
702 (list ly:self-alignment-interface::centered-on-y-parent))
703 ,(ly:make-simple-closure
704 (list ly:self-alignment-interface::x-aligned-on-self)))))
705 (Y-offset . ,ly:side-position-interface::y-aligned-side)
706 (meta . ((class . Item)
707 (interfaces . (font-interface
708 percent-repeat-interface
709 percent-repeat-item-interface
710 self-alignment-interface
711 side-position-interface
716 (dot-negative-kern . 0.75)
717 (font-encoding . fetaMusic)
718 (slash-negative-kern . 1.6)
720 (stencil . ,ly:percent-repeat-item-interface::beat-slash)
722 (meta . ((class . Item)
723 (interfaces . (font-interface
724 percent-repeat-interface
725 percent-repeat-item-interface
726 rhythmic-grob-interface))))))
731 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
733 (minimum-space . 1.2)
734 (outside-staff-priority . 250)
738 (staff-padding . 0.1)
739 (X-extent . ,ly:axis-group-interface::width)
740 (Y-extent . ,ly:axis-group-interface::height)
741 (Y-offset . ,ly:side-position-interface::y-aligned-side)
742 (meta . ((class . Spanner)
743 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
744 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
745 (interfaces . (axis-group-interface
747 dynamic-line-spanner-interface
748 side-position-interface))))))
755 (direction . ,ly:script-interface::calc-direction)
756 (extra-spacing-width . (+inf.0 . -inf.0))
757 (font-encoding . fetaText)
759 (font-shape . italic)
760 (outside-staff-priority . 250)
761 (positioning-done . ,ly:script-interface::calc-positioning-done)
762 (right-padding . 0.5)
763 (self-alignment-X . ,CENTER)
764 (self-alignment-Y . ,CENTER)
765 (stencil . ,ly:text-interface::print)
766 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
767 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
768 (meta . ((class . Item)
769 (interfaces . (dynamic-interface
770 dynamic-text-interface
773 self-alignment-interface
778 (before-line-breaking . ,dynamic-text-spanner::before-line-breaking)
779 (bound-details . ((right . ((attach-dir . ,LEFT)
783 (right-broken . ((attach-dir . ,RIGHT)
787 (left . ((attach-dir . ,LEFT)
789 (stencil-offset . (-0.75 . -0.5))
792 (left-broken . ((attach-dir . ,RIGHT)
795 (dash-fraction . 0.2)
798 ;; rather ugh with NCSB
799 ;; (font-series . bold)
800 (font-shape . italic)
802 ;; need to blend with dynamic texts.
805 (left-bound-info . ,ly:line-spanner::calc-left-bound-info-and-text)
807 (minimum-length . 2.0)
808 ;; make sure the spanner doesn't get too close to notes
809 (minimum-Y-extent . (-1 . 1))
811 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
812 (springs-and-rods . ,ly:spanner::set-spacing-rods)
813 (stencil . ,ly:line-spanner::print)
814 (style . dashed-line)
815 (meta . ((class . Spanner)
816 (interfaces . (dynamic-interface
817 dynamic-text-spanner-interface
820 line-spanner-interface
827 (bound-details . ((left . ((Y . 0)
833 (attach-dir . ,RIGHT)
837 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
838 (quantize-position . #t)
839 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
841 (stencil . ,ly:line-spanner::print)
843 (Y-offset . ,ly:side-position-interface::y-aligned-side)
844 (meta . ((class . Spanner)
845 (interfaces . (episema-interface
848 line-spanner-interface
849 side-position-interface))))))
855 ;; sync with TextScript (?)
857 (avoid-slur . around)
858 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
859 (direction . ,ly:script-interface::calc-direction)
860 (font-encoding . fetaText)
861 (font-size . -5) ; don't overlap when next to heads.
863 (positioning-done . ,ly:script-interface::calc-positioning-done)
864 (script-priority . 100)
865 (self-alignment-X . ,CENTER)
866 (self-alignment-Y . ,CENTER)
868 (staff-padding . 0.5)
869 (stencil . ,ly:text-interface::print)
870 (text . ,fingering::calc-text)
871 (meta . ((class . Item)
872 (interfaces . (finger-interface
874 self-alignment-interface
875 side-position-interface
877 text-script-interface))))))
881 (annotation-balloon . #f)
882 (annotation-line . #t)
883 (break-visibility . ,inherit-y-parent-visibility)
884 (footnote-text . ,(grob::calc-property-by-copy 'footnote-text))
885 (stencil . ,ly:balloon-interface::print)
886 (text . ,(grob::calc-property-by-copy 'text))
888 (X-offset . ,(grob::calc-property-by-copy 'X-offset))
889 (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
890 (meta . ((class . Item)
891 (interfaces . (balloon-interface
898 (annotation-balloon . #f)
899 (annotation-line . #t)
900 (footnote-text . ,(grob::calc-property-by-copy 'footnote-text))
901 (spanner-placement . ,LEFT)
902 (stencil . ,ly:balloon-interface::print-spanner)
903 (text . ,(grob::calc-property-by-copy 'text))
905 (X-offset . ,(grob::calc-property-by-copy 'X-offset))
906 (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
907 (meta . ((class . Spanner)
908 (interfaces . (balloon-interface
910 footnote-spanner-interface
916 (after-line-breaking . ,ly:chord-name::after-line-breaking)
917 (fret-diagram-details . ((finger-code . below-string)))
918 (stencil . ,fret-board::calc-stencil)
919 (extra-spacing-height . (0.2 . -0.2))
920 (meta . ((class . Item)
921 (interfaces . (chord-name-interface
923 fret-diagram-interface
924 rhythmic-grob-interface))))))
929 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
930 (bound-details . ((right . ((attach-dir . ,CENTER)
933 (left . ((attach-dir . ,CENTER)
938 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
939 (normalized-endpoints . ,ly:spanner::calc-normalized-endpoints)
940 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
942 (stencil . ,ly:line-spanner::print)
946 (zigzag-width . 0.75)
947 (meta . ((class . Spanner)
948 (interfaces . (glissando-interface
950 line-spanner-interface
951 unbreakable-spanner-interface))))))
955 (common-shortest-duration . ,grace-spacing::calc-shortest-duration)
956 (shortest-duration-space . 1.6)
957 (spacing-increment . 0.8)
958 (meta . ((class . Spanner)
959 (interfaces . (grace-spacing-interface
960 spacing-options-interface
961 spanner-interface))))))
966 (self-alignment-X . ,CENTER)
967 (stencil . ,ly:grid-line-interface::print)
968 (X-extent . ,ly:grid-line-interface::width)
969 (X-offset . ,(ly:make-simple-closure
971 ,(ly:make-simple-closure
972 (list ly:self-alignment-interface::centered-on-x-parent))
973 ,(ly:make-simple-closure
974 (list ly:self-alignment-interface::x-aligned-on-self)))))
975 (meta . ((class . Item)
976 (interfaces . (grid-line-interface
977 self-alignment-interface))))))
983 (meta . ((class . Item)
984 (interfaces . (grid-point-interface))))))
989 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
990 (bound-padding . 1.0)
992 (grow-direction . ,hairpin::calc-grow-direction)
994 (minimum-length . 2.0)
995 (self-alignment-Y . ,CENTER)
996 (springs-and-rods . ,ly:spanner::set-spacing-rods)
997 (stencil . ,ly:hairpin::print)
1000 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
1001 (meta . ((class . Spanner)
1002 (interfaces . (dynamic-interface
1005 self-alignment-interface
1006 spanner-interface))))))
1010 (bracket-flare . (0.5 . 0.5))
1011 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
1015 (staff-padding . 0.2)
1016 (stencil . ,ly:horizontal-bracket::print)
1018 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1019 (meta . ((class . Spanner)
1020 (interfaces . (horizontal-bracket-interface
1022 side-position-interface
1023 spanner-interface))))))
1030 (self-alignment-X . ,CENTER)
1031 (self-alignment-Y . ,CENTER)
1032 (stencil . ,system-start-text::print)
1033 (X-offset . ,system-start-text::calc-x-offset)
1034 (Y-offset . ,system-start-text::calc-y-offset)
1035 (meta . ((class . Spanner)
1036 (interfaces . (font-interface
1037 self-alignment-interface
1038 side-position-interface
1039 system-start-text-interface))))))
1044 (extra-spacing-width . (+inf.0 . -inf.0))
1045 (outside-staff-priority . 500)
1047 (self-alignment-X . ,LEFT)
1049 (staff-padding . 0.5)
1050 (stencil . ,ly:text-interface::print)
1051 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1052 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1053 (meta . ((class . Item)
1054 (interfaces . (font-interface
1055 self-alignment-interface
1056 side-position-interface
1057 text-interface))))))
1062 (break-align-symbol . key-cancellation)
1063 (break-visibility . ,begin-of-line-invisible)
1064 (glyph-name-alist . ,cancellation-glyph-name-alist)
1067 (time-signature . (extra-space . 1.25))
1068 (staff-bar . (extra-space . 0.6))
1069 (key-signature . (extra-space . 0.5))
1070 (cue-clef . (extra-space . 0.5))
1071 (right-edge . (extra-space . 0.5))
1072 (first-note . (fixed-space . 2.5))))
1073 (stencil . ,ly:key-signature-interface::print)
1074 (extra-spacing-width . (0.0 . 0.5))
1075 (Y-offset . ,ly:staff-symbol-referencer::callback)
1076 (meta . ((class . Item)
1077 (interfaces . (break-aligned-interface
1079 key-cancellation-interface
1080 key-signature-interface
1081 staff-symbol-referencer-interface))))))
1085 (avoid-slur . inside)
1086 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1087 (break-align-symbol . key-signature)
1088 (break-visibility . ,begin-of-line-visible)
1089 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
1092 (time-signature . (extra-space . 1.15))
1093 (staff-bar . (extra-space . 1.1))
1094 (cue-clef . (extra-space . 0.5))
1095 (right-edge . (extra-space . 0.5))
1096 (first-note . (fixed-space . 2.5))))
1097 (stencil . ,ly:key-signature-interface::print)
1098 (extra-spacing-width . (0.0 . 0.5))
1099 (Y-offset . ,ly:staff-symbol-referencer::callback)
1100 (meta . ((class . Item)
1101 (interfaces . (break-aligned-interface
1103 key-signature-interface
1104 staff-symbol-referencer-interface))))))
1109 (control-points . ,ly:semi-tie::calc-control-points)
1110 (details . ((ratio . 0.333)
1111 (height-limit . 1.0)))
1112 (direction . ,ly:tie::calc-direction)
1113 (head-direction . ,LEFT)
1114 (stencil . ,laissez-vibrer::print)
1116 (extra-spacing-height . (-0.5 . 0.5))
1117 (meta . ((class . Item)
1118 (interfaces . (semi-tie-interface))))))
1120 (LaissezVibrerTieColumn
1122 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1123 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1126 (meta . ((class . Item)
1127 (interfaces . (semi-tie-column-interface))))))
1132 (length-fraction . 0.25)
1133 (minimum-length-fraction . 0.25)
1134 (springs-and-rods . ,ly:ledger-line-spanner::set-spacing-rods)
1135 (stencil . ,ly:ledger-line-spanner::print)
1138 (meta . ((class . Spanner)
1139 (interfaces . (ledger-line-spanner-interface))))))
1143 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1144 (break-align-symbol . left-edge)
1145 (break-visibility . ,center-invisible)
1147 (extra-spacing-height . (+inf.0 . -inf.0))
1149 (ambitus . (extra-space . 2.0))
1150 (breathing-sign . (minimum-space . 0.0))
1151 (cue-end-clef . (extra-space . 0.8))
1152 (clef . (extra-space . 0.8))
1153 (cue-clef . (extra-space . 0.8))
1154 (staff-bar . (extra-space . 0.0))
1155 (key-cancellation . (extra-space . 0.0))
1156 (key-signature . (extra-space . 0.8))
1157 (time-signature . (extra-space . 1.0))
1158 (custos . (extra-space . 0.0))
1159 (first-note . (fixed-space . 2.0))
1160 (right-edge . (extra-space . 0.0))
1162 (X-extent . (0 . 0))
1163 (meta . ((class . Item)
1164 (interfaces . (break-aligned-interface))))))
1168 ;; ugh. A ligature bracket is totally different from
1169 ;; a tuplet bracket.
1171 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
1172 (control-points . ,ly:tuplet-bracket::calc-control-points)
1174 (edge-height . (0.7 . 0.7))
1176 (positions . ,ly:tuplet-bracket::calc-positions)
1177 (shorten-pair . (-0.2 . -0.2))
1178 (staff-padding . 0.25)
1179 (stencil . ,ly:tuplet-bracket::print)
1181 (meta . ((class . Spanner)
1182 (interfaces . (line-interface
1183 tuplet-bracket-interface))))))
1187 (minimum-length . 1.5)
1188 (stencil . ,ly:lyric-extender::print)
1189 (thickness . 0.8) ; line-thickness
1190 (Y-extent . (0 . 0))
1191 (meta . ((class . Spanner)
1192 (interfaces . (lyric-extender-interface
1193 lyric-interface))))))
1197 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
1198 (dash-period . 10.0)
1201 (minimum-distance . 0.1)
1202 (minimum-length . 0.3)
1204 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1205 (stencil . ,ly:lyric-hyphen::print)
1207 (Y-extent . (0 . 0))
1208 (meta . ((class . Spanner)
1209 (interfaces . (font-interface
1210 lyric-hyphen-interface
1212 spanner-interface))))))
1216 (minimum-distance . 0.45)
1218 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1221 (meta . ((class . Spanner)
1222 (interfaces . (lyric-hyphen-interface
1223 spanner-interface))))))
1227 (extra-spacing-width . (0.0 . 0.0))
1228 ;; Recede in height for purposes of note spacing,
1229 ;; so notes in melismata can be freely spaced above lyrics
1230 (extra-spacing-height . (0.2 . -0.2))
1231 (font-series . medium)
1233 (self-alignment-X . ,CENTER)
1234 (stencil . ,lyric-text::print)
1235 (text . ,(grob::calc-property-by-copy 'text))
1237 (X-offset . ,ly:self-alignment-interface::aligned-on-x-parent)
1238 (meta . ((class . Item)
1239 (interfaces . (font-interface
1240 lyric-syllable-interface
1241 rhythmic-grob-interface
1242 self-alignment-interface
1243 text-interface))))))
1253 (stencil . ,ly:measure-grouping::print)
1255 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1256 (meta . ((class . Spanner)
1257 (interfaces . (measure-grouping-interface
1258 side-position-interface))))))
1262 (neutral-direction . ,DOWN)
1263 (meta . ((class . Item)
1264 (interfaces . (melody-spanner-interface))))))
1268 (stencil . ,ly:mensural-ligature::print)
1270 (meta . ((class . Spanner)
1271 (interfaces . (font-interface
1272 mensural-ligature-interface))))))
1276 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1277 (break-visibility . ,end-of-line-invisible)
1279 (extra-spacing-width . (+inf.0 . -inf.0))
1280 (outside-staff-priority . 1000)
1283 (stencil . ,ly:text-interface::print)
1284 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1285 (X-offset . ,(ly:make-simple-closure
1287 ,(ly:make-simple-closure
1288 (list ly:break-alignable-interface::self-align-callback))
1289 ,(ly:make-simple-closure
1290 (list ly:self-alignment-interface::x-aligned-on-self)))))
1291 (self-alignment-X . ,LEFT)
1292 (break-align-symbols . (time-signature))
1293 (non-break-align-symbols . (multi-measure-rest-interface))
1294 (meta . ((class . Item)
1295 (interfaces . (break-alignable-interface
1297 metronome-mark-interface
1298 self-alignment-interface
1299 side-position-interface
1300 text-interface))))))
1305 (hair-thickness . 2.0)
1307 (spacing-pair . (break-alignment . break-alignment))
1308 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1309 (staff-position . 0)
1310 (stencil . ,ly:multi-measure-rest::print)
1311 (thick-thickness . 6.6)
1312 ;; See Wanske pp. 125
1313 (usable-duration-logs . (0 -1 -2 -3))
1314 (Y-offset . ,ly:staff-symbol-referencer::callback)
1315 (meta . ((class . Spanner)
1316 (interfaces . (font-interface
1317 multi-measure-interface
1318 multi-measure-rest-interface
1320 staff-symbol-referencer-interface))))))
1322 (MultiMeasureRestNumber
1324 (bound-padding . 2.0)
1326 (font-encoding . fetaText)
1328 (self-alignment-X . ,CENTER)
1330 (springs-and-rods . ,ly:multi-measure-rest::set-text-rods)
1331 (staff-padding . 0.4)
1332 (stencil . ,ly:text-interface::print)
1333 (X-offset . ,(ly:make-simple-closure
1335 ,(ly:make-simple-closure
1336 (list ly:self-alignment-interface::x-aligned-on-self))
1337 ,(ly:make-simple-closure
1338 (list ly:self-alignment-interface::x-centered-on-y-parent)))))
1339 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1340 (meta . ((class . Spanner)
1341 (interfaces . (font-interface
1342 multi-measure-interface
1343 self-alignment-interface
1344 side-position-interface
1345 text-interface))))))
1347 (MultiMeasureRestText
1350 (outside-staff-priority . 450)
1352 (self-alignment-X . ,CENTER)
1353 (staff-padding . 0.25)
1354 (stencil . ,ly:text-interface::print)
1355 (X-offset . ,(ly:make-simple-closure
1357 ,(ly:make-simple-closure
1358 (list ly:self-alignment-interface::x-centered-on-y-parent))
1359 ,(ly:make-simple-closure
1360 (list ly:self-alignment-interface::x-aligned-on-self)))))
1361 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1362 (meta . ((class . Spanner)
1363 (interfaces . (font-interface
1364 multi-measure-interface
1365 self-alignment-interface
1366 side-position-interface
1367 text-interface))))))
1370 (NonMusicalPaperColumn
1372 (allow-loose-spacing . #t)
1374 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1375 (full-measure-extra-space . 1.0)
1376 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1377 ;; sufficient padding to prevent ledger lines from moving over/under
1378 (skyline-vertical-padding . 0.6)
1379 ;; (stencil . ,ly:paper-column::print)
1381 (keep-inside-line . #t)
1382 (line-break-permission . allow)
1384 (page-break-permission . allow)
1386 ;; debugging stuff: print column number.
1387 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1389 (X-extent . ,ly:axis-group-interface::width)
1390 (meta . ((class . Paper_column)
1391 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1392 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1393 (interfaces . (axis-group-interface
1395 paper-column-interface
1396 separation-item-interface
1397 spaceable-grob-interface))))))
1402 (positioning-done . ,ly:note-collision-interface::calc-positioning-done)
1403 (prefer-dotted-right . #t)
1404 (X-extent . ,ly:axis-group-interface::width)
1405 (Y-extent . ,ly:axis-group-interface::height)
1406 (meta . ((class . Item)
1407 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1408 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1409 (interfaces . (axis-group-interface
1410 note-collision-interface))))))
1415 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1416 (skyline-vertical-padding . 0.15)
1417 (X-extent . ,ly:axis-group-interface::width)
1418 (Y-extent . ,ly:axis-group-interface::height)
1419 (meta . ((class . Item)
1420 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1421 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1422 (interfaces . (axis-group-interface
1423 note-column-interface
1424 separation-item-interface))))))
1429 (duration-log . ,note-head::calc-duration-log)
1430 (extra-spacing-height . ,ly:note-head::include-ledger-line-height)
1431 (glyph-name . ,note-head::calc-glyph-name)
1432 (ligature-flexa . #f)
1433 (stem-attachment . ,ly:note-head::calc-stem-attachment)
1434 (stencil . ,ly:note-head::print)
1435 (X-offset . ,ly:note-head::stem-x-shift)
1436 (Y-offset . ,ly:staff-symbol-referencer::callback)
1437 (meta . ((class . Item)
1438 (interfaces . (font-interface
1439 gregorian-ligature-interface
1441 ligature-head-interface
1442 mensural-ligature-interface
1444 rhythmic-grob-interface
1445 rhythmic-head-interface
1446 staff-symbol-referencer-interface
1447 vaticana-ligature-interface))))))
1451 (stencil . ,ly:text-interface::print)
1452 (meta . ((class . Item)
1453 (interfaces . (font-interface
1455 text-interface))))))
1459 ;; Changed this from 0.75.
1460 ;; If you ever change this back, please document! --hwn
1461 (knee-spacing-correction . 1.0)
1462 (same-direction-correction . 0.25)
1463 (space-to-barline . #t)
1464 (stem-spacing-correction . 0.5)
1465 (meta . ((class . Item)
1466 (interfaces . (note-spacing-interface
1467 spacing-interface))))))
1472 (break-visibility . ,inherit-x-parent-visibility)
1473 (font-shape . italic)
1475 (self-alignment-X . ,CENTER)
1476 (staff-padding . 0.2)
1477 (stencil . ,ly:text-interface::print)
1478 (X-offset . ,(ly:make-simple-closure
1480 ,(ly:make-simple-closure
1481 (list ly:self-alignment-interface::x-aligned-on-self))
1482 ,(ly:make-simple-closure
1483 (list ly:self-alignment-interface::centered-on-x-parent)))))
1484 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1485 (meta . ((class . Item)
1486 (interfaces . (font-interface
1487 self-alignment-interface
1488 side-position-interface
1489 text-interface))))))
1493 (dash-fraction . 0.3)
1495 (edge-height . (0 . 1.2))
1496 (font-shape . italic)
1497 (minimum-length . 1.0)
1498 (outside-staff-priority . 400)
1500 (shorten-pair . (0.0 . -0.6))
1501 (staff-padding . 1.0)
1502 (stencil . ,ly:ottava-bracket::print)
1503 (style . dashed-line)
1504 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1505 (meta . ((class . Spanner)
1506 (interfaces . (font-interface
1507 horizontal-bracket-interface
1509 ottava-bracket-interface
1510 side-position-interface
1511 text-interface))))))
1516 (allow-loose-spacing . #t)
1518 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1519 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1520 (keep-inside-line . #t)
1521 ;; (stencil . ,ly:paper-column::print)
1522 (X-extent . ,ly:axis-group-interface::width)
1525 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1526 (meta . ((class . Paper_column)
1527 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1528 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1529 (interfaces . (axis-group-interface
1531 paper-column-interface
1532 separation-item-interface
1533 spaceable-grob-interface))))))
1539 (stencil . ,parentheses-item::print)
1540 (stencils . ,parentheses-item::calc-parenthesis-stencils)
1541 (meta . ((class . Item)
1542 (interfaces . (font-interface
1543 parentheses-interface))))))
1547 (dot-negative-kern . 0.75)
1548 (font-encoding . fetaMusic)
1550 (spacing-pair . (break-alignment . staff-bar))
1551 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1552 (stencil . ,ly:multi-measure-rest::percent)
1554 (meta . ((class . Spanner)
1555 (interfaces . (font-interface
1556 multi-measure-rest-interface
1557 percent-repeat-interface))))))
1559 (PercentRepeatCounter
1562 (font-encoding . fetaText)
1565 (self-alignment-X . ,CENTER)
1566 (staff-padding . 0.25)
1567 (stencil . ,ly:text-interface::print)
1568 (X-offset . ,(ly:make-simple-closure
1570 ,(ly:make-simple-closure
1571 (list ly:self-alignment-interface::x-centered-on-y-parent))
1572 ,(ly:make-simple-closure
1573 (list ly:self-alignment-interface::x-aligned-on-self)))))
1574 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1575 (meta . ((class . Spanner)
1576 (interfaces . (font-interface
1577 percent-repeat-interface
1578 self-alignment-interface
1579 side-position-interface
1580 text-interface))))))
1584 (control-points . ,ly:slur::calc-control-points)
1585 (cross-staff . ,ly:slur::calc-cross-staff)
1586 (details . ,default-slur-details)
1587 (direction . ,ly:slur::calc-direction)
1588 (height-limit . 2.0)
1589 (minimum-length . 1.5)
1592 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1593 (stencil . ,ly:slur::print)
1595 (Y-extent . ,ly:slur::height)
1596 (meta . ((class . Spanner)
1597 (interfaces . (slur-interface))))))
1599 ;; an example of a text spanner
1602 (bound-padding . 1.0)
1603 (bracket-flare . (0.5 . 0.5))
1605 (edge-height . (1.0 . 1.0))
1606 (shorten-pair . (0.0 . 0.0))
1607 (stencil . ,ly:piano-pedal-bracket::print)
1610 (meta . ((class . Spanner)
1611 (interfaces . (line-interface
1612 piano-pedal-bracket-interface
1613 piano-pedal-interface))))))
1618 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1620 (break-align-symbols . (staff-bar clef))
1621 (break-visibility . ,end-of-line-invisible)
1623 (extra-spacing-width . (+inf.0 . -inf.0))
1626 (outside-staff-priority . 1500)
1628 (self-alignment-X . ,CENTER)
1629 (stencil . ,ly:text-interface::print)
1630 (X-offset . ,(ly:make-simple-closure
1632 ,(ly:make-simple-closure
1633 (list ly:break-alignable-interface::self-align-callback))
1634 ,(ly:make-simple-closure
1635 (list ly:self-alignment-interface::x-aligned-on-self)))))
1636 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1637 (meta . ((class . Item)
1638 (interfaces . (break-alignable-interface
1641 self-alignment-interface
1642 side-position-interface
1643 text-interface))))))
1647 (slash-negative-kern . 0.85)
1649 (stencil . ,ly:percent-repeat-item-interface::beat-slash)
1651 (meta . ((class . Item)
1652 (interfaces . (percent-repeat-interface
1653 percent-repeat-item-interface
1654 rhythmic-grob-interface))))))
1658 (control-points . ,ly:semi-tie::calc-control-points)
1659 (details . ((ratio . 0.333)
1660 (height-limit . 1.0)))
1661 (direction . ,ly:tie::calc-direction)
1662 (head-direction . ,RIGHT)
1663 (stencil . ,ly:tie::print)
1665 (extra-spacing-height . (-0.5 . 0.5))
1666 (meta . ((class . Item)
1667 (interfaces . (semi-tie-interface))))))
1671 (direction . ,ly:tie::calc-direction)
1672 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1673 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1676 (meta . ((class . Item)
1677 (interfaces . (semi-tie-column-interface))))))
1681 (cross-staff . ,ly:rest::calc-cross-staff)
1682 (duration-log . ,stem::calc-duration-log)
1683 (minimum-distance . 0.25)
1684 (stencil . ,ly:rest::print)
1685 (X-extent . ,ly:rest::width)
1686 (Y-extent . ,ly:rest::height)
1687 (Y-offset . ,ly:rest::y-offset-callback)
1688 (meta . ((class . Item)
1689 (interfaces . (font-interface
1691 rhythmic-grob-interface
1692 rhythmic-head-interface
1693 staff-symbol-referencer-interface))))))
1697 (minimum-distance . 0.75)
1698 (positioning-done . ,ly:rest-collision::calc-positioning-done)
1699 (meta . ((class . Item)
1700 (interfaces . (rest-collision-interface))))))
1705 (add-stem-support . #t)
1706 (cross-staff . ,ly:script-interface::calc-cross-staff)
1707 (direction . ,ly:script-interface::calc-direction)
1708 (font-encoding . fetaMusic)
1709 (positioning-done . ,ly:script-interface::calc-positioning-done)
1712 ;; padding set in script definitions.
1713 (staff-padding . 0.25)
1715 (stencil . ,ly:script-interface::print)
1716 (X-offset . ,script-interface::calc-x-offset)
1717 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1718 (meta . ((class . Item)
1719 (interfaces . (font-interface
1721 side-position-interface))))))
1725 (before-line-breaking . ,ly:script-column::before-line-breaking)
1726 (meta . ((class . Item)
1727 (interfaces . (script-column-interface))))))
1731 (before-line-breaking . ,ly:script-column::row-before-line-breaking)
1732 (meta . ((class . Item)
1733 (interfaces . (script-column-interface))))))
1737 (avoid-slur . inside)
1738 (control-points . ,ly:slur::calc-control-points)
1739 (cross-staff . ,ly:slur::calc-cross-staff)
1740 (details . ,default-slur-details)
1741 (direction . ,ly:slur::calc-direction)
1742 (height-limit . 2.0)
1743 (line-thickness . 0.8)
1744 (minimum-length . 1.5)
1747 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1748 (stencil . ,ly:slur::print)
1750 (Y-extent . ,ly:slur::height)
1751 (meta . ((class . Spanner)
1752 (interfaces . (slur-interface))))))
1756 (direction . ,RIGHT)
1757 (extra-spacing-width . (+inf.0 . -inf.0))
1758 (font-shape . italic)
1759 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
1760 (self-alignment-X . ,CENTER)
1761 (stencil . ,ly:text-interface::print)
1762 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1763 (meta . ((class . Item)
1764 (interfaces . (font-interface
1765 piano-pedal-script-interface
1766 self-alignment-interface
1767 text-interface))))))
1769 (SostenutoPedalLineSpanner
1773 (minimum-space . 1.0)
1774 (outside-staff-priority . 1000)
1777 (staff-padding . 1.0)
1778 (X-extent . ,ly:axis-group-interface::width)
1779 (Y-extent . ,ly:axis-group-interface::height)
1780 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1781 (meta . ((class . Spanner)
1782 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1783 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1784 (interfaces . (axis-group-interface
1785 piano-pedal-interface
1786 side-position-interface))))))
1790 (average-spacing-wishes . #t)
1791 (base-shortest-duration . ,(ly:make-moment 3 16))
1792 (common-shortest-duration . ,ly:spacing-spanner::calc-common-shortest-duration)
1793 (shortest-duration-space . 2.0)
1794 (spacing-increment . 1.2)
1795 (springs-and-rods . ,ly:spacing-spanner::set-springs)
1796 (meta . ((class . Spanner)
1797 (interfaces . (spacing-options-interface
1798 spacing-spanner-interface))))))
1802 (allow-span-bar . #t)
1803 (bar-extent . ,ly:axis-group-interface::height)
1804 (before-line-breaking . ,ly:span-bar::before-line-breaking)
1805 (break-align-symbol . staff-bar)
1807 (glyph-name . ,ly:span-bar::calc-glyph-name)
1809 ;; ugh duplication! (these 4 properties were copied from Barline)
1811 ;; Ross. page 151 lists other values, we opt for a leaner look
1815 (hair-thickness . 1.6)
1816 (thick-thickness . 6.0)
1820 (stencil . ,ly:span-bar::print)
1821 (X-extent . ,ly:span-bar::width)
1822 (Y-extent . ,ly:axis-group-interface::height)
1823 (meta . ((class . Item)
1824 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1825 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1826 (interfaces . (bar-line-interface
1828 span-bar-interface))))))
1832 (staff-staff-spacing . ((basic-distance . 9)
1833 (minimum-distance . 7)
1835 (stretchability . 5)))
1836 (staffgroup-staff-spacing . ((basic-distance . 10.5)
1837 (minimum-distance . 8)
1839 (stretchability . 9)))
1840 (meta . ((class . Spanner)
1841 (interfaces . (staff-grouper-interface))))))
1846 (stem-spacing-correction . 0.4)
1847 (meta . ((class . Item)
1848 (interfaces . (spacing-interface
1849 staff-spacing-interface))))))
1854 (ledger-line-thickness . (1.0 . 0.1))
1856 (stencil . ,ly:staff-symbol::print)
1857 (Y-extent . ,ly:staff-symbol::height)
1858 (meta . ((class . Spanner)
1859 (interfaces . (staff-symbol-interface))))))
1864 (font-series . bold)
1867 (stencil . ,ly:text-interface::print)
1868 (X-offset . ,ly:side-position-interface::x-aligned-side)
1869 (meta . ((class . Item)
1870 (interfaces . (font-interface
1871 side-position-interface
1872 stanza-number-interface
1873 text-interface))))))
1877 (beamlet-default-length . (1.1 . 1.1))
1878 (beamlet-max-length-proportion . (0.75 . 0.75))
1879 (cross-staff . ,ly:stem::calc-cross-staff)
1880 (default-direction . ,ly:stem::calc-default-direction)
1883 ;; 3.5 (or 3 measured from note head) is standard length
1884 ;; 32nd, 64th, 128th flagged stems should be longer
1885 (lengths . (3.5 3.5 3.5 4.25 5.0 6.0))
1887 ;; FIXME. 3.5 yields too long beams (according to Ross and
1888 ;; looking at Baerenreiter examples) for a number of common
1889 ;; boundary cases. Subtracting half a beam thickness fixes
1890 ;; this, but the bug may well be somewhere else.
1892 ;; FIXME this should come from 'lengths
1893 (beamed-lengths . (3.26 3.5 3.6))
1895 ;; The 'normal' minima
1896 (beamed-minimum-free-lengths . (1.83 1.5 1.25))
1897 ;(beamed-minimum-free-lengths . (2.0 1.83 1.25))
1899 ;; The 'extreme case' minima
1900 (beamed-extreme-minimum-free-lengths . (2.0 1.25))
1902 ;; Stems in unnatural (forced) direction should be shortened by
1903 ;; one staff space, according to [Roush & Gourlay].
1904 ;; Flagged stems we shorten only half a staff space.
1905 (stem-shorten . (1.0 0.5))
1909 ;; We use the normal minima as minimum for the ideal lengths,
1910 ;; and the extreme minima as abolute minimum length.
1912 (direction . ,ly:stem::calc-direction)
1913 (duration-log . ,stem::calc-duration-log)
1914 (flag . ,ly:stem::calc-flag)
1915 (length . ,ly:stem::calc-length)
1916 (neutral-direction . ,DOWN)
1917 (positioning-done . ,ly:stem::calc-positioning-done)
1918 (stem-begin-position . ,ly:stem::calc-stem-begin-position)
1919 (stem-end-position . ,ly:stem::calc-stem-end-position)
1920 (stem-info . ,ly:stem::calc-stem-info)
1921 (stencil . ,ly:stem::print)
1923 (X-extent . ,ly:stem::width)
1924 (X-offset . ,ly:stem::offset-callback)
1925 (Y-extent . ,ly:stem::height)
1926 (Y-offset . ,ly:staff-symbol-referencer::callback)
1927 (meta . ((class . Item)
1928 (interfaces . (font-interface
1929 stem-interface))))))
1933 (beam-thickness . 0.48) ; staff-space
1934 (beam-width . ,ly:stem-tremolo::calc-width) ; staff-space
1935 (slope . ,ly:stem-tremolo::calc-slope)
1936 (stencil . ,ly:stem-tremolo::print)
1937 (style . ,ly:stem-tremolo::calc-style)
1938 (X-extent . ,ly:stem-tremolo::width)
1939 (meta . ((class . Item)
1940 (interfaces . (stem-tremolo-interface))))))
1944 (avoid-slur . around)
1945 (font-encoding . fetaText)
1946 (font-size . -5) ; don't overlap when next to heads.
1948 (script-priority . 100)
1949 (self-alignment-X . ,CENTER)
1950 (self-alignment-Y . ,CENTER)
1951 (staff-padding . 0.5)
1952 (stencil . ,print-circled-text-callback)
1953 (text . ,string-number::calc-text)
1954 (meta . ((class . Item)
1955 (interfaces . (font-interface
1956 self-alignment-interface
1957 side-position-interface
1958 string-number-interface
1960 text-script-interface))))))
1964 (digit-names . #("p" "i" "m" "a" "x"))
1965 (font-shape . italic)
1966 (font-size . -4) ; don't overlap when next to heads.
1968 (script-priority . 100)
1969 (self-alignment-X . ,CENTER)
1970 (self-alignment-Y . ,CENTER)
1971 (staff-padding . 0.5)
1972 (stencil . ,ly:text-interface::print)
1973 (text . ,stroke-finger::calc-text)
1974 (meta . ((class . Item)
1975 (interfaces . (font-interface
1976 self-alignment-interface
1977 side-position-interface
1978 stroke-finger-interface
1980 text-script-interface))))))
1984 (direction . ,RIGHT)
1985 (extra-spacing-width . (+inf.0 . -inf.0))
1986 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
1987 (self-alignment-X . ,CENTER)
1988 (stencil . ,ly:sustain-pedal::print)
1989 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1990 (meta . ((class . Item)
1991 (interfaces . (font-interface
1992 piano-pedal-interface
1993 piano-pedal-script-interface
1994 self-alignment-interface
1995 text-interface))))))
1997 (SustainPedalLineSpanner
2001 (minimum-space . 1.0)
2002 (outside-staff-priority . 1000)
2005 (staff-padding . 1.2)
2006 (X-extent . ,ly:axis-group-interface::width)
2007 (Y-extent . ,ly:axis-group-interface::height)
2008 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2009 (meta . ((class . Spanner)
2010 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2011 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2012 (interfaces . (axis-group-interface
2013 piano-pedal-interface
2014 side-position-interface))))))
2018 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2020 (skyline-horizontal-padding . 0.5)
2021 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
2022 (X-extent . ,ly:axis-group-interface::width)
2023 (Y-extent . ,ly:system::height)
2024 (meta . ((class . System)
2025 (object-callbacks . ((pure-relevant-grobs . ,ly:system::calc-pure-relevant-grobs)
2026 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)))
2027 (interfaces . (axis-group-interface
2028 system-interface))))))
2032 (collapse-height . 5.0)
2036 (padding . -0.1) ;; bar must cover rounded ending of staff line.
2037 (stencil . ,ly:system-start-delimiter::print)
2040 (X-offset . ,ly:side-position-interface::x-aligned-side)
2042 (meta . ((class . Spanner)
2043 (interfaces . (side-position-interface
2044 system-start-delimiter-interface))))))
2048 (collapse-height . 5.0)
2050 (font-encoding . fetaBraces)
2052 (stencil . ,ly:system-start-delimiter::print)
2054 (X-offset . ,ly:side-position-interface::x-aligned-side)
2056 (meta . ((class . Spanner)
2057 (interfaces . (font-interface
2058 side-position-interface
2059 system-start-delimiter-interface))))))
2063 (collapse-height . 5.0)
2066 (stencil . ,ly:system-start-delimiter::print)
2069 (X-offset . ,ly:side-position-interface::x-aligned-side)
2071 (meta . ((class . Spanner)
2072 (interfaces . (font-interface
2073 side-position-interface
2074 system-start-delimiter-interface))))))
2079 (stencil . ,ly:system-start-delimiter::print)
2080 (style . line-bracket)
2082 (X-offset . ,ly:side-position-interface::x-aligned-side)
2084 (meta . ((class . Spanner)
2085 (interfaces . (font-interface
2086 side-position-interface
2087 system-start-delimiter-interface))))))
2092 (details . ((cautionary-properties . ((angularity . 0.4)
2093 (half-thickness . 0.075)
2095 (procedure . ,parenthesize-stencil)
2098 (harmonic-properties . ((angularity . 2)
2099 (half-thickness . 0.075)
2101 (procedure . ,parenthesize-stencil)
2103 (repeat-tied-properties . ((note-head-visible . #t)
2104 (parenthesize . #t)))
2105 (tied-properties . ((break-visibility . ,begin-of-line-visible)
2106 (parenthesize . #t)))))
2108 (direction . ,CENTER)
2109 (duration-log . ,note-head::calc-duration-log)
2110 (font-series . bold)
2112 (stem-attachment . (0.0 . 1.35))
2113 (stencil . ,tab-note-head::print)
2115 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2116 (Y-offset . ,ly:staff-symbol-referencer::callback)
2117 (meta . ((class . Item)
2118 (interfaces . (font-interface
2120 rhythmic-grob-interface
2121 rhythmic-head-interface
2122 staff-symbol-referencer-interface
2123 tab-note-head-interface
2124 text-interface))))))
2128 (avoid-slur . around)
2129 (cross-staff . ,ly:script-interface::calc-cross-staff)
2131 (extra-spacing-width . (+inf.0 . -inf.0))
2132 (outside-staff-priority . 450)
2134 ;; sync with Fingering ?
2137 (script-priority . 200)
2139 (slur-padding . 0.5)
2140 (staff-padding . 0.5)
2141 (stencil . ,ly:text-interface::print)
2142 ;; todo: add X self alignment?
2143 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2144 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2145 (meta . ((class . Item)
2146 (interfaces . (font-interface
2147 instrument-specific-markup-interface
2148 self-alignment-interface
2149 side-position-interface
2151 text-script-interface))))))
2155 (bound-details . ((left . ((Y . 0)
2157 (attach-dir . ,LEFT)
2159 (left-broken . ((end-on-note . #t)))
2164 (dash-fraction . 0.2)
2167 (font-shape . italic)
2168 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2169 (outside-staff-priority . 350)
2170 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2172 (staff-padding . 0.8)
2173 (stencil . ,ly:line-spanner::print)
2174 (style . dashed-line)
2175 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2177 (meta . ((class . Spanner)
2178 (interfaces . (font-interface
2180 line-spanner-interface
2181 side-position-interface))))))
2185 (avoid-slur . inside)
2186 (control-points . ,ly:tie::calc-control-points)
2188 ;; for a full list, see tie-details.cc
2190 (center-staff-line-clearance . 0.6)
2191 (tip-staff-line-clearance . 0.45)
2192 (note-head-gap . 0.2)
2194 (height-limit . 1.0)
2195 (horizontal-distance-penalty-factor . 10)
2196 (same-dir-as-stem-penalty . 8)
2197 (min-length-penalty-factor . 26)
2198 (tie-tie-collision-distance . 0.45)
2199 (tie-tie-collision-penalty . 25.0)
2200 (intra-space-threshold . 1.25)
2201 (outer-tie-vertical-distance-symmetry-penalty-factor . 10)
2202 (outer-tie-length-symmetry-penalty-factor . 10)
2203 (vertical-distance-penalty-factor . 7)
2204 (outer-tie-vertical-gap . 0.25)
2205 (multi-tie-region-size . 3)
2206 (single-tie-region-size . 4)
2207 (between-length-limit . 1.0)))
2209 (direction . ,ly:tie::calc-direction)
2211 (line-thickness . 0.8)
2212 (neutral-direction . ,UP)
2213 (springs-and-rods . ,ly:spanner::set-spacing-rods)
2214 (stencil . ,ly:tie::print)
2216 (meta . ((class . Spanner)
2217 (interfaces . (tie-interface))))))
2221 (before-line-breaking . ,ly:tie-column::before-line-breaking)
2222 (positioning-done . ,ly:tie-column::calc-positioning-done)
2225 (meta . ((class . Spanner)
2226 (interfaces . (tie-column-interface))))))
2230 (avoid-slur . inside)
2232 . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
2233 (break-align-symbol . time-signature)
2234 (break-align-anchor-alignment . ,LEFT)
2235 (break-visibility . ,all-visible)
2236 (extra-spacing-height . (-1.0 . 1.0))
2239 (cue-clef . (extra-space . 1.5))
2240 (first-note . (fixed-space . 2.0))
2241 (right-edge . (extra-space . 0.5))
2242 (staff-bar . (minimum-space . 2.0))))
2243 (stencil . ,ly:time-signature::print)
2245 (meta . ((class . Item)
2246 (interfaces . (break-aligned-interface
2248 time-signature-interface))))))
2250 (TrillPitchAccidental
2254 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
2257 (stencil . ,ly:accidental-interface::print)
2258 (X-offset . ,ly:side-position-interface::x-aligned-side)
2259 (Y-extent . ,ly:accidental-interface::height)
2260 (meta . ((class . Item)
2261 (interfaces . (accidental-interface
2263 inline-accidental-interface
2264 side-position-interface
2265 trill-pitch-accidental-interface))))))
2270 (direction . ,RIGHT)
2274 (stencil . ,parenthesize-elements)
2275 (stencils . ,parentheses-item::calc-parenthesis-stencils)
2276 (X-offset . ,ly:side-position-interface::x-aligned-side)
2277 (meta . ((class . Item)
2278 (interfaces . (axis-group-interface
2281 parentheses-interface
2282 side-position-interface))))))
2288 (stencil . ,ly:note-head::print)
2289 (Y-offset . ,ly:staff-symbol-referencer::callback)
2290 (meta . ((class . Item)
2291 (interfaces . (font-interface
2293 pitched-trill-interface
2294 rhythmic-head-interface
2295 staff-symbol-referencer-interface))))))
2299 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2300 (bound-details . ((left . ((text . ,(make-musicglyph-markup "scripts.trill"))
2302 (stencil-offset . (-0.5 . -1))
2304 (attach-dir . ,CENTER)
2306 (left-broken . ((end-on-note . #t)))
2310 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2311 (outside-staff-priority . 50)
2313 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2315 (staff-padding . 1.0)
2316 (stencil . ,ly:line-spanner::print)
2318 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2319 (meta . ((class . Spanner)
2320 (interfaces . (font-interface
2322 line-spanner-interface
2323 side-position-interface
2324 trill-spanner-interface))))))
2328 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
2329 (control-points . ,ly:tuplet-bracket::calc-control-points)
2330 (cross-staff . ,ly:tuplet-bracket::calc-cross-staff)
2331 (direction . ,ly:tuplet-bracket::calc-direction)
2332 (edge-height . (0.7 . 0.7))
2333 (full-length-to-extent . #t)
2335 (positions . ,ly:tuplet-bracket::calc-positions)
2336 (shorten-pair . (-0.2 . -0.2))
2337 (staff-padding . 0.25)
2338 (stencil . ,ly:tuplet-bracket::print)
2341 (meta . ((class . Spanner)
2342 (interfaces . (line-interface
2343 tuplet-bracket-interface))))))
2347 (avoid-slur . inside)
2348 (cross-staff . ,ly:tuplet-number::calc-cross-staff)
2349 (direction . ,tuplet-number::calc-direction)
2350 (font-shape . italic)
2352 (stencil . ,ly:tuplet-number::print)
2353 (text . ,tuplet-number::calc-denominator-text)
2354 (meta . ((class . Spanner)
2355 (interfaces . (font-interface
2357 tuplet-number-interface))))))
2362 (direction . ,RIGHT)
2363 (extra-spacing-width . (+inf.0 . -inf.0))
2364 (font-shape . italic)
2365 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
2366 (self-alignment-X . ,CENTER)
2367 (stencil . ,ly:text-interface::print)
2368 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2369 (meta . ((class . Item)
2370 (interfaces . (font-interface
2371 piano-pedal-script-interface
2372 self-alignment-interface
2373 text-interface))))))
2375 (UnaCordaPedalLineSpanner
2379 (minimum-space . 1.0)
2380 (outside-staff-priority . 1000)
2383 (staff-padding . 1.2)
2384 (X-extent . ,ly:axis-group-interface::width)
2385 (Y-extent . ,ly:axis-group-interface::height)
2386 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2387 (meta . ((class . Spanner)
2388 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2389 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2390 (interfaces . (axis-group-interface
2391 piano-pedal-interface
2392 side-position-interface))))))
2398 (stencil . ,ly:vaticana-ligature::print)
2400 (meta . ((class . Spanner)
2401 (interfaces . (font-interface
2402 vaticana-ligature-interface))))))
2407 (positioning-done . ,ly:align-interface::align-to-ideal-distances)
2409 (vertical-skylines . ,ly:axis-group-interface::combine-skylines)
2410 (X-extent . ,ly:axis-group-interface::width)
2411 (Y-extent . ,ly:axis-group-interface::height)
2412 (meta . ((class . Spanner)
2413 (object-callbacks . ((Y-common . ,ly:axis-group-interface::calc-y-common)
2414 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)
2415 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)))
2416 (interfaces . (align-interface
2417 axis-group-interface))))))
2421 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2423 (default-staff-staff-spacing . ((basic-distance . 9)
2424 (minimum-distance . 8)
2426 (nonstaff-unrelatedstaff-spacing . ((padding . 0.5)))
2427 (staff-staff-spacing . ,ly:axis-group-interface::calc-staff-staff-spacing)
2428 (stencil . ,ly:axis-group-interface::print)
2429 (vertical-skylines . ,ly:hara-kiri-group-spanner::calc-skylines)
2430 (X-extent . ,ly:axis-group-interface::width)
2431 (Y-extent . ,ly:hara-kiri-group-spanner::y-extent)
2432 (Y-offset . ,ly:hara-kiri-group-spanner::force-hara-kiri-callback)
2433 (meta . ((class . Spanner)
2434 (object-callbacks . (
2435 (X-common . ,ly:axis-group-interface::calc-x-common)
2436 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2437 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2439 (interfaces . (axis-group-interface
2440 hara-kiri-group-spanner-interface))))))
2444 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2445 (bound-details . ((right . ((attach-dir . ,CENTER)
2448 (left . ((attach-dir . ,CENTER)
2453 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2455 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2456 (stencil . ,ly:line-spanner::print)
2460 (meta . ((class . Spanner)
2461 (interfaces . (line-interface
2462 line-spanner-interface))))))
2467 (edge-height . (2.0 . 2.0)) ;; staff-space;
2468 (font-encoding . fetaText)
2470 (stencil . ,ly:volta-bracket-interface::print)
2471 (thickness . 1.6) ;; line-thickness
2473 (meta . ((class . Spanner)
2474 (interfaces . (font-interface
2475 horizontal-bracket-interface
2477 side-position-interface
2479 volta-bracket-interface
2480 volta-interface))))))
2482 (VoltaBracketSpanner
2484 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
2488 (outside-staff-priority . 600)
2491 (X-extent . ,ly:axis-group-interface::width)
2492 (Y-extent . ,ly:axis-group-interface::height)
2493 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2494 (meta . ((class . Spanner)
2495 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2496 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2497 (interfaces . (axis-group-interface
2498 side-position-interface
2499 volta-interface))))))
2503 (define (completize-grob-entry x)
2504 "Transplant assoc key into 'name entry of 'meta of X. Set interfaces for Item, Spanner etc.
2506 ;; (display (car x))
2508 (let* ((name-sym (car x))
2509 (grob-entry (cdr x))
2510 (meta-entry (assoc-get 'meta grob-entry))
2511 (class (assoc-get 'class meta-entry))
2513 (assoc-get 'interfaces meta-entry)))
2517 (set! ifaces-entry (cons 'item-interface ifaces-entry)))
2518 ((eq? 'Spanner class)
2519 (set! ifaces-entry (cons 'spanner-interface ifaces-entry)))
2520 ((eq? 'Paper_column class)
2521 (set! ifaces-entry (cons 'item-interface
2522 (cons 'paper-column-interface ifaces-entry))))
2523 ((eq? 'System class)
2524 (set! ifaces-entry (cons 'system-interface
2525 (cons 'spanner-interface ifaces-entry))))
2527 (ly:warning "Unknown class ~a" class)))
2529 (set! ifaces-entry (uniq-list (sort ifaces-entry symbol<?)))
2530 (set! ifaces-entry (cons 'grob-interface ifaces-entry))
2532 (set! meta-entry (assoc-set! meta-entry 'name name-sym))
2533 (set! meta-entry (assoc-set! meta-entry 'interfaces
2535 (set! grob-entry (assoc-set! grob-entry 'meta meta-entry))
2536 (cons name-sym grob-entry)))
2538 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
2540 ;; (display (map pair? all-grob-descriptions))
2542 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
2545 ;; (display (car x)) (newline)
2547 (set-object-property! (car x) 'translation-type? list?)
2548 (set-object-property! (car x) 'is-grob? #t))
2549 all-grob-descriptions)
2551 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))
2553 (define (volta-bracket-interface::pure-height grob start end)
2554 (let ((edge-height (ly:grob-property grob 'edge-height)))
2555 (if (number-pair? edge-height)
2556 (let ((smaller (min (car edge-height) (cdr edge-height)))
2557 (larger (max (car edge-height) (cdr edge-height))))
2558 (interval-union '(0 . 0) (cons smaller larger)))
2561 (define pure-print-callbacks
2563 fret-board::calc-stencil
2564 note-head::brew-ez-stencil
2565 print-circled-text-callback
2566 laissez-vibrer::print
2569 ly:mensural-ligature::brew-ligature-primitive
2573 ly:key-signature-interface::print
2574 ly:percent-repeat-item-interface::beat-slash
2575 ly:text-interface::print
2576 ly:script-interface::print
2577 ly:sustain-pedal::print))
2579 ;; Sometimes we have grobs with (Y-extent . ,ly:grob::stencil-height)
2580 ;; and the print function is not pure, but there is a easy way to
2581 ;; figure out the Y-extent from the print function.
2582 (define pure-print-to-height-conversions
2584 (,ly:arpeggio::print . ,ly:arpeggio::pure-height)
2585 (,ly:arpeggio::brew-chord-bracket . ,ly:arpeggio::pure-height)
2586 (,ly:arpeggio::brew-chord-slur . ,ly:arpeggio::pure-height)
2587 (,ly:hairpin::print . ,ly:hairpin::pure-height)
2588 (,ly:stem-tremolo::print . ,ly:stem-tremolo::pure-height)
2589 (,ly:volta-bracket-interface::print . ,volta-bracket-interface::pure-height)))
2591 ;; ly:grob::stencil-extent is safe if the print callback is safe too
2592 (define (pure-stencil-height grob start stop)
2593 (let* ((sten (ly:grob-property-data grob 'stencil))
2594 (pure-height-callback (assoc-get sten pure-print-to-height-conversions)))
2597 (memq sten pure-print-callbacks))
2598 (ly:grob::stencil-height grob))
2599 ((procedure? pure-height-callback)
2600 (pure-height-callback grob start stop))
2604 ;; Sometimes, a pure callback will be chained to a non-pure callback via
2605 ;; chain_offset_callback, in which case this provides a default by simply
2606 ;; passing through the value from the pure callback.
2607 (define (pure-chain-offset-callback grob start end prev-offset) prev-offset)
2609 (define pure-conversions-alist
2611 (,ly:accidental-interface::height . ,ly:accidental-interface::pure-height)
2612 (,ly:axis-group-interface::calc-staff-staff-spacing . ,ly:axis-group-interface::calc-pure-staff-staff-spacing)
2613 (,ly:axis-group-interface::height . ,ly:axis-group-interface::pure-height)
2614 (,ly:grob::stencil-height . ,pure-stencil-height)
2615 (,ly:hara-kiri-group-spanner::y-extent . ,ly:hara-kiri-group-spanner::pure-height)
2616 (,ly:rest-collision::force-shift-callback-rest . ,pure-chain-offset-callback)
2617 (,ly:rest::height . ,ly:rest::pure-height)
2618 (,ly:self-alignment-interface::y-aligned-on-self . ,ly:self-alignment-interface::pure-y-aligned-on-self)
2619 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)
2620 (,ly:slur::height . ,ly:slur::pure-height)
2621 (,ly:slur::outside-slur-callback . ,ly:slur::pure-outside-slur-callback)
2622 (,ly:stem::height . ,ly:stem::pure-height)
2623 (,ly:system::height . ,ly:system::calc-pure-height)))
2625 (define pure-functions
2627 parenthesize-elements
2628 laissez-vibrer::print
2629 ly:rest::y-offset-callback
2630 ly:staff-symbol-referencer::callback
2631 ly:staff-symbol::height))
2633 (define-public (pure-relevant? grob)
2634 (let ((extent-callback (ly:grob-property-data grob 'Y-extent)))
2637 (pair? extent-callback)
2638 (memq extent-callback pure-functions)
2640 (pair? (assq extent-callback pure-conversions-alist))
2641 (let ((stencil (ly:grob-property-data grob 'stencil)))
2643 (not (eq? extent-callback ly:grob::stencil-height))
2644 (memq stencil pure-print-callbacks)
2645 (assq stencil pure-print-to-height-conversions)
2646 (ly:stencil? stencil)))))))))
2648 (define-public (call-pure-function unpure args start end)
2649 (if (ly:simple-closure? unpure)
2650 (ly:eval-simple-closure (car args) unpure start end)
2651 (if (not (procedure? unpure))
2653 (if (memq unpure pure-functions)
2655 (let ((pure (assq unpure pure-conversions-alist)))
2659 (list (car args) start end)