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)
941 (stencil . ,ly:line-spanner::print)
945 (zigzag-width . 0.75)
946 (meta . ((class . Spanner)
947 (interfaces . (glissando-interface
949 line-spanner-interface
950 unbreakable-spanner-interface))))))
954 (common-shortest-duration . ,grace-spacing::calc-shortest-duration)
955 (shortest-duration-space . 1.6)
956 (spacing-increment . 0.8)
957 (meta . ((class . Spanner)
958 (interfaces . (grace-spacing-interface
959 spacing-options-interface
960 spanner-interface))))))
965 (self-alignment-X . ,CENTER)
966 (stencil . ,ly:grid-line-interface::print)
967 (X-extent . ,ly:grid-line-interface::width)
968 (X-offset . ,(ly:make-simple-closure
970 ,(ly:make-simple-closure
971 (list ly:self-alignment-interface::centered-on-x-parent))
972 ,(ly:make-simple-closure
973 (list ly:self-alignment-interface::x-aligned-on-self)))))
974 (meta . ((class . Item)
975 (interfaces . (grid-line-interface
976 self-alignment-interface))))))
982 (meta . ((class . Item)
983 (interfaces . (grid-point-interface))))))
988 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
989 (bound-padding . 1.0)
991 (grow-direction . ,hairpin::calc-grow-direction)
993 (minimum-length . 2.0)
994 (self-alignment-Y . ,CENTER)
995 (springs-and-rods . ,ly:spanner::set-spacing-rods)
996 (stencil . ,ly:hairpin::print)
999 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
1000 (meta . ((class . Spanner)
1001 (interfaces . (dynamic-interface
1004 self-alignment-interface
1005 spanner-interface))))))
1009 (bracket-flare . (0.5 . 0.5))
1010 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
1014 (staff-padding . 0.2)
1015 (stencil . ,ly:horizontal-bracket::print)
1017 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1018 (meta . ((class . Spanner)
1019 (interfaces . (horizontal-bracket-interface
1021 side-position-interface
1022 spanner-interface))))))
1029 (self-alignment-X . ,CENTER)
1030 (self-alignment-Y . ,CENTER)
1031 (stencil . ,system-start-text::print)
1032 (X-offset . ,system-start-text::calc-x-offset)
1033 (Y-offset . ,system-start-text::calc-y-offset)
1034 (meta . ((class . Spanner)
1035 (interfaces . (font-interface
1036 self-alignment-interface
1037 side-position-interface
1038 system-start-text-interface))))))
1043 (extra-spacing-width . (+inf.0 . -inf.0))
1044 (outside-staff-priority . 500)
1046 (self-alignment-X . ,LEFT)
1048 (staff-padding . 0.5)
1049 (stencil . ,ly:text-interface::print)
1050 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1051 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1052 (meta . ((class . Item)
1053 (interfaces . (font-interface
1054 self-alignment-interface
1055 side-position-interface
1056 text-interface))))))
1061 (break-align-symbol . key-cancellation)
1062 (break-visibility . ,begin-of-line-invisible)
1063 (glyph-name-alist . ,cancellation-glyph-name-alist)
1066 (time-signature . (extra-space . 1.25))
1067 (staff-bar . (extra-space . 0.6))
1068 (key-signature . (extra-space . 0.5))
1069 (cue-clef . (extra-space . 0.5))
1070 (right-edge . (extra-space . 0.5))
1071 (first-note . (fixed-space . 2.5))))
1072 (stencil . ,ly:key-signature-interface::print)
1073 (extra-spacing-width . (0.0 . 0.5))
1074 (Y-offset . ,ly:staff-symbol-referencer::callback)
1075 (meta . ((class . Item)
1076 (interfaces . (break-aligned-interface
1078 key-cancellation-interface
1079 key-signature-interface
1080 staff-symbol-referencer-interface))))))
1084 (avoid-slur . inside)
1085 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1086 (break-align-symbol . key-signature)
1087 (break-visibility . ,begin-of-line-visible)
1088 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
1091 (time-signature . (extra-space . 1.15))
1092 (staff-bar . (extra-space . 1.1))
1093 (cue-clef . (extra-space . 0.5))
1094 (right-edge . (extra-space . 0.5))
1095 (first-note . (fixed-space . 2.5))))
1096 (stencil . ,ly:key-signature-interface::print)
1097 (extra-spacing-width . (0.0 . 0.5))
1098 (Y-offset . ,ly:staff-symbol-referencer::callback)
1099 (meta . ((class . Item)
1100 (interfaces . (break-aligned-interface
1102 key-signature-interface
1103 staff-symbol-referencer-interface))))))
1108 (control-points . ,ly:semi-tie::calc-control-points)
1109 (details . ((ratio . 0.333)
1110 (height-limit . 1.0)))
1111 (direction . ,ly:tie::calc-direction)
1112 (head-direction . ,LEFT)
1113 (stencil . ,laissez-vibrer::print)
1115 (extra-spacing-height . (-0.5 . 0.5))
1116 (meta . ((class . Item)
1117 (interfaces . (semi-tie-interface))))))
1119 (LaissezVibrerTieColumn
1121 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1122 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1125 (meta . ((class . Item)
1126 (interfaces . (semi-tie-column-interface))))))
1131 (length-fraction . 0.25)
1132 (minimum-length-fraction . 0.25)
1133 (springs-and-rods . ,ly:ledger-line-spanner::set-spacing-rods)
1134 (stencil . ,ly:ledger-line-spanner::print)
1137 (meta . ((class . Spanner)
1138 (interfaces . (ledger-line-spanner-interface))))))
1142 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1143 (break-align-symbol . left-edge)
1144 (break-visibility . ,center-invisible)
1146 (extra-spacing-height . (+inf.0 . -inf.0))
1148 (ambitus . (extra-space . 2.0))
1149 (breathing-sign . (minimum-space . 0.0))
1150 (cue-end-clef . (extra-space . 0.8))
1151 (clef . (extra-space . 0.8))
1152 (cue-clef . (extra-space . 0.8))
1153 (staff-bar . (extra-space . 0.0))
1154 (key-cancellation . (extra-space . 0.0))
1155 (key-signature . (extra-space . 0.8))
1156 (time-signature . (extra-space . 1.0))
1157 (custos . (extra-space . 0.0))
1158 (first-note . (fixed-space . 2.0))
1159 (right-edge . (extra-space . 0.0))
1161 (X-extent . (0 . 0))
1162 (meta . ((class . Item)
1163 (interfaces . (break-aligned-interface))))))
1167 ;; ugh. A ligature bracket is totally different from
1168 ;; a tuplet bracket.
1170 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
1171 (control-points . ,ly:tuplet-bracket::calc-control-points)
1173 (edge-height . (0.7 . 0.7))
1175 (positions . ,ly:tuplet-bracket::calc-positions)
1176 (shorten-pair . (-0.2 . -0.2))
1177 (staff-padding . 0.25)
1178 (stencil . ,ly:tuplet-bracket::print)
1180 (meta . ((class . Spanner)
1181 (interfaces . (line-interface
1182 tuplet-bracket-interface))))))
1186 (minimum-length . 1.5)
1187 (stencil . ,ly:lyric-extender::print)
1188 (thickness . 0.8) ; line-thickness
1189 (Y-extent . (0 . 0))
1190 (meta . ((class . Spanner)
1191 (interfaces . (lyric-extender-interface
1192 lyric-interface))))))
1196 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
1197 (dash-period . 10.0)
1200 (minimum-distance . 0.1)
1201 (minimum-length . 0.3)
1203 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1204 (stencil . ,ly:lyric-hyphen::print)
1206 (Y-extent . (0 . 0))
1207 (meta . ((class . Spanner)
1208 (interfaces . (font-interface
1209 lyric-hyphen-interface
1211 spanner-interface))))))
1215 (minimum-distance . 0.45)
1217 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1220 (meta . ((class . Spanner)
1221 (interfaces . (lyric-hyphen-interface
1222 spanner-interface))))))
1226 (extra-spacing-width . (0.0 . 0.0))
1227 ;; Recede in height for purposes of note spacing,
1228 ;; so notes in melismata can be freely spaced above lyrics
1229 (extra-spacing-height . (0.2 . -0.2))
1230 (font-series . medium)
1232 (self-alignment-X . ,CENTER)
1233 (stencil . ,lyric-text::print)
1234 (text . ,(grob::calc-property-by-copy 'text))
1236 (X-offset . ,ly:self-alignment-interface::aligned-on-x-parent)
1237 (meta . ((class . Item)
1238 (interfaces . (font-interface
1239 lyric-syllable-interface
1240 rhythmic-grob-interface
1241 self-alignment-interface
1242 text-interface))))))
1252 (stencil . ,ly:measure-grouping::print)
1254 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1255 (meta . ((class . Spanner)
1256 (interfaces . (measure-grouping-interface
1257 side-position-interface))))))
1261 (neutral-direction . ,DOWN)
1262 (meta . ((class . Item)
1263 (interfaces . (melody-spanner-interface))))))
1267 (stencil . ,ly:mensural-ligature::print)
1269 (meta . ((class . Spanner)
1270 (interfaces . (font-interface
1271 mensural-ligature-interface))))))
1275 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1276 (break-visibility . ,end-of-line-invisible)
1278 (extra-spacing-width . (+inf.0 . -inf.0))
1279 (outside-staff-priority . 1000)
1282 (stencil . ,ly:text-interface::print)
1283 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1284 (X-offset . ,(ly:make-simple-closure
1286 ,(ly:make-simple-closure
1287 (list ly:break-alignable-interface::self-align-callback))
1288 ,(ly:make-simple-closure
1289 (list ly:self-alignment-interface::x-aligned-on-self)))))
1290 (self-alignment-X . ,LEFT)
1291 (break-align-symbols . (time-signature))
1292 (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 mensural-ligature-interface
1443 rhythmic-grob-interface
1444 rhythmic-head-interface
1445 staff-symbol-referencer-interface
1446 vaticana-ligature-interface))))))
1450 (stencil . ,ly:text-interface::print)
1451 (meta . ((class . Item)
1452 (interfaces . (font-interface
1454 text-interface))))))
1458 ;; Changed this from 0.75.
1459 ;; If you ever change this back, please document! --hwn
1460 (knee-spacing-correction . 1.0)
1461 (same-direction-correction . 0.25)
1462 (space-to-barline . #t)
1463 (stem-spacing-correction . 0.5)
1464 (meta . ((class . Item)
1465 (interfaces . (note-spacing-interface
1466 spacing-interface))))))
1471 (break-visibility . ,inherit-x-parent-visibility)
1472 (font-shape . italic)
1474 (self-alignment-X . ,CENTER)
1475 (staff-padding . 0.2)
1476 (stencil . ,ly:text-interface::print)
1477 (X-offset . ,(ly:make-simple-closure
1479 ,(ly:make-simple-closure
1480 (list ly:self-alignment-interface::x-aligned-on-self))
1481 ,(ly:make-simple-closure
1482 (list ly:self-alignment-interface::centered-on-x-parent)))))
1483 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1484 (meta . ((class . Item)
1485 (interfaces . (font-interface
1486 self-alignment-interface
1487 side-position-interface
1488 text-interface))))))
1492 (dash-fraction . 0.3)
1494 (edge-height . (0 . 1.2))
1495 (font-shape . italic)
1496 (minimum-length . 1.0)
1497 (outside-staff-priority . 400)
1499 (shorten-pair . (0.0 . -0.6))
1500 (staff-padding . 1.0)
1501 (stencil . ,ly:ottava-bracket::print)
1502 (style . dashed-line)
1503 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1504 (meta . ((class . Spanner)
1505 (interfaces . (font-interface
1506 horizontal-bracket-interface
1508 ottava-bracket-interface
1509 side-position-interface
1510 text-interface))))))
1515 (allow-loose-spacing . #t)
1517 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1518 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1519 (keep-inside-line . #t)
1520 ;; (stencil . ,ly:paper-column::print)
1521 (X-extent . ,ly:axis-group-interface::width)
1524 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1525 (meta . ((class . Paper_column)
1526 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1527 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1528 (interfaces . (axis-group-interface
1530 paper-column-interface
1531 separation-item-interface
1532 spaceable-grob-interface))))))
1538 (stencil . ,parentheses-item::print)
1539 (stencils . ,parentheses-item::calc-parenthesis-stencils)
1540 (meta . ((class . Item)
1541 (interfaces . (font-interface
1542 parentheses-interface))))))
1546 (dot-negative-kern . 0.75)
1547 (font-encoding . fetaMusic)
1549 (spacing-pair . (break-alignment . staff-bar))
1550 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1551 (stencil . ,ly:multi-measure-rest::percent)
1553 (meta . ((class . Spanner)
1554 (interfaces . (font-interface
1555 multi-measure-rest-interface
1556 percent-repeat-interface))))))
1558 (PercentRepeatCounter
1561 (font-encoding . fetaText)
1564 (self-alignment-X . ,CENTER)
1565 (staff-padding . 0.25)
1566 (stencil . ,ly:text-interface::print)
1567 (X-offset . ,(ly:make-simple-closure
1569 ,(ly:make-simple-closure
1570 (list ly:self-alignment-interface::x-centered-on-y-parent))
1571 ,(ly:make-simple-closure
1572 (list ly:self-alignment-interface::x-aligned-on-self)))))
1573 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1574 (meta . ((class . Spanner)
1575 (interfaces . (font-interface
1576 percent-repeat-interface
1577 self-alignment-interface
1578 side-position-interface
1579 text-interface))))))
1583 (control-points . ,ly:slur::calc-control-points)
1584 (cross-staff . ,ly:slur::calc-cross-staff)
1585 (details . ,default-slur-details)
1586 (direction . ,ly:slur::calc-direction)
1587 (height-limit . 2.0)
1588 (minimum-length . 1.5)
1590 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1591 (stencil . ,ly:slur::print)
1593 (Y-extent . ,ly:slur::height)
1594 (meta . ((class . Spanner)
1595 (interfaces . (slur-interface))))))
1597 ;; an example of a text spanner
1600 (bound-padding . 1.0)
1601 (bracket-flare . (0.5 . 0.5))
1603 (edge-height . (1.0 . 1.0))
1604 (shorten-pair . (0.0 . 0.0))
1605 (stencil . ,ly:piano-pedal-bracket::print)
1608 (meta . ((class . Spanner)
1609 (interfaces . (line-interface
1610 piano-pedal-bracket-interface
1611 piano-pedal-interface))))))
1616 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1618 (break-align-symbols . (staff-bar clef))
1619 (break-visibility . ,end-of-line-invisible)
1621 (extra-spacing-width . (+inf.0 . -inf.0))
1624 (outside-staff-priority . 1500)
1626 (self-alignment-X . ,CENTER)
1627 (stencil . ,ly:text-interface::print)
1628 (X-offset . ,(ly:make-simple-closure
1630 ,(ly:make-simple-closure
1631 (list ly:break-alignable-interface::self-align-callback))
1632 ,(ly:make-simple-closure
1633 (list ly:self-alignment-interface::x-aligned-on-self)))))
1634 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1635 (meta . ((class . Item)
1636 (interfaces . (break-alignable-interface
1639 self-alignment-interface
1640 side-position-interface
1641 text-interface))))))
1645 (slash-negative-kern . 0.85)
1647 (stencil . ,ly:percent-repeat-item-interface::beat-slash)
1649 (meta . ((class . Item)
1650 (interfaces . (percent-repeat-interface
1651 percent-repeat-item-interface
1652 rhythmic-grob-interface))))))
1656 (control-points . ,ly:semi-tie::calc-control-points)
1657 (details . ((ratio . 0.333)
1658 (height-limit . 1.0)))
1659 (direction . ,ly:tie::calc-direction)
1660 (head-direction . ,RIGHT)
1661 (stencil . ,ly:tie::print)
1663 (extra-spacing-height . (-0.5 . 0.5))
1664 (meta . ((class . Item)
1665 (interfaces . (semi-tie-interface))))))
1669 (direction . ,ly:tie::calc-direction)
1670 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1671 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1674 (meta . ((class . Item)
1675 (interfaces . (semi-tie-column-interface))))))
1679 (cross-staff . ,ly:rest::calc-cross-staff)
1680 (duration-log . ,stem::calc-duration-log)
1681 (minimum-distance . 0.25)
1682 (stencil . ,ly:rest::print)
1683 (X-extent . ,ly:rest::width)
1684 (Y-extent . ,ly:rest::height)
1685 (Y-offset . ,ly:rest::y-offset-callback)
1686 (meta . ((class . Item)
1687 (interfaces . (font-interface
1689 rhythmic-grob-interface
1690 rhythmic-head-interface
1691 staff-symbol-referencer-interface))))))
1695 (minimum-distance . 0.75)
1696 (positioning-done . ,ly:rest-collision::calc-positioning-done)
1697 (meta . ((class . Item)
1698 (interfaces . (rest-collision-interface))))))
1703 (add-stem-support . #t)
1704 (cross-staff . ,ly:script-interface::calc-cross-staff)
1705 (direction . ,ly:script-interface::calc-direction)
1706 (font-encoding . fetaMusic)
1707 (positioning-done . ,ly:script-interface::calc-positioning-done)
1710 ;; padding set in script definitions.
1711 (staff-padding . 0.25)
1713 (stencil . ,ly:script-interface::print)
1714 (X-offset . ,script-interface::calc-x-offset)
1715 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1716 (meta . ((class . Item)
1717 (interfaces . (font-interface
1719 side-position-interface))))))
1723 (before-line-breaking . ,ly:script-column::before-line-breaking)
1724 (meta . ((class . Item)
1725 (interfaces . (script-column-interface))))))
1729 (before-line-breaking . ,ly:script-column::row-before-line-breaking)
1730 (meta . ((class . Item)
1731 (interfaces . (script-column-interface))))))
1735 (avoid-slur . inside)
1736 (control-points . ,ly:slur::calc-control-points)
1737 (cross-staff . ,ly:slur::calc-cross-staff)
1738 (details . ,default-slur-details)
1739 (direction . ,ly:slur::calc-direction)
1740 (height-limit . 2.0)
1741 (line-thickness . 0.8)
1742 (minimum-length . 1.5)
1744 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1745 (stencil . ,ly:slur::print)
1747 (Y-extent . ,ly:slur::height)
1748 (meta . ((class . Spanner)
1749 (interfaces . (slur-interface))))))
1753 (direction . ,RIGHT)
1754 (extra-spacing-width . (+inf.0 . -inf.0))
1755 (font-shape . italic)
1756 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
1757 (self-alignment-X . ,CENTER)
1758 (stencil . ,ly:text-interface::print)
1759 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1760 (meta . ((class . Item)
1761 (interfaces . (font-interface
1762 piano-pedal-script-interface
1763 self-alignment-interface
1764 text-interface))))))
1766 (SostenutoPedalLineSpanner
1770 (minimum-space . 1.0)
1771 (outside-staff-priority . 1000)
1774 (staff-padding . 1.0)
1775 (X-extent . ,ly:axis-group-interface::width)
1776 (Y-extent . ,ly:axis-group-interface::height)
1777 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1778 (meta . ((class . Spanner)
1779 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1780 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1781 (interfaces . (axis-group-interface
1782 piano-pedal-interface
1783 side-position-interface))))))
1787 (average-spacing-wishes . #t)
1788 (base-shortest-duration . ,(ly:make-moment 3 16))
1789 (common-shortest-duration . ,ly:spacing-spanner::calc-common-shortest-duration)
1790 (shortest-duration-space . 2.0)
1791 (spacing-increment . 1.2)
1792 (springs-and-rods . ,ly:spacing-spanner::set-springs)
1793 (meta . ((class . Spanner)
1794 (interfaces . (spacing-options-interface
1795 spacing-spanner-interface))))))
1799 (allow-span-bar . #t)
1800 (bar-extent . ,ly:axis-group-interface::height)
1801 (before-line-breaking . ,ly:span-bar::before-line-breaking)
1802 (break-align-symbol . staff-bar)
1804 (glyph-name . ,ly:span-bar::calc-glyph-name)
1806 ;; ugh duplication! (these 4 properties were copied from Barline)
1808 ;; Ross. page 151 lists other values, we opt for a leaner look
1812 (hair-thickness . 1.6)
1813 (thick-thickness . 6.0)
1817 (stencil . ,ly:span-bar::print)
1818 (X-extent . ,ly:span-bar::width)
1819 (Y-extent . ,ly:axis-group-interface::height)
1820 (meta . ((class . Item)
1821 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1822 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1823 (interfaces . (bar-line-interface
1825 span-bar-interface))))))
1829 (staff-staff-spacing . ((basic-distance . 9)
1830 (minimum-distance . 7)
1832 (stretchability . 5)))
1833 (staffgroup-staff-spacing . ((basic-distance . 10.5)
1834 (minimum-distance . 8)
1836 (stretchability . 9)))
1837 (meta . ((class . Spanner)
1838 (interfaces . (staff-grouper-interface))))))
1843 (stem-spacing-correction . 0.4)
1844 (meta . ((class . Item)
1845 (interfaces . (spacing-interface
1846 staff-spacing-interface))))))
1851 (ledger-line-thickness . (1.0 . 0.1))
1853 (stencil . ,ly:staff-symbol::print)
1854 (Y-extent . ,ly:staff-symbol::height)
1855 (meta . ((class . Spanner)
1856 (interfaces . (staff-symbol-interface))))))
1861 (font-series . bold)
1864 (stencil . ,ly:text-interface::print)
1865 (X-offset . ,ly:side-position-interface::x-aligned-side)
1866 (meta . ((class . Item)
1867 (interfaces . (font-interface
1868 side-position-interface
1869 stanza-number-interface
1870 text-interface))))))
1874 (beamlet-default-length . (1.1 . 1.1))
1875 (beamlet-max-length-proportion . (0.75 . 0.75))
1876 (cross-staff . ,ly:stem::calc-cross-staff)
1877 (default-direction . ,ly:stem::calc-default-direction)
1880 ;; 3.5 (or 3 measured from note head) is standard length
1881 ;; 32nd, 64th, 128th flagged stems should be longer
1882 (lengths . (3.5 3.5 3.5 4.25 5.0 6.0))
1884 ;; FIXME. 3.5 yields too long beams (according to Ross and
1885 ;; looking at Baerenreiter examples) for a number of common
1886 ;; boundary cases. Subtracting half a beam thickness fixes
1887 ;; this, but the bug may well be somewhere else.
1889 ;; FIXME this should come from 'lengths
1890 (beamed-lengths . (3.26 3.5 3.6))
1892 ;; The 'normal' minima
1893 (beamed-minimum-free-lengths . (1.83 1.5 1.25))
1894 ;(beamed-minimum-free-lengths . (2.0 1.83 1.25))
1896 ;; The 'extreme case' minima
1897 (beamed-extreme-minimum-free-lengths . (2.0 1.25))
1899 ;; Stems in unnatural (forced) direction should be shortened by
1900 ;; one staff space, according to [Roush & Gourlay].
1901 ;; Flagged stems we shorten only half a staff space.
1902 (stem-shorten . (1.0 0.5))
1906 ;; We use the normal minima as minimum for the ideal lengths,
1907 ;; and the extreme minima as abolute minimum length.
1909 (direction . ,ly:stem::calc-direction)
1910 (duration-log . ,stem::calc-duration-log)
1911 (flag . ,ly:stem::calc-flag)
1912 (length . ,ly:stem::calc-length)
1913 (neutral-direction . ,DOWN)
1914 (positioning-done . ,ly:stem::calc-positioning-done)
1915 (stem-end-position . ,ly:stem::calc-stem-end-position)
1916 (stem-info . ,ly:stem::calc-stem-info)
1917 (stencil . ,ly:stem::print)
1919 (X-extent . ,ly:stem::width)
1920 (X-offset . ,ly:stem::offset-callback)
1921 (Y-extent . ,ly:stem::height)
1922 (Y-offset . ,ly:staff-symbol-referencer::callback)
1923 (meta . ((class . Item)
1924 (interfaces . (font-interface
1925 stem-interface))))))
1929 (beam-thickness . 0.48) ; staff-space
1930 (beam-width . ,ly:stem-tremolo::calc-width) ; staff-space
1931 (slope . ,ly:stem-tremolo::calc-slope)
1932 (stencil . ,ly:stem-tremolo::print)
1933 (style . ,ly:stem-tremolo::calc-style)
1934 (X-extent . ,ly:stem-tremolo::width)
1935 (Y-extent . ,ly:stem-tremolo::height)
1936 (meta . ((class . Item)
1937 (interfaces . (stem-tremolo-interface))))))
1941 (avoid-slur . around)
1942 (font-encoding . fetaText)
1943 (font-size . -5) ; don't overlap when next to heads.
1945 (script-priority . 100)
1946 (self-alignment-X . ,CENTER)
1947 (self-alignment-Y . ,CENTER)
1948 (staff-padding . 0.5)
1949 (stencil . ,print-circled-text-callback)
1950 (text . ,string-number::calc-text)
1951 (meta . ((class . Item)
1952 (interfaces . (font-interface
1953 self-alignment-interface
1954 side-position-interface
1955 string-number-interface
1957 text-script-interface))))))
1961 (digit-names . #("p" "i" "m" "a" "x"))
1962 (font-shape . italic)
1963 (font-size . -4) ; don't overlap when next to heads.
1965 (script-priority . 100)
1966 (self-alignment-X . ,CENTER)
1967 (self-alignment-Y . ,CENTER)
1968 (staff-padding . 0.5)
1969 (stencil . ,ly:text-interface::print)
1970 (text . ,stroke-finger::calc-text)
1971 (meta . ((class . Item)
1972 (interfaces . (font-interface
1973 self-alignment-interface
1974 side-position-interface
1975 stroke-finger-interface
1977 text-script-interface))))))
1981 (direction . ,RIGHT)
1982 (extra-spacing-width . (+inf.0 . -inf.0))
1983 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
1984 (self-alignment-X . ,CENTER)
1985 (stencil . ,ly:sustain-pedal::print)
1986 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1987 (meta . ((class . Item)
1988 (interfaces . (font-interface
1989 piano-pedal-interface
1990 piano-pedal-script-interface
1991 self-alignment-interface
1992 text-interface))))))
1994 (SustainPedalLineSpanner
1998 (minimum-space . 1.0)
1999 (outside-staff-priority . 1000)
2002 (staff-padding . 1.2)
2003 (X-extent . ,ly:axis-group-interface::width)
2004 (Y-extent . ,ly:axis-group-interface::height)
2005 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2006 (meta . ((class . Spanner)
2007 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2008 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2009 (interfaces . (axis-group-interface
2010 piano-pedal-interface
2011 side-position-interface))))))
2015 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2017 (skyline-horizontal-padding . 0.5)
2018 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
2019 (X-extent . ,ly:axis-group-interface::width)
2020 (Y-extent . ,ly:system::height)
2021 (meta . ((class . System)
2022 (object-callbacks . ((pure-relevant-grobs . ,ly:system::calc-pure-relevant-grobs)
2023 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)))
2024 (interfaces . (axis-group-interface
2025 system-interface))))))
2029 (collapse-height . 5.0)
2033 (padding . -0.1) ;; bar must cover rounded ending of staff line.
2034 (stencil . ,ly:system-start-delimiter::print)
2037 (X-offset . ,ly:side-position-interface::x-aligned-side)
2039 (meta . ((class . Spanner)
2040 (interfaces . (side-position-interface
2041 system-start-delimiter-interface))))))
2045 (collapse-height . 5.0)
2047 (font-encoding . fetaBraces)
2049 (stencil . ,ly:system-start-delimiter::print)
2051 (X-offset . ,ly:side-position-interface::x-aligned-side)
2053 (meta . ((class . Spanner)
2054 (interfaces . (font-interface
2055 side-position-interface
2056 system-start-delimiter-interface))))))
2060 (collapse-height . 5.0)
2063 (stencil . ,ly:system-start-delimiter::print)
2066 (X-offset . ,ly:side-position-interface::x-aligned-side)
2068 (meta . ((class . Spanner)
2069 (interfaces . (font-interface
2070 side-position-interface
2071 system-start-delimiter-interface))))))
2076 (stencil . ,ly:system-start-delimiter::print)
2077 (style . line-bracket)
2079 (X-offset . ,ly:side-position-interface::x-aligned-side)
2081 (meta . ((class . Spanner)
2082 (interfaces . (font-interface
2083 side-position-interface
2084 system-start-delimiter-interface))))))
2089 (details . ((cautionary-properties . ((angularity . 0.4)
2090 (half-thickness . 0.075)
2092 (procedure . ,parenthesize-stencil)
2095 (harmonic-properties . ((angularity . 2)
2096 (half-thickness . 0.075)
2098 (procedure . ,parenthesize-stencil)
2100 (repeat-tied-properties . ((note-head-visible . #t)
2101 (parenthesize . #t)))
2102 (tied-properties . ((break-visibility . ,begin-of-line-visible)
2103 (parenthesize . #t)))))
2105 (direction . ,CENTER)
2106 (duration-log . ,note-head::calc-duration-log)
2107 (font-series . bold)
2109 (stem-attachment . (0.0 . 1.35))
2110 (stencil . ,tab-note-head::print)
2112 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2113 (Y-offset . ,ly:staff-symbol-referencer::callback)
2114 (meta . ((class . Item)
2115 (interfaces . (font-interface
2117 rhythmic-grob-interface
2118 rhythmic-head-interface
2119 staff-symbol-referencer-interface
2120 tab-note-head-interface
2121 text-interface))))))
2125 (avoid-slur . around)
2126 (cross-staff . ,ly:script-interface::calc-cross-staff)
2128 (extra-spacing-width . (+inf.0 . -inf.0))
2129 (outside-staff-priority . 450)
2131 ;; sync with Fingering ?
2134 (script-priority . 200)
2136 (slur-padding . 0.5)
2137 (staff-padding . 0.5)
2138 (stencil . ,ly:text-interface::print)
2139 ;; todo: add X self alignment?
2140 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2141 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2142 (meta . ((class . Item)
2143 (interfaces . (font-interface
2144 instrument-specific-markup-interface
2145 self-alignment-interface
2146 side-position-interface
2148 text-script-interface))))))
2152 (bound-details . ((left . ((Y . 0)
2154 (attach-dir . ,LEFT)
2156 (left-broken . ((end-on-note . #t)))
2161 (dash-fraction . 0.2)
2164 (font-shape . italic)
2165 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2166 (outside-staff-priority . 350)
2167 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2169 (staff-padding . 0.8)
2170 (stencil . ,ly:line-spanner::print)
2171 (style . dashed-line)
2172 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2174 (meta . ((class . Spanner)
2175 (interfaces . (font-interface
2177 line-spanner-interface
2178 side-position-interface))))))
2182 (avoid-slur . inside)
2183 (control-points . ,ly:tie::calc-control-points)
2185 ;; for a full list, see tie-details.cc
2187 (center-staff-line-clearance . 0.6)
2188 (tip-staff-line-clearance . 0.45)
2189 (note-head-gap . 0.2)
2191 (height-limit . 1.0)
2192 (horizontal-distance-penalty-factor . 10)
2193 (same-dir-as-stem-penalty . 8)
2194 (min-length-penalty-factor . 26)
2195 (tie-tie-collision-distance . 0.45)
2196 (tie-tie-collision-penalty . 25.0)
2197 (intra-space-threshold . 1.25)
2198 (outer-tie-vertical-distance-symmetry-penalty-factor . 10)
2199 (outer-tie-length-symmetry-penalty-factor . 10)
2200 (vertical-distance-penalty-factor . 7)
2201 (outer-tie-vertical-gap . 0.25)
2202 (multi-tie-region-size . 3)
2203 (single-tie-region-size . 4)
2204 (between-length-limit . 1.0)))
2206 (direction . ,ly:tie::calc-direction)
2208 (line-thickness . 0.8)
2209 (neutral-direction . ,UP)
2210 (springs-and-rods . ,ly:spanner::set-spacing-rods)
2211 (stencil . ,ly:tie::print)
2213 (meta . ((class . Spanner)
2214 (interfaces . (tie-interface))))))
2218 (before-line-breaking . ,ly:tie-column::before-line-breaking)
2219 (positioning-done . ,ly:tie-column::calc-positioning-done)
2222 (meta . ((class . Spanner)
2223 (interfaces . (tie-column-interface))))))
2227 (avoid-slur . inside)
2229 . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
2230 (break-align-symbol . time-signature)
2231 (break-align-anchor-alignment . ,LEFT)
2232 (break-visibility . ,all-visible)
2233 (extra-spacing-height . (-1.0 . 1.0))
2236 (cue-clef . (extra-space . 1.5))
2237 (first-note . (fixed-space . 2.0))
2238 (right-edge . (extra-space . 0.5))
2239 (staff-bar . (minimum-space . 2.0))))
2240 (stencil . ,ly:time-signature::print)
2242 (meta . ((class . Item)
2243 (interfaces . (break-aligned-interface
2245 time-signature-interface))))))
2247 (TrillPitchAccidental
2251 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
2254 (stencil . ,ly:accidental-interface::print)
2255 (X-offset . ,ly:side-position-interface::x-aligned-side)
2256 (Y-extent . ,ly:accidental-interface::height)
2257 (meta . ((class . Item)
2258 (interfaces . (accidental-interface
2260 inline-accidental-interface
2261 side-position-interface
2262 trill-pitch-accidental-interface))))))
2267 (direction . ,RIGHT)
2271 (stencil . ,parenthesize-elements)
2272 (stencils . ,parentheses-item::calc-parenthesis-stencils)
2273 (X-offset . ,ly:side-position-interface::x-aligned-side)
2274 (meta . ((class . Item)
2275 (interfaces . (axis-group-interface
2278 parentheses-interface
2279 side-position-interface))))))
2285 (stencil . ,ly:note-head::print)
2286 (Y-offset . ,ly:staff-symbol-referencer::callback)
2287 (meta . ((class . Item)
2288 (interfaces . (font-interface
2290 pitched-trill-interface
2291 rhythmic-head-interface
2292 staff-symbol-referencer-interface))))))
2296 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2297 (bound-details . ((left . ((text . ,(make-musicglyph-markup "scripts.trill"))
2299 (stencil-offset . (-0.5 . -1))
2301 (attach-dir . ,CENTER)
2303 (left-broken . ((end-on-note . #t)))
2307 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2308 (outside-staff-priority . 50)
2310 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2312 (staff-padding . 1.0)
2313 (stencil . ,ly:line-spanner::print)
2315 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2316 (meta . ((class . Spanner)
2317 (interfaces . (font-interface
2319 line-spanner-interface
2320 side-position-interface
2321 trill-spanner-interface))))))
2325 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
2326 (control-points . ,ly:tuplet-bracket::calc-control-points)
2327 (cross-staff . ,ly:tuplet-bracket::calc-cross-staff)
2328 (direction . ,ly:tuplet-bracket::calc-direction)
2329 (edge-height . (0.7 . 0.7))
2330 (full-length-to-extent . #t)
2332 (positions . ,ly:tuplet-bracket::calc-positions)
2333 (shorten-pair . (-0.2 . -0.2))
2334 (staff-padding . 0.25)
2335 (stencil . ,ly:tuplet-bracket::print)
2338 (meta . ((class . Spanner)
2339 (interfaces . (line-interface
2340 tuplet-bracket-interface))))))
2344 (avoid-slur . inside)
2345 (cross-staff . ,ly:tuplet-number::calc-cross-staff)
2346 (direction . ,tuplet-number::calc-direction)
2347 (font-shape . italic)
2349 (stencil . ,ly:tuplet-number::print)
2350 (text . ,tuplet-number::calc-denominator-text)
2351 (meta . ((class . Spanner)
2352 (interfaces . (font-interface
2354 tuplet-number-interface))))))
2359 (direction . ,RIGHT)
2360 (extra-spacing-width . (+inf.0 . -inf.0))
2361 (font-shape . italic)
2362 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
2363 (self-alignment-X . ,CENTER)
2364 (stencil . ,ly:text-interface::print)
2365 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2366 (meta . ((class . Item)
2367 (interfaces . (font-interface
2368 piano-pedal-script-interface
2369 self-alignment-interface
2370 text-interface))))))
2372 (UnaCordaPedalLineSpanner
2376 (minimum-space . 1.0)
2377 (outside-staff-priority . 1000)
2380 (staff-padding . 1.2)
2381 (X-extent . ,ly:axis-group-interface::width)
2382 (Y-extent . ,ly:axis-group-interface::height)
2383 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2384 (meta . ((class . Spanner)
2385 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2386 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2387 (interfaces . (axis-group-interface
2388 piano-pedal-interface
2389 side-position-interface))))))
2395 (stencil . ,ly:vaticana-ligature::print)
2397 (meta . ((class . Spanner)
2398 (interfaces . (font-interface
2399 vaticana-ligature-interface))))))
2404 (positioning-done . ,ly:align-interface::align-to-ideal-distances)
2406 (vertical-skylines . ,ly:axis-group-interface::combine-skylines)
2407 (X-extent . ,ly:axis-group-interface::width)
2408 (Y-extent . ,ly:axis-group-interface::height)
2409 (meta . ((class . Spanner)
2410 (object-callbacks . ((Y-common . ,ly:axis-group-interface::calc-y-common)
2411 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)
2412 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)))
2413 (interfaces . (align-interface
2414 axis-group-interface))))))
2418 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2420 (default-staff-staff-spacing . ((basic-distance . 9)
2421 (minimum-distance . 8)
2423 (nonstaff-unrelatedstaff-spacing . ((padding . 0.5)))
2424 (staff-staff-spacing . ,ly:axis-group-interface::calc-staff-staff-spacing)
2425 (stencil . ,ly:axis-group-interface::print)
2426 (vertical-skylines . ,ly:hara-kiri-group-spanner::calc-skylines)
2427 (X-extent . ,ly:axis-group-interface::width)
2428 (Y-extent . ,ly:hara-kiri-group-spanner::y-extent)
2429 (Y-offset . ,ly:hara-kiri-group-spanner::force-hara-kiri-callback)
2430 (meta . ((class . Spanner)
2431 (object-callbacks . (
2432 (X-common . ,ly:axis-group-interface::calc-x-common)
2433 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2434 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2436 (interfaces . (axis-group-interface
2437 hara-kiri-group-spanner-interface))))))
2441 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2442 (bound-details . ((right . ((attach-dir . ,CENTER)
2445 (left . ((attach-dir . ,CENTER)
2450 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2452 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2453 (stencil . ,ly:line-spanner::print)
2457 (meta . ((class . Spanner)
2458 (interfaces . (line-interface
2459 line-spanner-interface))))))
2464 (edge-height . (2.0 . 2.0)) ;; staff-space;
2465 (font-encoding . fetaText)
2467 (stencil . ,ly:volta-bracket-interface::print)
2468 (thickness . 1.6) ;; line-thickness
2470 (meta . ((class . Spanner)
2471 (interfaces . (font-interface
2472 horizontal-bracket-interface
2474 side-position-interface
2476 volta-bracket-interface
2477 volta-interface))))))
2479 (VoltaBracketSpanner
2481 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
2485 (outside-staff-priority . 600)
2488 (X-extent . ,ly:axis-group-interface::width)
2489 (Y-extent . ,ly:axis-group-interface::height)
2490 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2491 (meta . ((class . Spanner)
2492 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2493 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2494 (interfaces . (axis-group-interface
2495 side-position-interface
2496 volta-interface))))))
2500 (define (completize-grob-entry x)
2501 "Transplant assoc key into 'name entry of 'meta of X. Set interfaces for Item, Spanner etc.
2503 ;; (display (car x))
2505 (let* ((name-sym (car x))
2506 (grob-entry (cdr x))
2507 (meta-entry (assoc-get 'meta grob-entry))
2508 (class (assoc-get 'class meta-entry))
2510 (assoc-get 'interfaces meta-entry)))
2514 (set! ifaces-entry (cons 'item-interface ifaces-entry)))
2515 ((eq? 'Spanner class)
2516 (set! ifaces-entry (cons 'spanner-interface ifaces-entry)))
2517 ((eq? 'Paper_column class)
2518 (set! ifaces-entry (cons 'item-interface
2519 (cons 'paper-column-interface ifaces-entry))))
2520 ((eq? 'System class)
2521 (set! ifaces-entry (cons 'system-interface
2522 (cons 'spanner-interface ifaces-entry))))
2524 (ly:warning "Unknown class ~a" class)))
2526 (set! ifaces-entry (uniq-list (sort ifaces-entry symbol<?)))
2527 (set! ifaces-entry (cons 'grob-interface ifaces-entry))
2529 (set! meta-entry (assoc-set! meta-entry 'name name-sym))
2530 (set! meta-entry (assoc-set! meta-entry 'interfaces
2532 (set! grob-entry (assoc-set! grob-entry 'meta meta-entry))
2533 (cons name-sym grob-entry)))
2535 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
2537 ;; (display (map pair? all-grob-descriptions))
2539 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
2542 ;; (display (car x)) (newline)
2544 (set-object-property! (car x) 'translation-type? list?)
2545 (set-object-property! (car x) 'is-grob? #t))
2546 all-grob-descriptions)
2548 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))
2550 (define (volta-bracket-interface::pure-height grob start end)
2551 (let ((edge-height (ly:grob-property grob 'edge-height)))
2552 (if (number-pair? edge-height)
2553 (let ((smaller (min (car edge-height) (cdr edge-height)))
2554 (larger (max (car edge-height) (cdr edge-height))))
2555 (interval-union '(0 . 0) (cons smaller larger)))
2558 (define pure-print-callbacks
2560 fret-board::calc-stencil
2561 note-head::brew-ez-stencil
2562 print-circled-text-callback
2563 laissez-vibrer::print
2566 ly:mensural-ligature::brew-ligature-primitive
2570 ly:key-signature-interface::print
2571 ly:percent-repeat-item-interface::beat-slash
2572 ly:text-interface::print
2573 ly:script-interface::print
2574 ly:sustain-pedal::print))
2576 ;; Sometimes we have grobs with (Y-extent . ,ly:grob::stencil-height)
2577 ;; and the print function is not pure, but there is a easy way to
2578 ;; figure out the Y-extent from the print function.
2579 (define pure-print-to-height-conversions
2581 (,ly:arpeggio::print . ,ly:arpeggio::pure-height)
2582 (,ly:arpeggio::brew-chord-bracket . ,ly:arpeggio::pure-height)
2583 (,ly:arpeggio::brew-chord-slur . ,ly:arpeggio::pure-height)
2584 (,ly:hairpin::print . ,ly:hairpin::pure-height)
2585 (,ly:volta-bracket-interface::print . ,volta-bracket-interface::pure-height)))
2587 ;; ly:grob::stencil-extent is safe if the print callback is safe too
2588 (define (pure-stencil-height grob start stop)
2589 (let* ((sten (ly:grob-property-data grob 'stencil))
2590 (pure-height-callback (assoc-get sten pure-print-to-height-conversions)))
2593 (memq sten pure-print-callbacks))
2594 (ly:grob::stencil-height grob))
2595 ((procedure? pure-height-callback)
2596 (pure-height-callback grob start stop))
2600 ;; Sometimes, a pure callback will be chained to a non-pure callback via
2601 ;; chain_offset_callback, in which case this provides a default by simply
2602 ;; passing through the value from the pure callback.
2603 (define (pure-chain-offset-callback grob start end prev-offset) prev-offset)
2605 (define pure-conversions-alist
2607 (,ly:accidental-interface::height . ,ly:accidental-interface::pure-height)
2608 (,ly:axis-group-interface::calc-staff-staff-spacing . ,ly:axis-group-interface::calc-pure-staff-staff-spacing)
2609 (,ly:axis-group-interface::height . ,ly:axis-group-interface::pure-height)
2610 (,ly:grob::stencil-height . ,pure-stencil-height)
2611 (,ly:hara-kiri-group-spanner::y-extent . ,ly:hara-kiri-group-spanner::pure-height)
2612 (,ly:rest-collision::force-shift-callback-rest . ,pure-chain-offset-callback)
2613 (,ly:rest::height . ,ly:rest::pure-height)
2614 (,ly:self-alignment-interface::y-aligned-on-self . ,ly:self-alignment-interface::pure-y-aligned-on-self)
2615 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)
2616 (,ly:slur::height . ,ly:slur::pure-height)
2617 (,ly:slur::outside-slur-callback . ,ly:slur::pure-outside-slur-callback)
2618 (,ly:stem::height . ,ly:stem::pure-height)
2619 (,ly:system::height . ,ly:system::calc-pure-height)))
2621 (define pure-functions
2623 parenthesize-elements
2624 laissez-vibrer::print
2625 ly:rest::y-offset-callback
2626 ly:staff-symbol-referencer::callback
2627 ly:staff-symbol::height))
2629 (define-public (pure-relevant? grob)
2630 (let ((extent-callback (ly:grob-property-data grob 'Y-extent)))
2633 (pair? extent-callback)
2634 (memq extent-callback pure-functions)
2636 (pair? (assq extent-callback pure-conversions-alist))
2637 (let ((stencil (ly:grob-property-data grob 'stencil)))
2639 (not (eq? extent-callback ly:grob::stencil-height))
2640 (memq stencil pure-print-callbacks)
2641 (assq stencil pure-print-to-height-conversions)
2642 (ly:stencil? stencil)))))))))
2644 (define-public (call-pure-function unpure args start end)
2645 (if (ly:simple-closure? unpure)
2646 (ly:eval-simple-closure (car args) unpure start end)
2647 (if (not (procedure? unpure))
2649 (if (memq unpure pure-functions)
2651 (let ((pure (assq unpure pure-conversions-alist)))
2655 (list (car args) start end)