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 . 1.0))
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 . 1.0))
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 . 1.0))
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))
889 (X-offset . ,(grob::calc-property-by-copy 'X-offset))
890 (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
891 (meta . ((class . Item)
892 (interfaces . (balloon-interface
899 (annotation-balloon . #f)
900 (annotation-line . #t)
901 (footnote-text . ,(grob::calc-property-by-copy 'footnote-text))
902 (spanner-placement . ,LEFT)
903 (stencil . ,ly:balloon-interface::print-spanner)
904 (text . ,(grob::calc-property-by-copy 'text))
907 (X-offset . ,(grob::calc-property-by-copy 'X-offset))
908 (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
909 (meta . ((class . Spanner)
910 (interfaces . (balloon-interface
912 footnote-spanner-interface
918 (after-line-breaking . ,ly:chord-name::after-line-breaking)
919 (fret-diagram-details . ((finger-code . below-string)))
920 (stencil . ,fret-board::calc-stencil)
921 (extra-spacing-height . (0.2 . -0.2))
922 (extra-spacing-width . (-0.5 . 0.5))
923 (meta . ((class . Item)
924 (interfaces . (chord-name-interface
926 fret-diagram-interface
927 rhythmic-grob-interface))))))
932 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
933 (bound-details . ((right . ((attach-dir . ,LEFT)
934 (end-on-accidental . #t)
937 (left . ((attach-dir . ,RIGHT)
942 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
943 (normalized-endpoints . ,ly:spanner::calc-normalized-endpoints)
944 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
946 (stencil . ,ly:line-spanner::print)
950 (zigzag-width . 0.75)
951 (meta . ((class . Spanner)
952 (interfaces . (glissando-interface
954 line-spanner-interface
955 unbreakable-spanner-interface))))))
959 (common-shortest-duration . ,grace-spacing::calc-shortest-duration)
960 (shortest-duration-space . 1.6)
961 (spacing-increment . 0.8)
962 (meta . ((class . Spanner)
963 (interfaces . (grace-spacing-interface
964 spacing-options-interface
965 spanner-interface))))))
970 (self-alignment-X . ,CENTER)
971 (stencil . ,ly:grid-line-interface::print)
972 (X-extent . ,ly:grid-line-interface::width)
973 (X-offset . ,(ly:make-simple-closure
975 ,(ly:make-simple-closure
976 (list ly:self-alignment-interface::centered-on-x-parent))
977 ,(ly:make-simple-closure
978 (list ly:self-alignment-interface::x-aligned-on-self)))))
979 (meta . ((class . Item)
980 (interfaces . (grid-line-interface
981 self-alignment-interface))))))
987 (meta . ((class . Item)
988 (interfaces . (grid-point-interface))))))
993 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
994 (bound-padding . 1.0)
996 (grow-direction . ,hairpin::calc-grow-direction)
998 (minimum-length . 2.0)
999 (self-alignment-Y . ,CENTER)
1000 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1001 (stencil . ,ly:hairpin::print)
1004 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
1005 (meta . ((class . Spanner)
1006 (interfaces . (dynamic-interface
1009 self-alignment-interface
1010 spanner-interface))))))
1014 (bracket-flare . (0.5 . 0.5))
1015 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
1019 (staff-padding . 0.2)
1020 (stencil . ,ly:horizontal-bracket::print)
1022 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1023 (meta . ((class . Spanner)
1024 (interfaces . (horizontal-bracket-interface
1026 side-position-interface
1027 spanner-interface))))))
1034 (self-alignment-X . ,CENTER)
1035 (self-alignment-Y . ,CENTER)
1036 (stencil . ,system-start-text::print)
1037 (X-offset . ,system-start-text::calc-x-offset)
1038 (Y-offset . ,system-start-text::calc-y-offset)
1039 (meta . ((class . Spanner)
1040 (interfaces . (font-interface
1041 self-alignment-interface
1042 side-position-interface
1043 system-start-text-interface))))))
1048 (extra-spacing-width . (+inf.0 . -inf.0))
1049 (outside-staff-priority . 500)
1051 (self-alignment-X . ,LEFT)
1053 (staff-padding . 0.5)
1054 (stencil . ,ly:text-interface::print)
1055 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1056 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1057 (meta . ((class . Item)
1058 (interfaces . (font-interface
1059 self-alignment-interface
1060 side-position-interface
1061 text-interface))))))
1066 (break-align-symbol . key-cancellation)
1067 (break-visibility . ,begin-of-line-invisible)
1068 (glyph-name-alist . ,cancellation-glyph-name-alist)
1071 (time-signature . (extra-space . 1.25))
1072 (staff-bar . (extra-space . 0.6))
1073 (key-signature . (extra-space . 0.5))
1074 (cue-clef . (extra-space . 0.5))
1075 (right-edge . (extra-space . 0.5))
1076 (first-note . (semi-fixed-space . 2.5))))
1077 (stencil . ,ly:key-signature-interface::print)
1078 (extra-spacing-width . (0.0 . 0.5))
1079 (Y-offset . ,ly:staff-symbol-referencer::callback)
1080 (meta . ((class . Item)
1081 (interfaces . (break-aligned-interface
1083 key-cancellation-interface
1084 key-signature-interface
1085 staff-symbol-referencer-interface))))))
1089 (avoid-slur . inside)
1090 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1091 (break-align-symbol . key-signature)
1092 (break-visibility . ,begin-of-line-visible)
1093 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
1096 (time-signature . (extra-space . 1.15))
1097 (staff-bar . (extra-space . 1.1))
1098 (cue-clef . (extra-space . 0.5))
1099 (right-edge . (extra-space . 0.5))
1100 (first-note . (semi-fixed-space . 2.5))))
1101 (stencil . ,ly:key-signature-interface::print)
1102 (extra-spacing-width . (0.0 . 0.5))
1103 (Y-offset . ,ly:staff-symbol-referencer::callback)
1104 (meta . ((class . Item)
1105 (interfaces . (break-aligned-interface
1107 key-signature-interface
1108 staff-symbol-referencer-interface))))))
1113 (control-points . ,ly:semi-tie::calc-control-points)
1114 (details . ((ratio . 0.333)
1115 (height-limit . 1.0)))
1116 (direction . ,ly:tie::calc-direction)
1117 (head-direction . ,LEFT)
1118 (stencil . ,laissez-vibrer::print)
1120 (extra-spacing-height . (-0.5 . 0.5))
1121 (meta . ((class . Item)
1122 (interfaces . (semi-tie-interface))))))
1124 (LaissezVibrerTieColumn
1126 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1127 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1130 (meta . ((class . Item)
1131 (interfaces . (semi-tie-column-interface))))))
1136 (length-fraction . 0.25)
1137 (minimum-length-fraction . 0.25)
1138 (springs-and-rods . ,ly:ledger-line-spanner::set-spacing-rods)
1139 (stencil . ,ly:ledger-line-spanner::print)
1142 (meta . ((class . Spanner)
1143 (interfaces . (ledger-line-spanner-interface))))))
1147 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1148 (break-align-symbol . left-edge)
1149 (break-visibility . ,center-invisible)
1151 (extra-spacing-height . (+inf.0 . -inf.0))
1153 (ambitus . (extra-space . 2.0))
1154 (breathing-sign . (minimum-space . 0.0))
1155 (cue-end-clef . (extra-space . 0.8))
1156 (clef . (extra-space . 0.8))
1157 (cue-clef . (extra-space . 0.8))
1158 (staff-bar . (extra-space . 0.0))
1159 (key-cancellation . (extra-space . 0.0))
1160 (key-signature . (extra-space . 0.8))
1161 (time-signature . (extra-space . 1.0))
1162 (custos . (extra-space . 0.0))
1163 (first-note . (fixed-space . 2.0))
1164 (right-edge . (extra-space . 0.0))
1166 (X-extent . (0 . 0))
1167 (meta . ((class . Item)
1168 (interfaces . (break-aligned-interface))))))
1172 ;; ugh. A ligature bracket is totally different from
1173 ;; a tuplet bracket.
1175 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
1176 (control-points . ,ly:tuplet-bracket::calc-control-points)
1178 (edge-height . (0.7 . 0.7))
1180 (positions . ,ly:tuplet-bracket::calc-positions)
1181 (shorten-pair . (-0.2 . -0.2))
1182 (staff-padding . 0.25)
1183 (stencil . ,ly:tuplet-bracket::print)
1185 (meta . ((class . Spanner)
1186 (interfaces . (line-interface
1187 tuplet-bracket-interface))))))
1191 (minimum-length . 1.5)
1192 (stencil . ,ly:lyric-extender::print)
1193 (thickness . 0.8) ; line-thickness
1194 (Y-extent . (0 . 0))
1195 (meta . ((class . Spanner)
1196 (interfaces . (lyric-extender-interface
1197 lyric-interface))))))
1201 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
1202 (dash-period . 10.0)
1205 (minimum-distance . 0.1)
1206 (minimum-length . 0.3)
1208 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1209 (stencil . ,ly:lyric-hyphen::print)
1211 (Y-extent . (0 . 0))
1212 (meta . ((class . Spanner)
1213 (interfaces . (font-interface
1214 lyric-hyphen-interface
1216 spanner-interface))))))
1220 (minimum-distance . 0.45)
1222 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1225 (meta . ((class . Spanner)
1226 (interfaces . (lyric-hyphen-interface
1227 spanner-interface))))))
1231 (extra-spacing-width . (0.0 . 0.0))
1232 ;; Recede in height for purposes of note spacing,
1233 ;; so notes in melismata can be freely spaced above lyrics
1234 (extra-spacing-height . (0.2 . -0.2))
1235 (font-series . medium)
1237 (self-alignment-X . ,CENTER)
1238 (stencil . ,lyric-text::print)
1239 (text . ,(grob::calc-property-by-copy 'text))
1241 (X-offset . ,ly:self-alignment-interface::aligned-on-x-parent)
1242 (meta . ((class . Item)
1243 (interfaces . (font-interface
1244 lyric-syllable-interface
1245 rhythmic-grob-interface
1246 self-alignment-interface
1247 text-interface))))))
1257 (stencil . ,ly:measure-grouping::print)
1259 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1260 (meta . ((class . Spanner)
1261 (interfaces . (measure-grouping-interface
1262 side-position-interface))))))
1266 (neutral-direction . ,DOWN)
1267 (meta . ((class . Item)
1268 (interfaces . (melody-spanner-interface))))))
1272 (stencil . ,ly:mensural-ligature::print)
1274 (meta . ((class . Spanner)
1275 (interfaces . (font-interface
1276 mensural-ligature-interface))))))
1280 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1281 (break-visibility . ,end-of-line-invisible)
1283 (extra-spacing-width . (+inf.0 . -inf.0))
1284 (outside-staff-priority . 1000)
1287 (stencil . ,ly:text-interface::print)
1288 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1289 (X-offset . ,(ly:make-simple-closure
1291 ,(ly:make-simple-closure
1292 (list ly:break-alignable-interface::self-align-callback))
1293 ,(ly:make-simple-closure
1294 (list ly:self-alignment-interface::x-aligned-on-self)))))
1295 (self-alignment-X . ,LEFT)
1296 (break-align-symbols . (time-signature))
1297 (non-break-align-symbols . (multi-measure-rest-interface))
1298 (meta . ((class . Item)
1299 (interfaces . (break-alignable-interface
1301 metronome-mark-interface
1302 self-alignment-interface
1303 side-position-interface
1304 text-interface))))))
1309 (hair-thickness . 2.0)
1310 (round-up-exceptions . ())
1312 (spacing-pair . (break-alignment . break-alignment))
1313 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1314 (stencil . ,ly:multi-measure-rest::print)
1315 (thick-thickness . 6.6)
1316 ;; See Wanske pp. 125
1317 (usable-duration-logs . ,(iota 4 -3))
1318 (Y-offset . ,ly:staff-symbol-referencer::callback)
1319 (meta . ((class . Spanner)
1320 (interfaces . (font-interface
1321 multi-measure-interface
1322 multi-measure-rest-interface
1324 staff-symbol-referencer-interface))))))
1326 (MultiMeasureRestNumber
1328 (bound-padding . 2.0)
1330 (font-encoding . fetaText)
1332 (self-alignment-X . ,CENTER)
1334 (springs-and-rods . ,ly:multi-measure-rest::set-text-rods)
1335 (staff-padding . 0.4)
1336 (stencil . ,ly:text-interface::print)
1337 (X-offset . ,(ly:make-simple-closure
1339 ,(ly:make-simple-closure
1340 (list ly:self-alignment-interface::x-aligned-on-self))
1341 ,(ly:make-simple-closure
1342 (list ly:self-alignment-interface::x-centered-on-y-parent)))))
1343 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1344 (meta . ((class . Spanner)
1345 (interfaces . (font-interface
1346 multi-measure-interface
1347 self-alignment-interface
1348 side-position-interface
1349 text-interface))))))
1351 (MultiMeasureRestText
1354 (outside-staff-priority . 450)
1356 (self-alignment-X . ,CENTER)
1357 (staff-padding . 0.25)
1358 (stencil . ,ly:text-interface::print)
1359 (X-offset . ,(ly:make-simple-closure
1361 ,(ly:make-simple-closure
1362 (list ly:self-alignment-interface::x-centered-on-y-parent))
1363 ,(ly:make-simple-closure
1364 (list ly:self-alignment-interface::x-aligned-on-self)))))
1365 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1366 (meta . ((class . Spanner)
1367 (interfaces . (font-interface
1368 multi-measure-interface
1369 self-alignment-interface
1370 side-position-interface
1371 text-interface))))))
1374 (NonMusicalPaperColumn
1376 (allow-loose-spacing . #t)
1378 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1379 (full-measure-extra-space . 1.0)
1380 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1381 ;; sufficient padding to prevent ledger lines from moving over/under
1382 (skyline-vertical-padding . 0.6)
1383 ;; (stencil . ,ly:paper-column::print)
1385 (keep-inside-line . #t)
1386 (line-break-permission . allow)
1388 (page-break-permission . allow)
1390 ;; debugging stuff: print column number.
1391 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1393 (X-extent . ,ly:axis-group-interface::width)
1394 (meta . ((class . Paper_column)
1395 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1396 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1397 (interfaces . (axis-group-interface
1399 paper-column-interface
1400 separation-item-interface
1401 spaceable-grob-interface))))))
1406 (positioning-done . ,ly:note-collision-interface::calc-positioning-done)
1407 (prefer-dotted-right . #t)
1408 (X-extent . ,ly:axis-group-interface::width)
1409 (Y-extent . ,ly:axis-group-interface::height)
1410 (meta . ((class . Item)
1411 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1412 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1413 (interfaces . (axis-group-interface
1414 note-collision-interface))))))
1419 (bound-alignment-interfaces . (rhythmic-head-interface stem-interface))
1420 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1421 (skyline-vertical-padding . 0.15)
1422 (X-extent . ,ly:axis-group-interface::width)
1423 (Y-extent . ,ly:axis-group-interface::height)
1424 (meta . ((class . Item)
1425 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1426 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1427 (interfaces . (axis-group-interface
1428 note-column-interface
1429 separation-item-interface))))))
1434 (duration-log . ,note-head::calc-duration-log)
1435 (extra-spacing-height . ,ly:note-head::include-ledger-line-height)
1436 (glyph-name . ,note-head::calc-glyph-name)
1437 (ligature-flexa . #f)
1438 (stem-attachment . ,ly:note-head::calc-stem-attachment)
1439 (stencil . ,ly:note-head::print)
1440 (X-offset . ,ly:note-head::stem-x-shift)
1441 (Y-offset . ,ly:staff-symbol-referencer::callback)
1442 (meta . ((class . Item)
1443 (interfaces . (font-interface
1444 gregorian-ligature-interface
1446 ligature-head-interface
1447 mensural-ligature-interface
1449 rhythmic-grob-interface
1450 rhythmic-head-interface
1451 staff-symbol-referencer-interface
1452 vaticana-ligature-interface))))))
1456 (stencil . ,ly:text-interface::print)
1457 (meta . ((class . Item)
1458 (interfaces . (font-interface
1460 text-interface))))))
1464 ;; Changed this from 0.75.
1465 ;; If you ever change this back, please document! --hwn
1466 (knee-spacing-correction . 1.0)
1467 (same-direction-correction . 0.25)
1468 (space-to-barline . #t)
1469 (stem-spacing-correction . 0.5)
1470 (meta . ((class . Item)
1471 (interfaces . (note-spacing-interface
1472 spacing-interface))))))
1477 (break-visibility . ,inherit-x-parent-visibility)
1478 (font-shape . italic)
1480 (self-alignment-X . ,CENTER)
1481 (staff-padding . 0.2)
1482 (stencil . ,ly:text-interface::print)
1483 (X-offset . ,(ly:make-simple-closure
1485 ,(ly:make-simple-closure
1486 (list ly:self-alignment-interface::x-aligned-on-self))
1487 ,(ly:make-simple-closure
1488 (list ly:self-alignment-interface::centered-on-x-parent)))))
1489 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1490 (meta . ((class . Item)
1491 (interfaces . (font-interface
1492 self-alignment-interface
1493 side-position-interface
1494 text-interface))))))
1498 (dash-fraction . 0.3)
1500 (edge-height . (0 . 1.2))
1501 (font-shape . italic)
1502 (minimum-length . 1.0)
1503 (outside-staff-priority . 400)
1505 (shorten-pair . (0.0 . -0.6))
1506 (staff-padding . 1.0)
1507 (stencil . ,ly:ottava-bracket::print)
1508 (style . dashed-line)
1509 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1510 (meta . ((class . Spanner)
1511 (interfaces . (font-interface
1512 horizontal-bracket-interface
1514 ottava-bracket-interface
1515 side-position-interface
1516 text-interface))))))
1521 (allow-loose-spacing . #t)
1523 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1524 (bound-alignment-interfaces . (note-column-interface))
1525 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1526 (keep-inside-line . #t)
1527 ;; (stencil . ,ly:paper-column::print)
1528 (X-extent . ,ly:axis-group-interface::width)
1531 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1532 (meta . ((class . Paper_column)
1533 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1534 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1535 (interfaces . (axis-group-interface
1537 paper-column-interface
1538 separation-item-interface
1539 spaceable-grob-interface))))))
1545 (stencil . ,parentheses-item::print)
1546 (stencils . ,parentheses-item::calc-parenthesis-stencils)
1547 (meta . ((class . Item)
1548 (interfaces . (font-interface
1549 parentheses-interface))))))
1553 (dot-negative-kern . 0.75)
1554 (font-encoding . fetaMusic)
1556 (spacing-pair . (break-alignment . staff-bar))
1557 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1558 (stencil . ,ly:multi-measure-rest::percent)
1560 (meta . ((class . Spanner)
1561 (interfaces . (font-interface
1562 multi-measure-rest-interface
1563 percent-repeat-interface))))))
1565 (PercentRepeatCounter
1568 (font-encoding . fetaText)
1571 (self-alignment-X . ,CENTER)
1572 (staff-padding . 0.25)
1573 (stencil . ,ly:text-interface::print)
1574 (X-offset . ,(ly:make-simple-closure
1576 ,(ly:make-simple-closure
1577 (list ly:self-alignment-interface::x-centered-on-y-parent))
1578 ,(ly:make-simple-closure
1579 (list ly:self-alignment-interface::x-aligned-on-self)))))
1580 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1581 (meta . ((class . Spanner)
1582 (interfaces . (font-interface
1583 percent-repeat-interface
1584 self-alignment-interface
1585 side-position-interface
1586 text-interface))))))
1590 (control-points . ,ly:slur::calc-control-points)
1591 (cross-staff . ,ly:slur::calc-cross-staff)
1592 (details . ,default-slur-details)
1593 (direction . ,ly:slur::calc-direction)
1594 (height-limit . 2.0)
1595 (minimum-length . 1.5)
1598 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1599 (stencil . ,ly:slur::print)
1601 (Y-extent . ,ly:slur::height)
1602 (meta . ((class . Spanner)
1603 (interfaces . (slur-interface))))))
1605 ;; an example of a text spanner
1608 (bound-padding . 1.0)
1609 (bracket-flare . (0.5 . 0.5))
1611 (edge-height . (1.0 . 1.0))
1612 (shorten-pair . (0.0 . 0.0))
1613 (stencil . ,ly:piano-pedal-bracket::print)
1616 (meta . ((class . Spanner)
1617 (interfaces . (line-interface
1618 piano-pedal-bracket-interface
1619 piano-pedal-interface))))))
1624 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1626 (break-align-symbols . (staff-bar clef))
1627 (break-visibility . ,end-of-line-invisible)
1629 (extra-spacing-width . (+inf.0 . -inf.0))
1632 (outside-staff-priority . 1500)
1634 (self-alignment-X . ,CENTER)
1635 (stencil . ,ly:text-interface::print)
1636 (X-offset . ,(ly:make-simple-closure
1638 ,(ly:make-simple-closure
1639 (list ly:break-alignable-interface::self-align-callback))
1640 ,(ly:make-simple-closure
1641 (list ly:self-alignment-interface::x-aligned-on-self)))))
1642 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1643 (meta . ((class . Item)
1644 (interfaces . (break-alignable-interface
1647 self-alignment-interface
1648 side-position-interface
1649 text-interface))))))
1653 (slash-negative-kern . 0.85)
1655 (stencil . ,ly:percent-repeat-item-interface::beat-slash)
1657 (meta . ((class . Item)
1658 (interfaces . (percent-repeat-interface
1659 percent-repeat-item-interface
1660 rhythmic-grob-interface))))))
1664 (control-points . ,ly:semi-tie::calc-control-points)
1665 (details . ((ratio . 0.333)
1666 (height-limit . 1.0)))
1667 (direction . ,ly:tie::calc-direction)
1668 (head-direction . ,RIGHT)
1669 (stencil . ,ly:tie::print)
1671 (extra-spacing-height . (-0.5 . 0.5))
1672 (meta . ((class . Item)
1673 (interfaces . (semi-tie-interface))))))
1677 (direction . ,ly:tie::calc-direction)
1678 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1679 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1682 (meta . ((class . Item)
1683 (interfaces . (semi-tie-column-interface))))))
1687 (cross-staff . ,ly:rest::calc-cross-staff)
1688 (duration-log . ,stem::calc-duration-log)
1689 (minimum-distance . 0.25)
1690 (stencil . ,ly:rest::print)
1691 (X-extent . ,ly:rest::width)
1692 (Y-extent . ,ly:rest::height)
1693 (Y-offset . ,ly:rest::y-offset-callback)
1694 (meta . ((class . Item)
1695 (interfaces . (font-interface
1697 rhythmic-grob-interface
1698 rhythmic-head-interface
1699 staff-symbol-referencer-interface))))))
1703 (minimum-distance . 0.75)
1704 (positioning-done . ,ly:rest-collision::calc-positioning-done)
1705 (meta . ((class . Item)
1706 (interfaces . (rest-collision-interface))))))
1711 (add-stem-support . #t)
1712 (cross-staff . ,ly:script-interface::calc-cross-staff)
1713 (direction . ,ly:script-interface::calc-direction)
1714 (font-encoding . fetaMusic)
1715 (positioning-done . ,ly:script-interface::calc-positioning-done)
1718 ;; padding set in script definitions.
1719 (staff-padding . 0.25)
1721 (stencil . ,ly:script-interface::print)
1722 (X-offset . ,script-interface::calc-x-offset)
1723 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1724 (meta . ((class . Item)
1725 (interfaces . (font-interface
1727 side-position-interface))))))
1731 (before-line-breaking . ,ly:script-column::before-line-breaking)
1732 (meta . ((class . Item)
1733 (interfaces . (script-column-interface))))))
1737 (before-line-breaking . ,ly:script-column::row-before-line-breaking)
1738 (meta . ((class . Item)
1739 (interfaces . (script-column-interface))))))
1743 (avoid-slur . inside)
1744 (control-points . ,ly:slur::calc-control-points)
1745 (cross-staff . ,ly:slur::calc-cross-staff)
1746 (details . ,default-slur-details)
1747 (direction . ,ly:slur::calc-direction)
1748 (height-limit . 2.0)
1749 (line-thickness . 0.8)
1750 (minimum-length . 1.5)
1753 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1754 (stencil . ,ly:slur::print)
1756 (Y-extent . ,ly:slur::height)
1757 (meta . ((class . Spanner)
1758 (interfaces . (slur-interface))))))
1762 (direction . ,RIGHT)
1763 (extra-spacing-width . (+inf.0 . -inf.0))
1764 (font-shape . italic)
1765 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
1766 (self-alignment-X . ,CENTER)
1767 (stencil . ,ly:text-interface::print)
1768 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1769 (meta . ((class . Item)
1770 (interfaces . (font-interface
1771 piano-pedal-script-interface
1772 self-alignment-interface
1773 text-interface))))))
1775 (SostenutoPedalLineSpanner
1779 (minimum-space . 1.0)
1780 (outside-staff-priority . 1000)
1783 (staff-padding . 1.0)
1784 (X-extent . ,ly:axis-group-interface::width)
1785 (Y-extent . ,ly:axis-group-interface::height)
1786 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1787 (meta . ((class . Spanner)
1788 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1789 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1790 (interfaces . (axis-group-interface
1791 piano-pedal-interface
1792 side-position-interface))))))
1796 (average-spacing-wishes . #t)
1797 (base-shortest-duration . ,(ly:make-moment 3 16))
1798 (common-shortest-duration . ,ly:spacing-spanner::calc-common-shortest-duration)
1799 (shortest-duration-space . 2.0)
1800 (spacing-increment . 1.2)
1801 (springs-and-rods . ,ly:spacing-spanner::set-springs)
1802 (meta . ((class . Spanner)
1803 (interfaces . (spacing-options-interface
1804 spacing-spanner-interface))))))
1808 (allow-span-bar . #t)
1809 (bar-extent . ,ly:axis-group-interface::height)
1810 (before-line-breaking . ,ly:span-bar::before-line-breaking)
1811 (break-align-symbol . staff-bar)
1813 (glyph-name . ,ly:span-bar::calc-glyph-name)
1815 ;; ugh duplication! (these 4 properties were copied from Barline)
1817 ;; Ross. page 151 lists other values, we opt for a leaner look
1821 (hair-thickness . 1.6)
1822 (thick-thickness . 6.0)
1826 (stencil . ,ly:span-bar::print)
1827 (X-extent . ,ly:span-bar::width)
1828 (Y-extent . ,ly:axis-group-interface::height)
1829 (meta . ((class . Item)
1830 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1831 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1832 (interfaces . (bar-line-interface
1834 span-bar-interface))))))
1838 (staff-staff-spacing . ((basic-distance . 9)
1839 (minimum-distance . 7)
1841 (stretchability . 5)))
1842 (staffgroup-staff-spacing . ((basic-distance . 10.5)
1843 (minimum-distance . 8)
1845 (stretchability . 9)))
1846 (meta . ((class . Spanner)
1847 (interfaces . (staff-grouper-interface))))))
1852 (stem-spacing-correction . 0.4)
1853 (meta . ((class . Item)
1854 (interfaces . (spacing-interface
1855 staff-spacing-interface))))))
1860 (ledger-line-thickness . (1.0 . 0.1))
1862 (stencil . ,ly:staff-symbol::print)
1863 (Y-extent . ,ly:staff-symbol::height)
1864 (meta . ((class . Spanner)
1865 (interfaces . (staff-symbol-interface))))))
1870 (font-series . bold)
1873 (stencil . ,ly:text-interface::print)
1874 (X-offset . ,ly:side-position-interface::x-aligned-side)
1875 (meta . ((class . Item)
1876 (interfaces . (font-interface
1877 side-position-interface
1878 stanza-number-interface
1879 text-interface))))))
1883 (beamlet-default-length . (1.1 . 1.1))
1884 (beamlet-max-length-proportion . (0.75 . 0.75))
1885 (cross-staff . ,ly:stem::calc-cross-staff)
1886 (default-direction . ,ly:stem::calc-default-direction)
1889 ;; 3.5 (or 3 measured from note head) is standard length
1890 ;; 32nd, 64th, 128th flagged stems should be longer
1891 (lengths . (3.5 3.5 3.5 4.25 5.0 6.0))
1893 ;; FIXME. 3.5 yields too long beams (according to Ross and
1894 ;; looking at Baerenreiter examples) for a number of common
1895 ;; boundary cases. Subtracting half a beam thickness fixes
1896 ;; this, but the bug may well be somewhere else.
1898 ;; FIXME this should come from 'lengths
1899 (beamed-lengths . (3.26 3.5 3.6))
1901 ;; The 'normal' minima
1902 (beamed-minimum-free-lengths . (1.83 1.5 1.25))
1903 ;(beamed-minimum-free-lengths . (2.0 1.83 1.25))
1905 ;; The 'extreme case' minima
1906 (beamed-extreme-minimum-free-lengths . (2.0 1.25))
1908 ;; Stems in unnatural (forced) direction should be shortened by
1909 ;; one staff space, according to [Roush & Gourlay].
1910 ;; Flagged stems we shorten only half a staff space.
1911 (stem-shorten . (1.0 0.5))
1915 ;; We use the normal minima as minimum for the ideal lengths,
1916 ;; and the extreme minima as abolute minimum length.
1918 (direction . ,ly:stem::calc-direction)
1919 (duration-log . ,stem::calc-duration-log)
1920 (flag . ,ly:stem::calc-flag)
1921 (length . ,ly:stem::calc-length)
1922 (neutral-direction . ,DOWN)
1923 (positioning-done . ,ly:stem::calc-positioning-done)
1924 (stem-begin-position . ,ly:stem::calc-stem-begin-position)
1925 (stem-end-position . ,ly:stem::calc-stem-end-position)
1926 (stem-info . ,ly:stem::calc-stem-info)
1927 (stencil . ,ly:stem::print)
1929 (X-extent . ,ly:stem::width)
1930 (X-offset . ,ly:stem::offset-callback)
1931 (Y-extent . ,ly:stem::height)
1932 (Y-offset . ,ly:staff-symbol-referencer::callback)
1933 (meta . ((class . Item)
1934 (interfaces . (font-interface
1935 stem-interface))))))
1939 (beam-thickness . 0.48) ; staff-space
1940 (beam-width . ,ly:stem-tremolo::calc-width) ; staff-space
1941 (slope . ,ly:stem-tremolo::calc-slope)
1942 (stencil . ,ly:stem-tremolo::print)
1943 (style . ,ly:stem-tremolo::calc-style)
1944 (X-extent . ,ly:stem-tremolo::width)
1945 (meta . ((class . Item)
1946 (interfaces . (stem-tremolo-interface))))))
1950 (avoid-slur . around)
1951 (font-encoding . fetaText)
1952 (font-size . -5) ; don't overlap when next to heads.
1954 (script-priority . 100)
1955 (self-alignment-X . ,CENTER)
1956 (self-alignment-Y . ,CENTER)
1957 (staff-padding . 0.5)
1958 (stencil . ,print-circled-text-callback)
1959 (text . ,string-number::calc-text)
1960 (meta . ((class . Item)
1961 (interfaces . (font-interface
1962 self-alignment-interface
1963 side-position-interface
1964 string-number-interface
1966 text-script-interface))))))
1970 (digit-names . #("p" "i" "m" "a" "x"))
1971 (font-shape . italic)
1972 (font-size . -4) ; don't overlap when next to heads.
1974 (script-priority . 100)
1975 (self-alignment-X . ,CENTER)
1976 (self-alignment-Y . ,CENTER)
1977 (staff-padding . 0.5)
1978 (stencil . ,ly:text-interface::print)
1979 (text . ,stroke-finger::calc-text)
1980 (meta . ((class . Item)
1981 (interfaces . (font-interface
1982 self-alignment-interface
1983 side-position-interface
1984 stroke-finger-interface
1986 text-script-interface))))))
1990 (direction . ,RIGHT)
1991 (extra-spacing-width . (+inf.0 . -inf.0))
1992 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
1993 (self-alignment-X . ,CENTER)
1994 (stencil . ,ly:sustain-pedal::print)
1995 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1996 (meta . ((class . Item)
1997 (interfaces . (font-interface
1998 piano-pedal-interface
1999 piano-pedal-script-interface
2000 self-alignment-interface
2001 text-interface))))))
2003 (SustainPedalLineSpanner
2007 (minimum-space . 1.0)
2008 (outside-staff-priority . 1000)
2011 (staff-padding . 1.2)
2012 (X-extent . ,ly:axis-group-interface::width)
2013 (Y-extent . ,ly:axis-group-interface::height)
2014 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2015 (meta . ((class . Spanner)
2016 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2017 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2018 (interfaces . (axis-group-interface
2019 piano-pedal-interface
2020 side-position-interface))))))
2024 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2026 (skyline-horizontal-padding . 0.5)
2027 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
2028 (X-extent . ,ly:axis-group-interface::width)
2029 (Y-extent . ,ly:system::height)
2030 (meta . ((class . System)
2031 (object-callbacks . ((pure-relevant-grobs . ,ly:system::calc-pure-relevant-grobs)
2032 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)))
2033 (interfaces . (axis-group-interface
2034 system-interface))))))
2038 (collapse-height . 5.0)
2042 (padding . -0.1) ;; bar must cover rounded ending of staff line.
2043 (stencil . ,ly:system-start-delimiter::print)
2046 (X-offset . ,ly:side-position-interface::x-aligned-side)
2048 (meta . ((class . Spanner)
2049 (interfaces . (side-position-interface
2050 system-start-delimiter-interface))))))
2054 (collapse-height . 5.0)
2056 (font-encoding . fetaBraces)
2058 (stencil . ,ly:system-start-delimiter::print)
2060 (X-offset . ,ly:side-position-interface::x-aligned-side)
2062 (meta . ((class . Spanner)
2063 (interfaces . (font-interface
2064 side-position-interface
2065 system-start-delimiter-interface))))))
2069 (collapse-height . 5.0)
2072 (stencil . ,ly:system-start-delimiter::print)
2075 (X-offset . ,ly:side-position-interface::x-aligned-side)
2077 (meta . ((class . Spanner)
2078 (interfaces . (font-interface
2079 side-position-interface
2080 system-start-delimiter-interface))))))
2085 (stencil . ,ly:system-start-delimiter::print)
2086 (style . line-bracket)
2088 (X-offset . ,ly:side-position-interface::x-aligned-side)
2090 (meta . ((class . Spanner)
2091 (interfaces . (font-interface
2092 side-position-interface
2093 system-start-delimiter-interface))))))
2098 (details . ((cautionary-properties . ((angularity . 0.4)
2099 (half-thickness . 0.075)
2101 (procedure . ,parenthesize-stencil)
2104 (harmonic-properties . ((angularity . 2)
2105 (half-thickness . 0.075)
2107 (procedure . ,parenthesize-stencil)
2109 (repeat-tied-properties . ((note-head-visible . #t)
2110 (parenthesize . #t)))
2111 (tied-properties . ((break-visibility . ,begin-of-line-visible)
2112 (parenthesize . #t)))))
2114 (direction . ,CENTER)
2115 (duration-log . ,note-head::calc-duration-log)
2116 (font-series . bold)
2118 (stem-attachment . (0.0 . 1.35))
2119 (stencil . ,tab-note-head::print)
2121 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2122 (Y-offset . ,ly:staff-symbol-referencer::callback)
2123 (meta . ((class . Item)
2124 (interfaces . (font-interface
2126 rhythmic-grob-interface
2127 rhythmic-head-interface
2128 staff-symbol-referencer-interface
2129 tab-note-head-interface
2130 text-interface))))))
2134 (avoid-slur . around)
2135 (cross-staff . ,ly:script-interface::calc-cross-staff)
2137 (extra-spacing-width . (+inf.0 . -inf.0))
2138 (outside-staff-priority . 450)
2140 ;; sync with Fingering ?
2143 (script-priority . 200)
2145 (slur-padding . 0.5)
2146 (staff-padding . 0.5)
2147 (stencil . ,ly:text-interface::print)
2148 ;; todo: add X self alignment?
2149 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2150 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2151 (meta . ((class . Item)
2152 (interfaces . (font-interface
2153 instrument-specific-markup-interface
2154 self-alignment-interface
2155 side-position-interface
2157 text-script-interface))))))
2161 (bound-details . ((left . ((Y . 0)
2163 (attach-dir . ,LEFT)
2165 (left-broken . ((end-on-note . #t)))
2170 (dash-fraction . 0.2)
2173 (font-shape . italic)
2174 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2175 (outside-staff-priority . 350)
2176 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2178 (staff-padding . 0.8)
2179 (stencil . ,ly:line-spanner::print)
2180 (style . dashed-line)
2181 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2183 (meta . ((class . Spanner)
2184 (interfaces . (font-interface
2186 line-spanner-interface
2187 side-position-interface))))))
2191 (avoid-slur . inside)
2192 (control-points . ,ly:tie::calc-control-points)
2194 ;; for a full list, see tie-details.cc
2196 (center-staff-line-clearance . 0.6)
2197 (tip-staff-line-clearance . 0.45)
2198 (note-head-gap . 0.2)
2200 (height-limit . 1.0)
2201 (horizontal-distance-penalty-factor . 10)
2202 (same-dir-as-stem-penalty . 8)
2203 (min-length-penalty-factor . 26)
2204 (tie-tie-collision-distance . 0.45)
2205 (tie-tie-collision-penalty . 25.0)
2206 (intra-space-threshold . 1.25)
2207 (outer-tie-vertical-distance-symmetry-penalty-factor . 10)
2208 (outer-tie-length-symmetry-penalty-factor . 10)
2209 (vertical-distance-penalty-factor . 7)
2210 (outer-tie-vertical-gap . 0.25)
2211 (multi-tie-region-size . 3)
2212 (single-tie-region-size . 4)
2213 (between-length-limit . 1.0)))
2215 (direction . ,ly:tie::calc-direction)
2217 (line-thickness . 0.8)
2218 (neutral-direction . ,UP)
2219 (springs-and-rods . ,ly:spanner::set-spacing-rods)
2220 (stencil . ,ly:tie::print)
2222 (meta . ((class . Spanner)
2223 (interfaces . (tie-interface))))))
2227 (before-line-breaking . ,ly:tie-column::before-line-breaking)
2228 (positioning-done . ,ly:tie-column::calc-positioning-done)
2231 (meta . ((class . Spanner)
2232 (interfaces . (tie-column-interface))))))
2236 (avoid-slur . inside)
2238 . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
2239 (break-align-symbol . time-signature)
2240 (break-align-anchor-alignment . ,LEFT)
2241 (break-visibility . ,all-visible)
2242 (extra-spacing-height . (-1.0 . 1.0))
2245 (cue-clef . (extra-space . 1.5))
2246 (first-note . (semi-fixed-space . 2.0))
2247 (right-edge . (extra-space . 0.5))
2248 (staff-bar . (minimum-space . 2.0))))
2249 (stencil . ,ly:time-signature::print)
2251 (meta . ((class . Item)
2252 (interfaces . (break-aligned-interface
2254 time-signature-interface))))))
2256 (TrillPitchAccidental
2260 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
2263 (stencil . ,ly:accidental-interface::print)
2264 (X-offset . ,ly:side-position-interface::x-aligned-side)
2265 (Y-extent . ,ly:accidental-interface::height)
2266 (meta . ((class . Item)
2267 (interfaces . (accidental-interface
2269 inline-accidental-interface
2270 side-position-interface
2271 trill-pitch-accidental-interface))))))
2276 (direction . ,RIGHT)
2280 (stencil . ,parenthesize-elements)
2281 (stencils . ,parentheses-item::calc-parenthesis-stencils)
2282 (X-offset . ,ly:side-position-interface::x-aligned-side)
2283 (meta . ((class . Item)
2284 (interfaces . (axis-group-interface
2287 parentheses-interface
2288 side-position-interface))))))
2294 (stencil . ,ly:note-head::print)
2295 (Y-offset . ,ly:staff-symbol-referencer::callback)
2296 (meta . ((class . Item)
2297 (interfaces . (font-interface
2299 pitched-trill-interface
2300 rhythmic-head-interface
2301 staff-symbol-referencer-interface))))))
2305 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2306 (bound-details . ((left . ((text . ,(make-musicglyph-markup "scripts.trill"))
2308 (stencil-offset . (-0.5 . -1))
2310 (attach-dir . ,CENTER)
2312 (left-broken . ((end-on-note . #t)))
2316 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2317 (outside-staff-priority . 50)
2319 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2321 (staff-padding . 1.0)
2322 (stencil . ,ly:line-spanner::print)
2324 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2325 (meta . ((class . Spanner)
2326 (interfaces . (font-interface
2328 line-spanner-interface
2329 side-position-interface
2330 trill-spanner-interface))))))
2334 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
2335 (control-points . ,ly:tuplet-bracket::calc-control-points)
2336 (cross-staff . ,ly:tuplet-bracket::calc-cross-staff)
2337 (direction . ,ly:tuplet-bracket::calc-direction)
2338 (edge-height . (0.7 . 0.7))
2339 (full-length-to-extent . #t)
2341 (positions . ,ly:tuplet-bracket::calc-positions)
2342 (shorten-pair . (-0.2 . -0.2))
2343 (staff-padding . 0.25)
2344 (stencil . ,ly:tuplet-bracket::print)
2347 (meta . ((class . Spanner)
2348 (interfaces . (line-interface
2349 tuplet-bracket-interface))))))
2353 (avoid-slur . inside)
2354 (cross-staff . ,ly:tuplet-number::calc-cross-staff)
2355 (direction . ,tuplet-number::calc-direction)
2356 (font-shape . italic)
2358 (stencil . ,ly:tuplet-number::print)
2359 (text . ,tuplet-number::calc-denominator-text)
2360 (meta . ((class . Spanner)
2361 (interfaces . (font-interface
2363 tuplet-number-interface))))))
2368 (direction . ,RIGHT)
2369 (extra-spacing-width . (+inf.0 . -inf.0))
2370 (font-shape . italic)
2371 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
2372 (self-alignment-X . ,CENTER)
2373 (stencil . ,ly:text-interface::print)
2374 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2375 (meta . ((class . Item)
2376 (interfaces . (font-interface
2377 piano-pedal-script-interface
2378 self-alignment-interface
2379 text-interface))))))
2381 (UnaCordaPedalLineSpanner
2385 (minimum-space . 1.0)
2386 (outside-staff-priority . 1000)
2389 (staff-padding . 1.2)
2390 (X-extent . ,ly:axis-group-interface::width)
2391 (Y-extent . ,ly:axis-group-interface::height)
2392 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2393 (meta . ((class . Spanner)
2394 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2395 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2396 (interfaces . (axis-group-interface
2397 piano-pedal-interface
2398 side-position-interface))))))
2404 (stencil . ,ly:vaticana-ligature::print)
2406 (meta . ((class . Spanner)
2407 (interfaces . (font-interface
2408 vaticana-ligature-interface))))))
2413 (positioning-done . ,ly:align-interface::align-to-ideal-distances)
2415 (vertical-skylines . ,ly:axis-group-interface::combine-skylines)
2416 (X-extent . ,ly:axis-group-interface::width)
2417 (Y-extent . ,ly:axis-group-interface::height)
2418 (meta . ((class . Spanner)
2419 (object-callbacks . ((Y-common . ,ly:axis-group-interface::calc-y-common)
2420 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)
2421 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)))
2422 (interfaces . (align-interface
2423 axis-group-interface))))))
2427 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2429 (default-staff-staff-spacing . ((basic-distance . 9)
2430 (minimum-distance . 8)
2432 (nonstaff-unrelatedstaff-spacing . ((padding . 0.5)))
2433 (staff-staff-spacing . ,ly:axis-group-interface::calc-staff-staff-spacing)
2434 (stencil . ,ly:axis-group-interface::print)
2435 (vertical-skylines . ,ly:hara-kiri-group-spanner::calc-skylines)
2436 (X-extent . ,ly:axis-group-interface::width)
2437 (Y-extent . ,ly:hara-kiri-group-spanner::y-extent)
2438 (Y-offset . ,ly:hara-kiri-group-spanner::force-hara-kiri-callback)
2439 (meta . ((class . Spanner)
2440 (object-callbacks . (
2441 (X-common . ,ly:axis-group-interface::calc-x-common)
2442 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2443 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2445 (interfaces . (axis-group-interface
2446 hara-kiri-group-spanner-interface))))))
2450 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2451 (bound-details . ((right . ((attach-dir . ,CENTER)
2454 (left . ((attach-dir . ,CENTER)
2459 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2461 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2462 (stencil . ,ly:line-spanner::print)
2466 (meta . ((class . Spanner)
2467 (interfaces . (line-interface
2468 line-spanner-interface))))))
2473 (edge-height . (2.0 . 2.0)) ;; staff-space;
2474 (font-encoding . fetaText)
2476 (stencil . ,ly:volta-bracket-interface::print)
2477 (thickness . 1.6) ;; line-thickness
2479 (meta . ((class . Spanner)
2480 (interfaces . (font-interface
2481 horizontal-bracket-interface
2483 side-position-interface
2485 volta-bracket-interface
2486 volta-interface))))))
2488 (VoltaBracketSpanner
2490 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
2494 (outside-staff-priority . 600)
2497 (X-extent . ,ly:axis-group-interface::width)
2498 (Y-extent . ,ly:axis-group-interface::height)
2499 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2500 (meta . ((class . Spanner)
2501 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2502 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2503 (interfaces . (axis-group-interface
2504 side-position-interface
2505 volta-interface))))))
2509 (define (completize-grob-entry x)
2510 "Transplant assoc key into 'name entry of 'meta of X. Set interfaces for Item, Spanner etc.
2512 ;; (display (car x))
2514 (let* ((name-sym (car x))
2515 (grob-entry (cdr x))
2516 (meta-entry (assoc-get 'meta grob-entry))
2517 (class (assoc-get 'class meta-entry))
2519 (assoc-get 'interfaces meta-entry)))
2523 (set! ifaces-entry (cons 'item-interface ifaces-entry)))
2524 ((eq? 'Spanner class)
2525 (set! ifaces-entry (cons 'spanner-interface ifaces-entry)))
2526 ((eq? 'Paper_column class)
2527 (set! ifaces-entry (cons 'item-interface
2528 (cons 'paper-column-interface ifaces-entry))))
2529 ((eq? 'System class)
2530 (set! ifaces-entry (cons 'system-interface
2531 (cons 'spanner-interface ifaces-entry))))
2533 (ly:warning "Unknown class ~a" class)))
2535 (set! ifaces-entry (uniq-list (sort ifaces-entry symbol<?)))
2536 (set! ifaces-entry (cons 'grob-interface ifaces-entry))
2538 (set! meta-entry (assoc-set! meta-entry 'name name-sym))
2539 (set! meta-entry (assoc-set! meta-entry 'interfaces
2541 (set! grob-entry (assoc-set! grob-entry 'meta meta-entry))
2542 (cons name-sym grob-entry)))
2544 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
2546 ;; (display (map pair? all-grob-descriptions))
2548 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
2551 ;; (display (car x)) (newline)
2553 (set-object-property! (car x) 'translation-type? list?)
2554 (set-object-property! (car x) 'is-grob? #t))
2555 all-grob-descriptions)
2557 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))
2559 (define (volta-bracket-interface::pure-height grob start end)
2560 (let ((edge-height (ly:grob-property grob 'edge-height)))
2561 (if (number-pair? edge-height)
2562 (let ((smaller (min (car edge-height) (cdr edge-height)))
2563 (larger (max (car edge-height) (cdr edge-height))))
2564 (interval-union '(0 . 0) (cons smaller larger)))
2567 (define pure-print-callbacks
2569 fret-board::calc-stencil
2570 note-head::brew-ez-stencil
2571 print-circled-text-callback
2572 laissez-vibrer::print
2575 ly:mensural-ligature::brew-ligature-primitive
2579 ly:key-signature-interface::print
2580 ly:percent-repeat-item-interface::beat-slash
2581 ly:text-interface::print
2582 ly:script-interface::print
2583 ly:sustain-pedal::print))
2585 ;; Sometimes we have grobs with (Y-extent . ,ly:grob::stencil-height)
2586 ;; and the print function is not pure, but there is a easy way to
2587 ;; figure out the Y-extent from the print function.
2588 (define pure-print-to-height-conversions
2590 (,ly:arpeggio::print . ,ly:arpeggio::pure-height)
2591 (,ly:arpeggio::brew-chord-bracket . ,ly:arpeggio::pure-height)
2592 (,ly:arpeggio::brew-chord-slur . ,ly:arpeggio::pure-height)
2593 (,ly:hairpin::print . ,ly:hairpin::pure-height)
2594 (,ly:stem-tremolo::print . ,ly:stem-tremolo::pure-height)
2595 (,ly:volta-bracket-interface::print . ,volta-bracket-interface::pure-height)))
2597 ;; ly:grob::stencil-extent is safe if the print callback is safe too
2598 (define (pure-stencil-height grob start stop)
2599 (let* ((sten (ly:grob-property-data grob 'stencil))
2600 (pure-height-callback (assoc-get sten pure-print-to-height-conversions)))
2603 (memq sten pure-print-callbacks))
2604 (ly:grob::stencil-height grob))
2605 ((procedure? pure-height-callback)
2606 (pure-height-callback grob start stop))
2610 ;; Sometimes, a pure callback will be chained to a non-pure callback via
2611 ;; chain_offset_callback, in which case this provides a default by simply
2612 ;; passing through the value from the pure callback.
2613 (define (pure-chain-offset-callback grob start end prev-offset) prev-offset)
2615 (define pure-conversions-alist
2617 (,ly:accidental-interface::height . ,ly:accidental-interface::pure-height)
2618 (,ly:axis-group-interface::calc-staff-staff-spacing . ,ly:axis-group-interface::calc-pure-staff-staff-spacing)
2619 (,ly:axis-group-interface::height . ,ly:axis-group-interface::pure-height)
2620 (,ly:beam::rest-collision-callback . ,ly:beam::pure-rest-collision-callback)
2621 (,ly:grob::stencil-height . ,pure-stencil-height)
2622 (,ly:hara-kiri-group-spanner::y-extent . ,ly:hara-kiri-group-spanner::pure-height)
2623 (,ly:rest-collision::force-shift-callback-rest . ,pure-chain-offset-callback)
2624 (,ly:rest::height . ,ly:rest::pure-height)
2625 (,ly:self-alignment-interface::y-aligned-on-self . ,ly:self-alignment-interface::pure-y-aligned-on-self)
2626 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)
2627 (,ly:slur::height . ,ly:slur::pure-height)
2628 (,ly:slur::outside-slur-callback . ,ly:slur::pure-outside-slur-callback)
2629 (,ly:stem::height . ,ly:stem::pure-height)
2630 (,ly:system::height . ,ly:system::calc-pure-height)))
2632 (define pure-functions
2634 parenthesize-elements
2635 laissez-vibrer::print
2636 ly:rest::y-offset-callback
2637 ly:staff-symbol-referencer::callback
2638 ly:staff-symbol::height))
2640 (define-public (pure-relevant? grob)
2641 (let ((extent-callback (ly:grob-property-data grob 'Y-extent)))
2644 (pair? extent-callback)
2645 (memq extent-callback pure-functions)
2647 (pair? (assq extent-callback pure-conversions-alist))
2648 (let ((stencil (ly:grob-property-data grob 'stencil)))
2650 (not (eq? extent-callback ly:grob::stencil-height))
2651 (memq stencil pure-print-callbacks)
2652 (assq stencil pure-print-to-height-conversions)
2653 (ly:stencil? stencil)))))))))
2655 (define-public (call-pure-function unpure args start end)
2656 (if (ly:simple-closure? unpure)
2657 (ly:eval-simple-closure (car args) unpure start end)
2658 (if (not (procedure? unpure))
2660 (if (memq unpure pure-functions)
2662 (let ((pure (assq unpure pure-conversions-alist)))
2666 (list (car args) start end)