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
43 (alteration . ,accidental-interface::calc-alteration)
45 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
47 (stencil . ,ly:accidental-interface::print)
48 (Y-extent . ,ly:accidental-interface::height)
49 (meta . ((class . Item)
50 (interfaces . (accidental-interface
56 (positioning-done . ,ly:accidental-placement::calc-positioning-done)
58 ;; this is quite small, but it is very ugly to have
59 ;; accs closer to the previous note than to the next one.
60 (right-padding . 0.15)
62 ;; for horizontally stacked scripts.
63 (script-priority . -100)
65 (X-extent . ,ly:axis-group-interface::width)
66 (meta . ((class . Item)
67 (interfaces . (accidental-placement-interface))))))
71 (alteration . ,accidental-interface::calc-alteration)
74 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
75 (outside-staff-priority . 0)
77 (self-alignment-X . ,CENTER)
79 (staff-padding . 0.25)
80 (stencil . ,ly:accidental-interface::print)
81 (X-extent . ,ly:accidental-interface::width)
82 (X-offset . ,(ly:make-simple-closure
84 ,(ly:make-simple-closure
85 (list ly:self-alignment-interface::centered-on-x-parent))
86 ,(ly:make-simple-closure
87 (list ly:self-alignment-interface::x-aligned-on-self)))))
88 (Y-extent . ,ly:accidental-interface::height)
89 (Y-offset . ,ly:side-position-interface::y-aligned-side)
90 (meta . ((class . Item)
91 (interfaces . (accidental-interface
92 accidental-suggestion-interface
95 self-alignment-interface
96 side-position-interface))))))
101 (break-align-symbol . ambitus)
102 (break-visibility . ,begin-of-line-visible)
105 (cue-end-clef . (extra-space . 0.5))
106 (clef . (extra-space . 0.5))
107 (cue-clef . (extra-space . 0.5))
108 (key-signature . (extra-space . 0.0))
109 (staff-bar . (extra-space . 0.0))
110 (time-signature . (extra-space . 0.0))
111 (first-note . (fixed-space . 0.0))))
112 (X-extent . ,ly:axis-group-interface::width)
113 (Y-extent . ,ly:axis-group-interface::height)
114 (meta . ((class . Item)
115 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
116 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
117 (interfaces . (ambitus-interface
119 break-aligned-interface))))))
124 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
127 (stencil . ,ly:accidental-interface::print)
128 (X-offset . ,ly:side-position-interface::x-aligned-side)
129 (Y-extent . ,ly:accidental-interface::height)
130 (meta . ((class . Item)
131 (interfaces . (accidental-interface
132 break-aligned-interface
134 side-position-interface))))))
139 (stencil . ,ambitus::print)
141 (X-offset . ,ly:self-alignment-interface::centered-on-x-parent)
142 (meta . ((class . Item)
143 (interfaces . (ambitus-interface
149 (glyph-name . ,note-head::calc-glyph-name)
150 (stencil . ,ly:note-head::print)
151 (Y-offset . ,ly:staff-symbol-referencer::callback)
152 (meta . ((class . Item)
153 (interfaces . (ambitus-interface
157 rhythmic-head-interface
158 staff-symbol-referencer-interface))))))
164 (positions . ,ly:arpeggio::calc-positions)
165 (script-priority . 0)
167 (staff-position . 0.0)
168 (stencil . ,ly:arpeggio::print)
169 (X-extent . ,ly:arpeggio::width)
170 (X-offset . ,ly:side-position-interface::x-aligned-side)
171 (Y-offset . ,ly:staff-symbol-referencer::callback)
172 (meta . ((class . Item)
173 (interfaces . (arpeggio-interface
175 side-position-interface
176 staff-symbol-referencer-interface))))))
180 (stencil . ,ly:balloon-interface::print)
181 (text . ,(grob::calc-property-by-copy 'text))
182 (X-offset . ,(grob::calc-property-by-copy 'X-offset))
183 (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
184 (meta . ((class . Item)
185 (interfaces . (balloon-interface
191 (allow-span-bar . #t)
192 (bar-extent . ,ly:bar-line::calc-bar-extent)
193 (bar-size . ,ly:bar-line::calc-bar-size)
194 (break-align-anchor . ,ly:bar-line::calc-anchor)
195 (break-align-symbol . staff-bar)
196 (break-visibility . ,bar-line::calc-break-visibility)
199 (glyph-name . ,bar-line::calc-glyph-name)
202 ;; Ross. page 151 lists other values, we opt for a leaner look
205 ;; kern should scale with line-thickness too.
208 (hair-thickness . 1.9)
209 (thick-thickness . 6.0)
214 (time-signature . (extra-space . 0.75))
215 (custos . (minimum-space . 2.0))
216 (clef . (minimum-space . 1.0))
217 (key-signature . (extra-space . 1.0))
218 (key-cancellation . (extra-space . 1.0))
219 (first-note . (fixed-space . 1.3))
220 (next-note . (semi-fixed-space . 0.9))
221 (right-edge . (extra-space . 0.0))))
222 (stencil . ,ly:bar-line::print)
223 (meta . ((class . Item)
224 (interfaces . (bar-line-interface
225 break-aligned-interface
230 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
231 ;; want the bar number before the clef at line start.
232 (break-align-symbols . (left-edge staff-bar))
234 (break-visibility . ,begin-of-line-visible)
236 (font-family . roman)
239 (outside-staff-priority . 100)
241 (self-alignment-X . ,RIGHT)
243 (stencil . ,ly:text-interface::print)
244 (X-offset . ,(ly:make-simple-closure
246 ,(ly:make-simple-closure
247 (list ly:break-alignable-interface::self-align-callback))
248 ,(ly:make-simple-closure
249 (list ly:self-alignment-interface::x-aligned-on-self)))))
250 (Y-offset . ,ly:side-position-interface::y-aligned-side)
253 (interfaces . (break-alignable-interface
255 self-alignment-interface
256 side-position-interface
261 (stencil . ,ly:text-interface::print)
262 (meta . ((class . Item)
263 (interfaces . (bass-figure-interface
265 rhythmic-grob-interface
272 (positioning-done . ,ly:align-interface::align-to-minimum-distances)
273 (stacking-dir . ,DOWN)
274 (Y-extent . ,ly:axis-group-interface::height)
275 (meta . ((class . Spanner)
276 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
277 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
278 (interfaces . (align-interface
280 bass-figure-alignment-interface))))))
282 (BassFigureAlignmentPositioning
288 (staff-padding . 1.0)
289 (Y-extent . ,ly:axis-group-interface::height)
290 (Y-offset . ,ly:side-position-interface::y-aligned-side)
291 (meta . ((class . Spanner)
292 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
293 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
294 (interfaces . (axis-group-interface
295 side-position-interface))))))
299 (edge-height . (0.2 . 0.2))
300 (stencil . ,ly:enclosing-bracket::print)
301 (X-extent . ,ly:enclosing-bracket::width)
302 (meta . ((class . Item)
303 (interfaces . (enclosing-bracket-interface))))))
305 (BassFigureContinuation
307 (stencil . ,ly:figured-bass-continuation::print)
308 (Y-offset . ,ly:figured-bass-continuation::center-on-figures)
309 (meta . ((class . Spanner)
310 (interfaces . (figured-bass-continuation-interface))))))
314 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
316 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
317 (Y-extent . ,ly:axis-group-interface::height)
318 (meta . ((class . Spanner)
319 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
320 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
321 (interfaces . (axis-group-interface))))))
326 ;; todo: clean this up a bit: the list is getting
329 (auto-knee-gap . 5.5)
330 (beam-thickness . 0.48) ; in staff-space
332 ;; We have some unreferenced problems here.
334 ;; If we shorten beamed stems less than normal stems (1 staff-space),
335 ;; or high order less than 8th beams, patterns like
336 ;; c''4 [c''8 c''] c''4 [c''16 c]
337 ;; are ugly (different stem lengths).
339 ;; But if we shorten 16th beams as much as 8th beams, a single
340 ;; forced 16th beam looks *very* short.
342 ;; We choose to shorten 8th beams the same as single stems,
343 ;; and high order beams less than 8th beams, so that all
344 ;; isolated shortened beams look nice and a bit shortened,
345 ;; sadly possibly breaking patterns with high order beams.
346 (beamed-stem-shorten . (1.0 0.5 0.25))
348 (beaming . ,ly:beam::calc-beaming)
350 (concaveness . ,ly:beam::calc-concaveness)
351 (cross-staff . ,ly:beam::calc-cross-staff)
355 (secondary-beam-demerit . 10)
356 (stem-length-demerit-factor . 5)
359 (stem-length-limit-penalty . 5000)
360 (damping-direction-penalty . 800)
361 (hint-direction-penalty . 20)
362 (musical-direction-factor . 400)
363 (ideal-slope-factor . 10)
364 (round-to-zero-slope . 0.02)))
365 (direction . ,ly:beam::calc-direction)
367 ;; only for debugging.
368 (font-family . roman)
371 (neutral-direction . ,DOWN)
372 (positions . ,(ly:make-simple-closure
373 (ly:make-simple-closure
374 (list chain-grob-member-functions
376 ly:beam::calc-least-squares-positions
377 ly:beam::slope-damping
378 ly:beam::shift-region-to-valid
382 ;; this is a hack to set stem lengths, if positions is set.
383 (quantized-positions . ,ly:beam::set-stem-lengths)
385 (shorten . ,ly:beam::calc-stem-shorten)
386 (stencil . ,ly:beam::print)
388 (meta . ((class . Spanner)
389 (object-callbacks . ((normal-stems . ,ly:beam::calc-normal-stems)))
390 (interfaces . (beam-interface
392 staff-symbol-referencer-interface
393 unbreakable-spanner-interface))))))
397 (minimum-length . 0.5)
398 (stencil . ,bend::print)
400 (meta . ((class . Spanner)
401 (interfaces . (bend-after-interface
402 spanner-interface))))))
407 (break-align-anchor . ,ly:break-aligned-interface::calc-average-anchor)
408 (break-visibility . ,ly:break-aligned-interface::calc-break-visibility)
409 (X-extent . ,ly:axis-group-interface::width)
410 (meta . ((class . Item)
411 (interfaces . (axis-group-interface
412 break-aligned-interface))))))
417 (break-align-orders . ;; end of line
458 (positioning-done . ,ly:break-alignment-interface::calc-positioning-done)
460 (X-extent . ,ly:axis-group-interface::width)
461 (meta . ((class . Item)
462 (interfaces . (axis-group-interface
463 break-alignment-interface))))))
467 (break-align-symbol . breathing-sign)
468 (break-visibility . ,begin-of-line-invisible)
471 (ambitus . (extra-space . 2.0))
472 (custos . (minimum-space . 1.0))
473 (key-signature . (minimum-space . 1.5))
474 (time-signature . (minimum-space . 1.5))
475 (staff-bar . (minimum-space . 1.5))
476 (clef . (minimum-space . 2.0))
477 (cue-clef . (minimum-space . 2.0))
478 (cue-end-clef . (minimum-space . 2.0))
479 (first-note . (fixed-space . 1.0)) ;huh?
480 (right-edge . (extra-space . 0.1))))
481 (stencil . ,ly:text-interface::print)
482 (text . ,(make-musicglyph-markup "scripts.rcomma"))
483 (Y-offset . ,ly:breathing-sign::offset-callback)
484 (meta . ((class . Item)
485 (interfaces . (break-aligned-interface
486 breathing-sign-interface
492 (after-line-breaking . ,ly:chord-name::after-line-breaking)
495 (stencil . ,ly:text-interface::print)
497 (meta . ((class . Item)
498 (interfaces . (chord-name-interface
500 rhythmic-grob-interface
505 (avoid-slur . inside)
506 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
507 (break-align-symbol . clef)
508 (break-visibility . ,begin-of-line-visible)
509 (glyph-name . ,ly:clef::calc-glyph-name)
511 (space-alist . ((cue-clef . (extra-space . 2.0))
512 (staff-bar . (extra-space . 0.7))
513 (key-cancellation . (minimum-space . 3.5))
514 (key-signature . (minimum-space . 3.5))
515 (time-signature . (minimum-space . 4.2))
516 (first-note . (minimum-fixed-space . 5.0))
517 (next-note . (extra-space . 0.5))
518 (right-edge . (extra-space . 0.5))))
519 (stencil . ,ly:clef::print)
520 (extra-spacing-height . (-0.5 . 0.5))
521 (Y-offset . ,ly:staff-symbol-referencer::callback)
522 (meta . ((class . Item)
523 (interfaces . (break-aligned-interface
526 staff-symbol-referencer-interface))))))
530 (cross-staff . ,ly:cluster::calc-cross-staff)
531 (minimum-length . 0.0)
533 (springs-and-rods . ,ly:spanner::set-spacing-rods)
534 (stencil . ,ly:cluster::print)
536 (meta . ((class . Spanner)
537 (interfaces . (cluster-interface))))))
539 (ClusterSpannerBeacon
541 (Y-extent . ,ly:cluster-beacon::height)
542 (meta . ((class . Item)
543 (interfaces . (cluster-beacon-interface
544 rhythmic-grob-interface))))))
548 (avoid-slur . outside)
551 (extra-spacing-width . (+inf.0 . -inf.0))
553 (outside-staff-priority . 450)
555 (script-priority . 200)
557 (staff-padding . 0.5)
558 ;; todo: add X self alignment?
559 (stencil . ,ly:text-interface::print)
560 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
561 (Y-offset . ,ly:side-position-interface::y-aligned-side)
562 (meta . ((class . Item)
563 (interfaces . (font-interface
564 side-position-interface
566 text-script-interface))))))
570 (avoid-slur . inside)
571 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
572 (break-align-symbol . cue-clef)
573 (break-visibility . ,begin-of-line-visible)
575 (glyph-name . ,ly:clef::calc-glyph-name)
577 (full-size-change . #t)
578 (space-alist . ((staff-bar . (minimum-space . 2.7))
579 (key-cancellation . (minimum-space . 3.5))
580 (key-signature . (minimum-space . 3.5))
581 (time-signature . (minimum-space . 4.2))
582 (custos . (minimum-space . 0.0))
583 (first-note . (minimum-fixed-space . 3.0))
584 (next-note . (extra-space . 0.5))
585 (right-edge . (extra-space . 0.5))))
586 (stencil . ,ly:clef::print)
587 (extra-spacing-height . (-0.5 . 0.5))
588 (Y-offset . ,ly:staff-symbol-referencer::callback)
589 (meta . ((class . Item)
590 (interfaces . (break-aligned-interface
593 staff-symbol-referencer-interface))))))
597 (avoid-slur . inside)
598 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
599 (break-align-symbol . cue-end-clef)
600 (break-visibility . ,begin-of-line-invisible)
602 (glyph-name . ,ly:clef::calc-glyph-name)
604 (full-size-change . #t)
605 (space-alist . ((clef . (extra-space . 0.7))
606 (cue-clef . (extra-space . 0.7))
607 (staff-bar . (extra-space . 0.7))
608 (key-cancellation . (minimum-space . 3.5))
609 (key-signature . (minimum-space . 3.5))
610 (time-signature . (minimum-space . 4.2))
611 (first-note . (minimum-fixed-space . 5.0))
612 (next-note . (extra-space . 0.5))
613 (right-edge . (extra-space . 0.5))))
614 (stencil . ,ly:clef::print)
615 (extra-spacing-height . (-0.5 . 0.5))
616 (Y-offset . ,ly:staff-symbol-referencer::callback)
617 (meta . ((class . Item)
618 (interfaces . (break-aligned-interface
621 staff-symbol-referencer-interface))))))
625 (break-align-symbol . custos)
626 (break-visibility . ,end-of-line-visible)
627 (neutral-direction . ,DOWN)
630 (first-note . (minimum-fixed-space . 0.0))
631 (right-edge . (extra-space . 0.1))))
632 (stencil . ,ly:custos::print)
634 (Y-offset . ,ly:staff-symbol-referencer::callback)
635 (meta . ((class . Item)
636 (interfaces . (break-aligned-interface
639 staff-symbol-referencer-interface))))))
645 (positioning-done . ,ly:dot-column::calc-positioning-done)
646 (X-extent . ,ly:axis-group-interface::width)
647 (meta . ((class . Item)
648 (interfaces . (axis-group-interface
649 dot-column-interface))))))
653 (dot-count . ,dots::calc-dot-count)
654 (staff-position . ,dots::calc-staff-position)
655 (stencil . ,ly:dots::print)
656 (extra-spacing-height . (-0.5 . 0.5))
657 (meta . ((class . Item)
658 (interfaces . (dots-interface
660 staff-symbol-referencer-interface))))))
664 (break-align-symbol . staff-bar)
665 (break-visibility . ,begin-of-line-invisible)
666 (dot-negative-kern . 0.75)
667 (font-encoding . fetaMusic)
669 (slash-negative-kern . 1.6)
671 (stencil . ,ly:percent-repeat-item-interface::double-percent)
674 (meta . ((class . Item)
675 (interfaces . (break-aligned-interface
677 percent-repeat-interface
678 percent-repeat-item-interface))))))
680 (DoublePercentRepeatCounter
683 (font-encoding . fetaText)
686 (self-alignment-X . ,CENTER)
688 (staff-padding . 0.25)
689 (stencil . ,ly:text-interface::print)
690 (X-offset . ,(ly:make-simple-closure
692 ,(ly:make-simple-closure
693 (list ly:self-alignment-interface::centered-on-y-parent))
694 ,(ly:make-simple-closure
695 (list ly:self-alignment-interface::x-aligned-on-self)))))
696 (Y-offset . ,ly:side-position-interface::y-aligned-side)
697 (meta . ((class . Item)
698 (interfaces . (font-interface
699 percent-repeat-interface
700 percent-repeat-item-interface
701 self-alignment-interface
702 side-position-interface
708 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
710 (minimum-space . 1.2)
711 (outside-staff-priority . 250)
715 (staff-padding . 0.1)
716 (X-extent . ,ly:axis-group-interface::width)
717 (Y-extent . ,ly:axis-group-interface::height)
718 (Y-offset . ,ly:side-position-interface::y-aligned-side)
719 (meta . ((class . Spanner)
720 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
721 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
722 (interfaces . (axis-group-interface
724 dynamic-line-spanner-interface
725 side-position-interface))))))
732 (direction . ,ly:script-interface::calc-direction)
733 (extra-spacing-width . (+inf.0 . -inf.0))
734 (font-encoding . fetaText)
736 (font-shape . italic)
737 (outside-staff-priority . 250)
738 (positioning-done . ,ly:script-interface::calc-positioning-done)
739 (right-padding . 0.5)
740 (self-alignment-X . ,CENTER)
741 (self-alignment-Y . ,CENTER)
742 (stencil . ,ly:text-interface::print)
743 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
744 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
745 (meta . ((class . Item)
746 (interfaces . (dynamic-interface
747 dynamic-text-interface
750 self-alignment-interface
755 (before-line-breaking . ,dynamic-text-spanner::before-line-breaking)
756 (bound-details . ((right . ((attach-dir . ,LEFT)
760 (right-broken . ((attach-dir . ,RIGHT)
764 (left . ((attach-dir . ,LEFT)
766 (stencil-offset . (-0.75 . -0.5))
769 (left-broken . ((attach-dir . ,RIGHT)
772 (dash-fraction . 0.2)
775 ;; rather ugh with NCSB
776 ;; (font-series . bold)
777 (font-shape . italic)
779 ;; need to blend with dynamic texts.
782 (left-bound-info . ,ly:line-spanner::calc-left-bound-info-and-text)
784 ;; make sure the spanner doesn't get too close to notes
785 (minimum-Y-extent . (-1 . 1))
787 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
788 (stencil . ,ly:line-spanner::print)
789 (style . dashed-line)
790 (meta . ((class . Spanner)
791 (interfaces . (dynamic-interface
792 dynamic-text-spanner-interface
795 line-spanner-interface
802 (bound-details . ((left . ((Y . 0)
808 (attach-dir . ,RIGHT)
812 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
813 (quantize-position . #t)
814 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
816 (stencil . ,ly:line-spanner::print)
818 (Y-offset . ,ly:side-position-interface::y-aligned-side)
819 (meta . ((class . Spanner)
820 (interfaces . (episema-interface
823 line-spanner-interface
824 side-position-interface))))))
830 ;; sync with TextScript (?)
832 (avoid-slur . around)
833 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
834 (direction . ,ly:script-interface::calc-direction)
835 (font-encoding . fetaText)
836 (font-size . -5) ; don't overlap when next to heads.
838 (positioning-done . ,ly:script-interface::calc-positioning-done)
839 (script-priority . 100)
840 (self-alignment-X . ,CENTER)
841 (self-alignment-Y . ,CENTER)
843 (staff-padding . 0.5)
844 (stencil . ,ly:text-interface::print)
845 (text . ,fingering::calc-text)
846 (meta . ((class . Item)
847 (interfaces . (finger-interface
849 self-alignment-interface
850 side-position-interface
852 text-script-interface))))))
856 (after-line-breaking . ,ly:chord-name::after-line-breaking)
857 (fret-diagram-details . ((finger-code . below-string)))
858 (stencil . ,fret-board::calc-stencil)
859 (meta . ((class . Item)
860 (interfaces . (chord-name-interface
862 fret-diagram-interface
863 rhythmic-grob-interface))))))
868 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
869 (bound-details . ((right . ((attach-dir . ,CENTER)
872 (left . ((attach-dir . ,CENTER)
877 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
878 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
879 (stencil . ,ly:line-spanner::print)
883 (zigzag-width . 0.75)
884 (meta . ((class . Spanner)
885 (interfaces . (glissando-interface
887 line-spanner-interface
888 unbreakable-spanner-interface))))))
892 (common-shortest-duration . ,grace-spacing::calc-shortest-duration)
893 (shortest-duration-space . 1.6)
894 (spacing-increment . 0.8)
895 (meta . ((class . Spanner)
896 (interfaces . (grace-spacing-interface
897 spacing-options-interface
898 spanner-interface))))))
903 (self-alignment-X . ,CENTER)
904 (stencil . ,ly:grid-line-interface::print)
905 (X-extent . ,ly:grid-line-interface::width)
906 (X-offset . ,(ly:make-simple-closure
908 ,(ly:make-simple-closure
909 (list ly:self-alignment-interface::centered-on-x-parent))
910 ,(ly:make-simple-closure
911 (list ly:self-alignment-interface::x-aligned-on-self)))))
912 (meta . ((class . Item)
913 (interfaces . (grid-line-interface
914 self-alignment-interface))))))
920 (meta . ((class . Item)
921 (interfaces . (grid-point-interface))))))
926 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
927 (bound-padding . 1.0)
929 (grow-direction . ,hairpin::calc-grow-direction)
931 (minimum-length . 2.0)
932 (self-alignment-Y . ,CENTER)
933 (springs-and-rods . ,ly:spanner::set-spacing-rods)
934 (stencil . ,ly:hairpin::print)
937 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
938 (meta . ((class . Spanner)
939 (interfaces . (dynamic-interface
942 self-alignment-interface
943 spanner-interface))))))
947 (bracket-flare . (0.5 . 0.5))
948 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
952 (staff-padding . 0.2)
953 (stencil . ,ly:horizontal-bracket::print)
955 (Y-offset . ,ly:side-position-interface::y-aligned-side)
956 (meta . ((class . Spanner)
957 (interfaces . (horizontal-bracket-interface
959 side-position-interface
960 spanner-interface))))))
967 (self-alignment-X . ,CENTER)
968 (self-alignment-Y . ,CENTER)
969 (stencil . ,system-start-text::print)
970 (X-offset . ,system-start-text::calc-x-offset)
971 (Y-offset . ,system-start-text::calc-y-offset)
972 (meta . ((class . Spanner)
973 (interfaces . (font-interface
974 self-alignment-interface
975 side-position-interface
976 system-start-text-interface))))))
981 (extra-spacing-width . (+inf.0 . -inf.0))
982 (outside-staff-priority . 500)
984 (self-alignment-X . ,LEFT)
986 (staff-padding . 0.5)
987 (stencil . ,ly:text-interface::print)
988 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
989 (Y-offset . ,ly:side-position-interface::y-aligned-side)
990 (meta . ((class . Item)
991 (interfaces . (font-interface
992 self-alignment-interface
993 side-position-interface
999 (break-align-symbol . key-cancellation)
1000 (break-visibility . ,begin-of-line-invisible)
1001 (glyph-name-alist . ,cancellation-glyph-name-alist)
1004 (time-signature . (extra-space . 1.25))
1005 (staff-bar . (extra-space . 0.6))
1006 (key-signature . (extra-space . 0.5))
1007 (cue-clef . (extra-space . 0.5))
1008 (right-edge . (extra-space . 0.5))
1009 (first-note . (fixed-space . 2.5))))
1010 (stencil . ,ly:key-signature-interface::print)
1011 (Y-offset . ,ly:staff-symbol-referencer::callback)
1012 (meta . ((class . Item)
1013 (interfaces . (break-aligned-interface
1015 key-cancellation-interface
1016 key-signature-interface
1017 staff-symbol-referencer-interface))))))
1021 (avoid-slur . inside)
1022 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1023 (break-align-symbol . key-signature)
1024 (break-visibility . ,begin-of-line-visible)
1025 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
1028 (time-signature . (extra-space . 1.15))
1029 (staff-bar . (extra-space . 1.1))
1030 (cue-clef . (extra-space . 0.5))
1031 (right-edge . (extra-space . 0.5))
1032 (first-note . (fixed-space . 2.5))))
1033 (stencil . ,ly:key-signature-interface::print)
1034 (Y-offset . ,ly:staff-symbol-referencer::callback)
1035 (meta . ((class . Item)
1036 (interfaces . (break-aligned-interface
1038 key-signature-interface
1039 staff-symbol-referencer-interface))))))
1044 (control-points . ,ly:semi-tie::calc-control-points)
1045 (details . ((ratio . 0.333)
1046 (height-limit . 1.0)))
1047 (direction . ,ly:tie::calc-direction)
1048 (head-direction . ,LEFT)
1049 (stencil . ,laissez-vibrer::print)
1051 (extra-spacing-height . (-0.5 . 0.5))
1052 (meta . ((class . Item)
1053 (interfaces . (semi-tie-interface))))))
1055 (LaissezVibrerTieColumn
1057 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1058 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1061 (meta . ((class . Item)
1062 (interfaces . (semi-tie-column-interface))))))
1067 (length-fraction . 0.25)
1068 (minimum-length-fraction . 0.25)
1069 (springs-and-rods . ,ly:ledger-line-spanner::set-spacing-rods)
1070 (stencil . ,ly:ledger-line-spanner::print)
1073 (meta . ((class . Spanner)
1074 (interfaces . (ledger-line-spanner-interface))))))
1078 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1079 (break-align-symbol . left-edge)
1080 (break-visibility . ,center-invisible)
1083 (ambitus . (extra-space . 2.0))
1084 (breathing-sign . (minimum-space . 0.0))
1085 (cue-end-clef . (extra-space . 0.8))
1086 (clef . (extra-space . 0.8))
1087 (cue-clef . (extra-space . 0.8))
1088 (staff-bar . (extra-space . 0.0))
1089 (key-cancellation . (extra-space . 0.0))
1090 (key-signature . (extra-space . 0.8))
1091 (time-signature . (extra-space . 1.0))
1092 (custos . (extra-space . 0.0))
1093 (first-note . (fixed-space . 2.0))
1094 (right-edge . (extra-space . 0.0))
1096 (X-extent . (0 . 0))
1097 (meta . ((class . Item)
1098 (interfaces . (break-aligned-interface))))))
1102 ;; ugh. A ligature bracket is totally different from
1103 ;; a tuplet bracket.
1105 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
1106 (control-points . ,ly:tuplet-bracket::calc-control-points)
1108 (edge-height . (0.7 . 0.7))
1110 (positions . ,ly:tuplet-bracket::calc-positions)
1111 (shorten-pair . (-0.2 . -0.2))
1112 (staff-padding . 0.25)
1113 (stencil . ,ly:tuplet-bracket::print)
1115 (meta . ((class . Spanner)
1116 (interfaces . (line-interface
1117 tuplet-bracket-interface))))))
1121 (minimum-length . 1.5)
1122 (stencil . ,ly:lyric-extender::print)
1123 (thickness . 0.8) ; line-thickness
1124 (Y-extent . (0 . 0))
1125 (meta . ((class . Spanner)
1126 (interfaces . (lyric-extender-interface
1127 lyric-interface))))))
1131 (dash-period . 10.0)
1134 (minimum-distance . 0.1)
1135 (minimum-length . 0.3)
1137 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1138 (stencil . ,ly:lyric-hyphen::print)
1140 (Y-extent . (0 . 0))
1141 (meta . ((class . Spanner)
1142 (interfaces . (font-interface
1143 lyric-hyphen-interface
1145 spanner-interface))))))
1149 (minimum-distance . 0.45)
1151 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1154 (meta . ((class . Spanner)
1155 (interfaces . (lyric-hyphen-interface
1156 spanner-interface))))))
1160 (extra-spacing-width . (0.0 . 0.0))
1161 (font-series . medium)
1163 (self-alignment-X . ,CENTER)
1164 (stencil . ,lyric-text::print)
1165 (text . ,(grob::calc-property-by-copy 'text))
1167 (X-offset . ,ly:self-alignment-interface::aligned-on-x-parent)
1168 (meta . ((class . Item)
1169 (interfaces . (font-interface
1170 lyric-syllable-interface
1171 rhythmic-grob-interface
1172 self-alignment-interface
1173 text-interface))))))
1183 (stencil . ,ly:measure-grouping::print)
1185 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1186 (meta . ((class . Spanner)
1187 (interfaces . (measure-grouping-interface
1188 side-position-interface))))))
1192 (neutral-direction . ,DOWN)
1193 (meta . ((class . Item)
1194 (interfaces . (melody-spanner-interface))))))
1198 (stencil . ,ly:mensural-ligature::print)
1200 (meta . ((class . Spanner)
1201 (interfaces . (font-interface
1202 mensural-ligature-interface))))))
1206 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1207 (break-visibility . ,end-of-line-invisible)
1209 (extra-spacing-width . (+inf.0 . -inf.0))
1210 (outside-staff-priority . 1000)
1213 (stencil . ,ly:text-interface::print)
1214 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1215 (X-offset . ,(ly:make-simple-closure
1217 ,(ly:make-simple-closure
1218 (list ly:break-alignable-interface::self-align-callback))
1219 ,(ly:make-simple-closure
1220 (list ly:self-alignment-interface::x-aligned-on-self)))))
1221 (self-alignment-X . ,LEFT)
1222 (break-align-symbols . (time-signature))
1223 (non-break-align-symbols . (multi-measure-rest-interface))
1225 (meta . ((class . Item)
1226 (interfaces . (break-alignable-interface
1228 metronome-mark-interface
1229 self-alignment-interface
1230 side-position-interface
1231 text-interface))))))
1236 (hair-thickness . 2.0)
1238 (spacing-pair . (break-alignment . break-alignment))
1239 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1240 (staff-position . 0)
1241 (stencil . ,ly:multi-measure-rest::print)
1242 (thick-thickness . 6.6)
1243 (Y-offset . ,ly:staff-symbol-referencer::callback)
1244 (meta . ((class . Spanner)
1245 (interfaces . (font-interface
1246 multi-measure-interface
1247 multi-measure-rest-interface
1249 staff-symbol-referencer-interface))))))
1251 (MultiMeasureRestNumber
1253 (bound-padding . 2.0)
1255 (font-encoding . fetaText)
1257 (self-alignment-X . ,CENTER)
1259 (springs-and-rods . ,ly:multi-measure-rest::set-text-rods)
1260 (staff-padding . 0.4)
1261 (stencil . ,ly:text-interface::print)
1262 (X-offset . ,(ly:make-simple-closure
1264 ,(ly:make-simple-closure
1265 (list ly:self-alignment-interface::x-aligned-on-self))
1266 ,(ly:make-simple-closure
1267 (list ly:self-alignment-interface::x-centered-on-y-parent)))))
1268 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1269 (meta . ((class . Spanner)
1270 (interfaces . (font-interface
1271 multi-measure-interface
1272 self-alignment-interface
1273 side-position-interface
1274 text-interface))))))
1276 (MultiMeasureRestText
1279 (outside-staff-priority . 450)
1281 (self-alignment-X . ,CENTER)
1282 (staff-padding . 0.25)
1283 (stencil . ,ly:text-interface::print)
1284 (X-offset . ,(ly:make-simple-closure
1286 ,(ly:make-simple-closure
1287 (list ly:self-alignment-interface::x-centered-on-y-parent))
1288 ,(ly:make-simple-closure
1289 (list ly:self-alignment-interface::x-aligned-on-self)))))
1290 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1291 (meta . ((class . Spanner)
1292 (interfaces . (font-interface
1293 multi-measure-interface
1294 self-alignment-interface
1295 side-position-interface
1296 text-interface))))))
1299 (NonMusicalPaperColumn
1301 (allow-loose-spacing . #t)
1303 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1304 (full-measure-extra-space . 1.0)
1305 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1306 ;; (stencil . ,ly:paper-column::print)
1308 (line-break-permission . allow)
1310 (page-break-permission . allow)
1312 ;; debugging stuff: print column number.
1313 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1315 (X-extent . ,ly:axis-group-interface::width)
1316 (meta . ((class . Paper_column)
1317 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1318 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1319 (interfaces . (axis-group-interface
1321 paper-column-interface
1322 separation-item-interface
1323 spaceable-grob-interface))))))
1328 (positioning-done . ,ly:note-collision-interface::calc-positioning-done)
1329 (prefer-dotted-right . #t)
1330 (X-extent . ,ly:axis-group-interface::width)
1331 (Y-extent . ,ly:axis-group-interface::height)
1332 (meta . ((class . Item)
1333 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1334 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1335 (interfaces . (axis-group-interface
1336 note-collision-interface))))))
1341 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1342 (X-extent . ,ly:axis-group-interface::width)
1343 (Y-extent . ,ly:axis-group-interface::height)
1344 (meta . ((class . Item)
1345 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1346 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1347 (interfaces . (axis-group-interface
1348 note-column-interface
1349 separation-item-interface))))))
1354 (duration-log . ,note-head::calc-duration-log)
1355 (extra-spacing-height . ,ly:note-head::include-ledger-line-height)
1356 (glyph-name . ,note-head::calc-glyph-name)
1357 (ligature-flexa . #f)
1358 (stem-attachment . ,ly:note-head::calc-stem-attachment)
1359 (stencil . ,ly:note-head::print)
1360 (X-offset . ,ly:note-head::stem-x-shift)
1361 (Y-offset . ,ly:staff-symbol-referencer::callback)
1362 (meta . ((class . Item)
1363 (interfaces . (font-interface
1364 gregorian-ligature-interface
1366 mensural-ligature-interface
1368 rhythmic-grob-interface
1369 rhythmic-head-interface
1370 staff-symbol-referencer-interface
1371 vaticana-ligature-interface))))))
1375 (stencil . ,ly:text-interface::print)
1376 (meta . ((class . Item)
1377 (interfaces . (font-interface
1379 text-interface))))))
1383 ;; Changed this from 0.75.
1384 ;; If you ever change this back, please document! --hwn
1385 (knee-spacing-correction . 1.0)
1386 (same-direction-correction . 0.25)
1387 (space-to-barline . #t)
1388 (stem-spacing-correction . 0.5)
1389 (meta . ((class . Item)
1390 (interfaces . (note-spacing-interface
1391 spacing-interface))))))
1396 (break-visibility . ,inherit-x-parent-visibility)
1397 (font-shape . italic)
1399 (self-alignment-X . ,CENTER)
1400 (staff-padding . 0.2)
1401 (stencil . ,ly:text-interface::print)
1402 (X-offset . ,(ly:make-simple-closure
1404 ,(ly:make-simple-closure
1405 (list ly:self-alignment-interface::x-aligned-on-self))
1406 ,(ly:make-simple-closure
1407 (list ly:self-alignment-interface::centered-on-x-parent)))))
1408 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1409 (meta . ((class . Item)
1410 (interfaces . (font-interface
1411 self-alignment-interface
1412 side-position-interface
1413 text-interface))))))
1417 (dash-fraction . 0.3)
1419 (edge-height . (0 . 1.2))
1420 (font-shape . italic)
1421 (minimum-length . 1.0)
1422 (outside-staff-priority . 400)
1424 (shorten-pair . (0.0 . -0.6))
1425 (staff-padding . 1.0)
1426 (stencil . ,ly:ottava-bracket::print)
1427 (style . dashed-line)
1428 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1429 (meta . ((class . Spanner)
1430 (interfaces . (font-interface
1431 horizontal-bracket-interface
1433 ottava-bracket-interface
1434 side-position-interface
1435 text-interface))))))
1440 (allow-loose-spacing . #t)
1442 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1443 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1444 ;; (stencil . ,ly:paper-column::print)
1445 (X-extent . ,ly:axis-group-interface::width)
1448 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1449 (meta . ((class . Paper_column)
1450 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1451 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1452 (interfaces . (axis-group-interface
1454 paper-column-interface
1455 separation-item-interface
1456 spaceable-grob-interface))))))
1462 (stencil . ,parentheses-item::print)
1463 (stencils . ,parentheses-item::calc-parenthesis-stencils)
1464 (meta . ((class . Item)
1465 (interfaces . (font-interface
1466 parentheses-interface))))))
1470 (dot-negative-kern . 0.75)
1471 (font-encoding . fetaMusic)
1473 (spacing-pair . (break-alignment . staff-bar))
1474 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1475 (stencil . ,ly:multi-measure-rest::percent)
1477 (meta . ((class . Spanner)
1478 (interfaces . (font-interface
1479 multi-measure-rest-interface
1480 percent-repeat-interface))))))
1482 (PercentRepeatCounter
1485 (font-encoding . fetaText)
1488 (self-alignment-X . ,CENTER)
1489 (staff-padding . 0.25)
1490 (stencil . ,ly:text-interface::print)
1491 (X-offset . ,(ly:make-simple-closure
1493 ,(ly:make-simple-closure
1494 (list ly:self-alignment-interface::x-centered-on-y-parent))
1495 ,(ly:make-simple-closure
1496 (list ly:self-alignment-interface::x-aligned-on-self)))))
1497 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1498 (meta . ((class . Spanner)
1499 (interfaces . (font-interface
1500 percent-repeat-interface
1501 self-alignment-interface
1502 side-position-interface
1503 text-interface))))))
1507 (control-points . ,ly:slur::calc-control-points)
1508 (cross-staff . ,ly:slur::calc-cross-staff)
1509 (details . ,default-slur-details)
1510 (direction . ,ly:slur::calc-direction)
1511 (height-limit . 2.0)
1512 (minimum-length . 1.5)
1514 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1515 (stencil . ,ly:slur::print)
1517 (Y-extent . ,ly:slur::height)
1518 (meta . ((class . Spanner)
1519 (interfaces . (slur-interface))))))
1521 ;; an example of a text spanner
1524 (bound-padding . 1.0)
1525 (bracket-flare . (0.5 . 0.5))
1527 (edge-height . (1.0 . 1.0))
1528 (shorten-pair . (0.0 . 0.0))
1529 (stencil . ,ly:piano-pedal-bracket::print)
1532 (meta . ((class . Spanner)
1533 (interfaces . (line-interface
1534 piano-pedal-bracket-interface
1535 piano-pedal-interface))))))
1540 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1542 (break-align-symbols . (staff-bar clef))
1543 (break-visibility . ,end-of-line-invisible)
1545 (extra-spacing-width . (+inf.0 . -inf.0))
1548 (outside-staff-priority . 1500)
1550 (self-alignment-X . ,CENTER)
1551 (stencil . ,ly:text-interface::print)
1552 (X-offset . ,(ly:make-simple-closure
1554 ,(ly:make-simple-closure
1555 (list ly:break-alignable-interface::self-align-callback))
1556 ,(ly:make-simple-closure
1557 (list ly:self-alignment-interface::x-aligned-on-self)))))
1558 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1559 (meta . ((class . Item)
1560 (interfaces . (break-alignable-interface
1563 self-alignment-interface
1564 side-position-interface
1565 text-interface))))))
1570 (stencil . ,ly:percent-repeat-item-interface::beat-slash)
1572 (meta . ((class . Item)
1573 (interfaces . (percent-repeat-interface
1574 percent-repeat-item-interface
1575 rhythmic-grob-interface))))))
1579 (control-points . ,ly:semi-tie::calc-control-points)
1580 (details . ((ratio . 0.333)
1581 (height-limit . 1.0)))
1582 (direction . ,ly:tie::calc-direction)
1583 (head-direction . ,RIGHT)
1584 (stencil . ,ly:tie::print)
1586 (extra-spacing-height . (-0.5 . 0.5))
1587 (meta . ((class . Item)
1588 (interfaces . (semi-tie-interface))))))
1592 (direction . ,ly:tie::calc-direction)
1593 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1594 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1597 (meta . ((class . Item)
1598 (interfaces . (semi-tie-column-interface))))))
1602 (cross-staff . ,ly:rest::calc-cross-staff)
1603 (duration-log . ,stem::calc-duration-log)
1604 (minimum-distance . 0.25)
1605 (stencil . ,ly:rest::print)
1606 (X-extent . ,ly:rest::width)
1607 (Y-extent . ,ly:rest::height)
1608 (Y-offset . ,ly:rest::y-offset-callback)
1609 (meta . ((class . Item)
1610 (interfaces . (font-interface
1612 rhythmic-grob-interface
1613 rhythmic-head-interface
1614 staff-symbol-referencer-interface))))))
1618 (minimum-distance . 0.75)
1619 (positioning-done . ,ly:rest-collision::calc-positioning-done)
1620 (meta . ((class . Item)
1621 (interfaces . (rest-collision-interface))))))
1626 (add-stem-support . #t)
1627 (cross-staff . ,ly:script-interface::calc-cross-staff)
1628 (direction . ,ly:script-interface::calc-direction)
1629 (font-encoding . fetaMusic)
1630 (positioning-done . ,ly:script-interface::calc-positioning-done)
1633 ;; padding set in script definitions.
1634 (staff-padding . 0.25)
1636 (stencil . ,ly:script-interface::print)
1637 (X-offset . ,script-interface::calc-x-offset)
1638 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1639 (meta . ((class . Item)
1640 (interfaces . (font-interface
1642 side-position-interface))))))
1646 (before-line-breaking . ,ly:script-column::before-line-breaking)
1647 (meta . ((class . Item)
1648 (interfaces . (script-column-interface))))))
1652 (before-line-breaking . ,ly:script-column::row-before-line-breaking)
1653 (meta . ((class . Item)
1654 (interfaces . (script-column-interface))))))
1658 (avoid-slur . inside)
1659 (control-points . ,ly:slur::calc-control-points)
1660 (cross-staff . ,ly:slur::calc-cross-staff)
1661 (details . ,default-slur-details)
1662 (direction . ,ly:slur::calc-direction)
1663 (height-limit . 2.0)
1664 (line-thickness . 0.8)
1665 (minimum-length . 1.5)
1667 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1668 (stencil . ,ly:slur::print)
1670 (Y-extent . ,ly:slur::height)
1671 (meta . ((class . Spanner)
1672 (interfaces . (slur-interface))))))
1676 (direction . ,RIGHT)
1677 (extra-spacing-width . (+inf.0 . -inf.0))
1678 (font-shape . italic)
1679 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
1680 (self-alignment-X . ,CENTER)
1681 (stencil . ,ly:text-interface::print)
1682 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1683 (meta . ((class . Item)
1684 (interfaces . (font-interface
1685 piano-pedal-script-interface
1686 self-alignment-interface
1687 text-interface))))))
1689 (SostenutoPedalLineSpanner
1693 (minimum-space . 1.0)
1694 (outside-staff-priority . 1000)
1697 (staff-padding . 1.0)
1698 (X-extent . ,ly:axis-group-interface::width)
1699 (Y-extent . ,ly:axis-group-interface::height)
1700 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1701 (meta . ((class . Spanner)
1702 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1703 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1704 (interfaces . (axis-group-interface
1705 piano-pedal-interface
1706 side-position-interface))))))
1710 (average-spacing-wishes . #t)
1711 (base-shortest-duration . ,(ly:make-moment 3 16))
1712 (common-shortest-duration . ,ly:spacing-spanner::calc-common-shortest-duration)
1713 (shortest-duration-space . 2.0)
1714 (spacing-increment . 1.2)
1715 (springs-and-rods . ,ly:spacing-spanner::set-springs)
1716 (meta . ((class . Spanner)
1717 (interfaces . (spacing-options-interface
1718 spacing-spanner-interface))))))
1722 (allow-span-bar . #t)
1723 (bar-extent . ,ly:axis-group-interface::height)
1724 (bar-size . ,ly:span-bar::calc-bar-size)
1725 (before-line-breaking . ,ly:span-bar::before-line-breaking)
1726 (break-align-symbol . staff-bar)
1728 (glyph-name . ,ly:span-bar::calc-glyph-name)
1730 ;; ugh duplication! (these 4 properties were copied from Barline)
1732 ;; Ross. page 151 lists other values, we opt for a leaner look
1736 (hair-thickness . 1.6)
1737 (thick-thickness . 6.0)
1741 (stencil . ,ly:span-bar::print)
1742 (X-extent . ,ly:span-bar::width)
1743 (Y-extent . ,ly:axis-group-interface::height)
1744 (meta . ((class . Item)
1745 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1746 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1747 (interfaces . (bar-line-interface
1749 span-bar-interface))))))
1753 (staff-staff-spacing . ((basic-distance . 9)
1754 (minimum-distance . 7)
1756 (stretchability . 5)))
1757 (staffgroup-staff-spacing . ((basic-distance . 10.5)
1758 (minimum-distance . 8)
1760 (stretchability . 9)))
1761 (meta . ((class . Spanner)
1762 (interfaces . (staff-grouper-interface))))))
1767 (stem-spacing-correction . 0.4)
1768 (meta . ((class . Item)
1769 (interfaces . (spacing-interface
1770 staff-spacing-interface))))))
1775 (ledger-line-thickness . (1.0 . 0.1))
1777 (stencil . ,ly:staff-symbol::print)
1778 (Y-extent . ,ly:staff-symbol::height)
1779 (meta . ((class . Spanner)
1780 (interfaces . (staff-symbol-interface))))))
1785 (font-series . bold)
1788 (stencil . ,ly:text-interface::print)
1789 (X-offset . ,ly:side-position-interface::x-aligned-side)
1790 (meta . ((class . Item)
1791 (interfaces . (font-interface
1792 side-position-interface
1793 stanza-number-interface
1794 text-interface))))))
1798 (beamlet-default-length . (1.1 . 1.1))
1799 (beamlet-max-length-proportion . (0.75 . 0.75))
1800 (cross-staff . ,ly:stem::calc-cross-staff)
1801 (default-direction . ,ly:stem::calc-default-direction)
1804 ;; 3.5 (or 3 measured from note head) is standard length
1805 ;; 32nd, 64th, 128th flagged stems should be longer
1806 (lengths . (3.5 3.5 3.5 4.5 5.0 6.0))
1808 ;; FIXME. 3.5 yields too long beams (according to Ross and
1809 ;; looking at Baerenreiter examples) for a number of common
1810 ;; boundary cases. Subtracting half a beam thickness fixes
1811 ;; this, but the bug may well be somewhere else.
1813 ;; FIXME this should come from 'lengths
1814 (beamed-lengths . (3.26 3.5 3.6))
1816 ;; The 'normal' minima
1817 (beamed-minimum-free-lengths . (1.83 1.5 1.25))
1818 ;(beamed-minimum-free-lengths . (2.0 1.83 1.25))
1820 ;; The 'extreme case' minima
1821 (beamed-extreme-minimum-free-lengths . (2.0 1.25))
1823 ;; Stems in unnatural (forced) direction should be shortened by
1824 ;; one staff space, according to [Roush & Gourlay].
1825 ;; Flagged stems we shorten only half a staff space.
1826 (stem-shorten . (1.0 0.5))
1830 ;; We use the normal minima as minimum for the ideal lengths,
1831 ;; and the extreme minima as abolute minimum length.
1833 (direction . ,ly:stem::calc-direction)
1834 (duration-log . ,stem::calc-duration-log)
1835 (flag . ,ly:stem::calc-flag)
1836 (length . ,ly:stem::calc-length)
1837 (neutral-direction . ,DOWN)
1838 (positioning-done . ,ly:stem::calc-positioning-done)
1839 (stem-end-position . ,ly:stem::calc-stem-end-position)
1840 (stem-info . ,ly:stem::calc-stem-info)
1841 (stencil . ,ly:stem::print)
1843 (X-extent . ,ly:stem::width)
1844 (X-offset . ,ly:stem::offset-callback)
1845 (Y-extent . ,ly:stem::height)
1846 (Y-offset . ,ly:staff-symbol-referencer::callback)
1847 (meta . ((class . Item)
1848 (interfaces . (font-interface
1849 stem-interface))))))
1853 (beam-thickness . 0.48) ; staff-space
1854 (beam-width . ,ly:stem-tremolo::calc-width) ; staff-space
1855 (slope . ,ly:stem-tremolo::calc-slope)
1856 (stencil . ,ly:stem-tremolo::print)
1857 (style . ,ly:stem-tremolo::calc-style)
1858 (X-extent . ,ly:stem-tremolo::width)
1859 (Y-extent . ,ly:stem-tremolo::height)
1860 (meta . ((class . Item)
1861 (interfaces . (stem-tremolo-interface))))))
1865 (avoid-slur . around)
1866 (font-encoding . fetaText)
1867 (font-size . -5) ; don't overlap when next to heads.
1869 (script-priority . 100)
1870 (self-alignment-X . ,CENTER)
1871 (self-alignment-Y . ,CENTER)
1872 (staff-padding . 0.5)
1873 (stencil . ,print-circled-text-callback)
1874 (text . ,string-number::calc-text)
1875 (meta . ((class . Item)
1876 (interfaces . (font-interface
1877 self-alignment-interface
1878 side-position-interface
1879 string-number-interface
1881 text-script-interface))))))
1885 (digit-names . #("p" "i" "m" "a" "x"))
1886 (font-shape . italic)
1887 (font-size . -4) ; don't overlap when next to heads.
1889 (script-priority . 100)
1890 (self-alignment-X . ,CENTER)
1891 (self-alignment-Y . ,CENTER)
1892 (staff-padding . 0.5)
1893 (stencil . ,ly:text-interface::print)
1894 (text . ,stroke-finger::calc-text)
1895 (meta . ((class . Item)
1896 (interfaces . (font-interface
1897 self-alignment-interface
1898 side-position-interface
1899 stroke-finger-interface
1901 text-script-interface))))))
1905 (direction . ,RIGHT)
1906 (extra-spacing-width . (+inf.0 . -inf.0))
1907 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
1908 (self-alignment-X . ,CENTER)
1909 (stencil . ,ly:sustain-pedal::print)
1910 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1911 (meta . ((class . Item)
1912 (interfaces . (font-interface
1913 piano-pedal-interface
1914 piano-pedal-script-interface
1915 self-alignment-interface
1916 text-interface))))))
1918 (SustainPedalLineSpanner
1922 (minimum-space . 1.0)
1923 (outside-staff-priority . 1000)
1926 (staff-padding . 1.2)
1927 (X-extent . ,ly:axis-group-interface::width)
1928 (Y-extent . ,ly:axis-group-interface::height)
1929 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1930 (meta . ((class . Spanner)
1931 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1932 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1933 (interfaces . (axis-group-interface
1934 piano-pedal-interface
1935 side-position-interface))))))
1939 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
1941 (skyline-horizontal-padding . 0.5)
1942 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
1943 (X-extent . ,ly:axis-group-interface::width)
1944 (Y-extent . ,ly:system::height)
1945 (meta . ((class . System)
1946 (object-callbacks . ((pure-relevant-grobs . ,ly:system::calc-pure-relevant-grobs)
1947 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)))
1948 (interfaces . (axis-group-interface
1949 system-interface))))))
1953 (collapse-height . 5.0)
1957 (padding . -0.1) ;; bar must cover rounded ending of staff line.
1958 (stencil . ,ly:system-start-delimiter::print)
1961 (X-offset . ,ly:side-position-interface::x-aligned-side)
1963 (meta . ((class . Spanner)
1964 (interfaces . (side-position-interface
1965 system-start-delimiter-interface))))))
1969 (collapse-height . 5.0)
1971 (font-encoding . fetaBraces)
1973 (stencil . ,ly:system-start-delimiter::print)
1975 (X-offset . ,ly:side-position-interface::x-aligned-side)
1977 (meta . ((class . Spanner)
1978 (interfaces . (font-interface
1979 side-position-interface
1980 system-start-delimiter-interface))))))
1984 (collapse-height . 5.0)
1987 (stencil . ,ly:system-start-delimiter::print)
1990 (X-offset . ,ly:side-position-interface::x-aligned-side)
1992 (meta . ((class . Spanner)
1993 (interfaces . (font-interface
1994 side-position-interface
1995 system-start-delimiter-interface))))))
2000 (stencil . ,ly:system-start-delimiter::print)
2001 (style . line-bracket)
2003 (X-offset . ,ly:side-position-interface::x-aligned-side)
2005 (meta . ((class . Spanner)
2006 (interfaces . (font-interface
2007 side-position-interface
2008 system-start-delimiter-interface))))))
2013 (details . ((cautionary-properties . ((angularity . 0.4)
2014 (half-thickness . 0.075)
2016 (procedure . ,parenthesize-stencil)
2019 (harmonic-properties . ((angularity . 2)
2020 (half-thickness . 0.075)
2022 (procedure . ,parenthesize-stencil)
2024 (repeat-tied-properties . ((note-head-visible . #t)
2025 (parenthesize . #t)))
2026 (tied-properties . ((break-visibility . ,begin-of-line-visible)
2027 (parenthesize . #t)))))
2029 (direction . ,CENTER)
2030 (duration-log . ,note-head::calc-duration-log)
2031 (font-series . bold)
2033 (stem-attachment . (0.0 . 1.35))
2034 (stencil . ,tab-note-head::print)
2036 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2037 (Y-offset . ,ly:staff-symbol-referencer::callback)
2038 (meta . ((class . Item)
2039 (interfaces . (font-interface
2041 rhythmic-grob-interface
2042 rhythmic-head-interface
2043 staff-symbol-referencer-interface
2044 tab-note-head-interface
2045 text-interface))))))
2049 (avoid-slur . around)
2050 (cross-staff . ,ly:script-interface::calc-cross-staff)
2052 (extra-spacing-width . (+inf.0 . -inf.0))
2053 (outside-staff-priority . 450)
2055 ;; sync with Fingering ?
2058 (script-priority . 200)
2060 (slur-padding . 0.5)
2061 (staff-padding . 0.5)
2062 (stencil . ,ly:text-interface::print)
2063 ;; todo: add X self alignment?
2064 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2065 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2066 (meta . ((class . Item)
2067 (interfaces . (font-interface
2068 instrument-specific-markup-interface
2069 self-alignment-interface
2070 side-position-interface
2072 text-script-interface))))))
2076 (bound-details . ((left . ((Y . 0)
2078 (attach-dir . ,LEFT)
2080 (left-broken . ((end-on-note . #t)))
2085 (dash-fraction . 0.2)
2088 (font-shape . italic)
2089 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2090 (outside-staff-priority . 350)
2091 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2093 (staff-padding . 0.8)
2094 (stencil . ,ly:line-spanner::print)
2095 (style . dashed-line)
2096 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2098 (meta . ((class . Spanner)
2099 (interfaces . (font-interface
2101 line-spanner-interface
2102 side-position-interface))))))
2106 (avoid-slur . inside)
2107 (control-points . ,ly:tie::calc-control-points)
2109 ;; for a full list, see tie-details.cc
2111 (center-staff-line-clearance . 0.6)
2112 (tip-staff-line-clearance . 0.45)
2113 (note-head-gap . 0.2)
2115 (height-limit . 1.0)
2116 (horizontal-distance-penalty-factor . 10)
2117 (same-dir-as-stem-penalty . 8)
2118 (min-length-penalty-factor . 26)
2119 (tie-tie-collision-distance . 0.45)
2120 (tie-tie-collision-penalty . 25.0)
2121 (intra-space-threshold . 1.25)
2122 (outer-tie-vertical-distance-symmetry-penalty-factor . 10)
2123 (outer-tie-length-symmetry-penalty-factor . 10)
2124 (vertical-distance-penalty-factor . 7)
2125 (outer-tie-vertical-gap . 0.25)
2126 (multi-tie-region-size . 3)
2127 (single-tie-region-size . 4)
2128 (between-length-limit . 1.0)))
2130 (direction . ,ly:tie::calc-direction)
2132 (line-thickness . 0.8)
2133 (neutral-direction . ,UP)
2134 (springs-and-rods . ,ly:spanner::set-spacing-rods)
2135 (stencil . ,ly:tie::print)
2137 (meta . ((class . Spanner)
2138 (interfaces . (tie-interface))))))
2142 (before-line-breaking . ,ly:tie-column::before-line-breaking)
2143 (positioning-done . ,ly:tie-column::calc-positioning-done)
2146 (meta . ((class . Spanner)
2147 (interfaces . (tie-column-interface))))))
2151 (avoid-slur . inside)
2153 . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
2154 (break-align-symbol . time-signature)
2155 (break-align-anchor-alignment . ,LEFT)
2156 (break-visibility . ,all-visible)
2157 (extra-spacing-height . (-1.0 . 1.0))
2160 (cue-clef . (extra-space . 1.5))
2161 (first-note . (fixed-space . 2.0))
2162 (right-edge . (extra-space . 0.5))
2163 (staff-bar . (minimum-space . 2.0))))
2164 (stencil . ,ly:time-signature::print)
2166 (meta . ((class . Item)
2167 (interfaces . (break-aligned-interface
2169 time-signature-interface))))))
2171 (TrillPitchAccidental
2175 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
2178 (stencil . ,ly:accidental-interface::print)
2179 (X-offset . ,ly:side-position-interface::x-aligned-side)
2180 (Y-extent . ,ly:accidental-interface::height)
2181 (meta . ((class . Item)
2182 (interfaces . (accidental-interface
2184 side-position-interface
2185 trill-pitch-accidental-interface))))))
2190 (direction . ,RIGHT)
2194 (stencil . ,parenthesize-elements)
2195 (stencils . ,parentheses-item::calc-parenthesis-stencils)
2196 (X-offset . ,ly:side-position-interface::x-aligned-side)
2197 (meta . ((class . Item)
2198 (interfaces . (axis-group-interface
2201 parentheses-interface
2202 side-position-interface))))))
2208 (stencil . ,ly:note-head::print)
2209 (Y-offset . ,ly:staff-symbol-referencer::callback)
2210 (meta . ((class . Item)
2211 (interfaces . (font-interface
2213 pitched-trill-interface
2214 rhythmic-head-interface
2215 staff-symbol-referencer-interface))))))
2219 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2220 (bound-details . ((left . ((text . ,(make-musicglyph-markup "scripts.trill"))
2222 (stencil-offset . (-0.5 . -1))
2224 (attach-dir . ,CENTER)
2226 (left-broken . ((end-on-note . #t)))
2230 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2231 (outside-staff-priority . 50)
2233 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2235 (staff-padding . 1.0)
2236 (stencil . ,ly:line-spanner::print)
2238 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2239 (meta . ((class . Spanner)
2240 (interfaces . (font-interface
2242 line-spanner-interface
2243 side-position-interface
2244 trill-spanner-interface))))))
2248 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
2249 (control-points . ,ly:tuplet-bracket::calc-control-points)
2250 (cross-staff . ,ly:tuplet-bracket::calc-cross-staff)
2251 (direction . ,ly:tuplet-bracket::calc-direction)
2252 (edge-height . (0.7 . 0.7))
2253 (full-length-to-extent . #t)
2255 (positions . ,ly:tuplet-bracket::calc-positions)
2256 (shorten-pair . (-0.2 . -0.2))
2257 (staff-padding . 0.25)
2258 (stencil . ,ly:tuplet-bracket::print)
2261 (meta . ((class . Spanner)
2262 (interfaces . (line-interface
2263 tuplet-bracket-interface))))))
2267 (avoid-slur . inside)
2268 (cross-staff . ,ly:tuplet-number::calc-cross-staff)
2269 (font-shape . italic)
2271 (stencil . ,ly:tuplet-number::print)
2272 (text . ,tuplet-number::calc-denominator-text)
2273 (meta . ((class . Spanner)
2274 (interfaces . (font-interface
2276 tuplet-number-interface))))))
2281 (direction . ,RIGHT)
2282 (extra-spacing-width . (+inf.0 . -inf.0))
2283 (font-shape . italic)
2284 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
2285 (self-alignment-X . ,CENTER)
2286 (stencil . ,ly:text-interface::print)
2287 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2288 (meta . ((class . Item)
2289 (interfaces . (font-interface
2290 piano-pedal-script-interface
2291 self-alignment-interface
2292 text-interface))))))
2294 (UnaCordaPedalLineSpanner
2298 (minimum-space . 1.0)
2299 (outside-staff-priority . 1000)
2302 (staff-padding . 1.2)
2303 (X-extent . ,ly:axis-group-interface::width)
2304 (Y-extent . ,ly:axis-group-interface::height)
2305 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2306 (meta . ((class . Spanner)
2307 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2308 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2309 (interfaces . (axis-group-interface
2310 piano-pedal-interface
2311 side-position-interface))))))
2317 (stencil . ,ly:vaticana-ligature::print)
2319 (meta . ((class . Spanner)
2320 (interfaces . (font-interface
2321 vaticana-ligature-interface))))))
2326 (positioning-done . ,ly:align-interface::align-to-ideal-distances)
2328 (vertical-skylines . ,ly:axis-group-interface::combine-skylines)
2329 (X-extent . ,ly:axis-group-interface::width)
2330 (Y-extent . ,ly:axis-group-interface::height)
2331 (meta . ((class . Spanner)
2332 (object-callbacks . ((Y-common . ,ly:axis-group-interface::calc-y-common)
2333 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)
2334 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)))
2335 (interfaces . (align-interface
2336 axis-group-interface))))))
2340 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2342 (default-staff-staff-spacing . ((basic-distance . 9)
2343 (minimum-distance . 8)
2345 (nonstaff-unrelatedstaff-spacing . ((padding . 0.5)))
2346 (staff-staff-spacing . ,ly:axis-group-interface::calc-staff-staff-spacing)
2347 (stencil . ,ly:axis-group-interface::print)
2348 (vertical-skylines . ,ly:hara-kiri-group-spanner::calc-skylines)
2349 (X-extent . ,ly:axis-group-interface::width)
2350 (Y-extent . ,ly:hara-kiri-group-spanner::y-extent)
2351 (Y-offset . ,ly:hara-kiri-group-spanner::force-hara-kiri-callback)
2352 (meta . ((class . Spanner)
2353 (object-callbacks . (
2354 (X-common . ,ly:axis-group-interface::calc-x-common)
2355 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2356 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2358 (interfaces . (axis-group-interface
2359 hara-kiri-group-spanner-interface))))))
2363 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2364 (bound-details . ((right . ((attach-dir . ,CENTER)
2367 (left . ((attach-dir . ,CENTER)
2372 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2374 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2375 (stencil . ,ly:line-spanner::print)
2379 (meta . ((class . Spanner)
2380 (interfaces . (line-interface
2381 line-spanner-interface))))))
2386 (edge-height . (2.0 . 2.0)) ;; staff-space;
2387 (font-encoding . fetaText)
2389 (stencil . ,ly:volta-bracket-interface::print)
2390 (thickness . 1.6) ;; line-thickness
2392 (meta . ((class . Spanner)
2393 (interfaces . (font-interface
2394 horizontal-bracket-interface
2396 side-position-interface
2398 volta-bracket-interface
2399 volta-interface))))))
2401 (VoltaBracketSpanner
2403 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
2407 (outside-staff-priority . 600)
2410 (X-extent . ,ly:axis-group-interface::width)
2411 (Y-extent . ,ly:axis-group-interface::height)
2412 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2413 (meta . ((class . Spanner)
2414 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2415 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2416 (interfaces . (axis-group-interface
2417 side-position-interface
2418 volta-interface))))))
2422 (define (completize-grob-entry x)
2423 "Transplant assoc key into 'name entry of 'meta of X. Set interfaces for Item, Spanner etc.
2425 ;; (display (car x))
2427 (let* ((name-sym (car x))
2428 (grob-entry (cdr x))
2429 (meta-entry (assoc-get 'meta grob-entry))
2430 (class (assoc-get 'class meta-entry))
2432 (assoc-get 'interfaces meta-entry)))
2436 (set! ifaces-entry (cons 'item-interface ifaces-entry)))
2437 ((eq? 'Spanner class)
2438 (set! ifaces-entry (cons 'spanner-interface ifaces-entry)))
2439 ((eq? 'Paper_column class)
2440 (set! ifaces-entry (cons 'item-interface
2441 (cons 'paper-column-interface ifaces-entry))))
2442 ((eq? 'System class)
2443 (set! ifaces-entry (cons 'system-interface
2444 (cons 'spanner-interface ifaces-entry))))
2446 (ly:warning "Unknown class ~a" class)))
2448 (set! ifaces-entry (uniq-list (sort ifaces-entry symbol<?)))
2449 (set! ifaces-entry (cons 'grob-interface ifaces-entry))
2451 (set! meta-entry (assoc-set! meta-entry 'name name-sym))
2452 (set! meta-entry (assoc-set! meta-entry 'interfaces
2454 (set! grob-entry (assoc-set! grob-entry 'meta meta-entry))
2455 (cons name-sym grob-entry)))
2457 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
2459 ;; (display (map pair? all-grob-descriptions))
2461 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
2464 ;; (display (car x)) (newline)
2466 (set-object-property! (car x) 'translation-type? list?)
2467 (set-object-property! (car x) 'is-grob? #t))
2468 all-grob-descriptions)
2470 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))
2472 (define (volta-bracket-interface::pure-height grob start end)
2473 (let ((edge-height (ly:grob-property grob 'edge-height)))
2474 (if (number-pair? edge-height)
2475 (let ((smaller (min (car edge-height) (cdr edge-height)))
2476 (larger (max (car edge-height) (cdr edge-height))))
2477 (interval-union '(0 . 0) (cons smaller larger)))
2480 (define pure-print-callbacks
2482 fret-board::calc-stencil
2483 note-head::brew-ez-stencil
2484 print-circled-text-callback
2485 laissez-vibrer::print
2488 ly:mensural-ligature::brew-ligature-primitive
2492 ly:percent-repeat-item-interface::beat-slash
2493 ly:text-interface::print
2494 ly:script-interface::print
2495 ly:sustain-pedal::print))
2497 ;; Sometimes we have grobs with (Y-extent . ,ly:grob::stencil-height)
2498 ;; and the print function is not pure, but there is a easy way to
2499 ;; figure out the Y-extent from the print function.
2500 (define pure-print-to-height-conversions
2502 (,ly:arpeggio::print . ,ly:arpeggio::pure-height)
2503 (,ly:arpeggio::brew-chord-bracket . ,ly:arpeggio::pure-height)
2504 (,ly:arpeggio::brew-chord-slur . ,ly:arpeggio::pure-height)
2505 (,ly:hairpin::print . ,ly:hairpin::pure-height)
2506 (,ly:volta-bracket-interface::print . ,volta-bracket-interface::pure-height)))
2508 ;; ly:grob::stencil-extent is safe if the print callback is safe too
2509 (define (pure-stencil-height grob start stop)
2510 (let* ((sten (ly:grob-property-data grob 'stencil))
2511 (pure-height-callback (assoc-get sten pure-print-to-height-conversions)))
2514 (memq sten pure-print-callbacks))
2515 (ly:grob::stencil-height grob))
2516 ((procedure? pure-height-callback)
2517 (pure-height-callback grob start stop))
2521 ;; Sometimes, a pure callback will be chained to a non-pure callback via
2522 ;; chain_offset_callback, in which case this provides a default by simply
2523 ;; passing through the value from the pure callback.
2524 (define (pure-chain-offset-callback grob start end prev-offset) prev-offset)
2526 (define pure-conversions-alist
2528 (,ly:accidental-interface::height . ,ly:accidental-interface::pure-height)
2529 (,ly:axis-group-interface::calc-staff-staff-spacing . ,ly:axis-group-interface::calc-pure-staff-staff-spacing)
2530 (,ly:axis-group-interface::height . ,ly:axis-group-interface::pure-height)
2531 (,ly:grob::stencil-height . ,pure-stencil-height)
2532 (,ly:hara-kiri-group-spanner::y-extent . ,ly:hara-kiri-group-spanner::pure-height)
2533 (,ly:rest-collision::force-shift-callback-rest . ,pure-chain-offset-callback)
2534 (,ly:rest::height . ,ly:rest::pure-height)
2535 (,ly:self-alignment-interface::y-aligned-on-self . ,ly:self-alignment-interface::pure-y-aligned-on-self)
2536 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)
2537 (,ly:slur::height . ,ly:slur::pure-height)
2538 (,ly:slur::outside-slur-callback . ,ly:slur::pure-outside-slur-callback)
2539 (,ly:stem::height . ,ly:stem::pure-height)
2540 (,ly:system::height . ,ly:system::calc-pure-height)))
2542 (define pure-functions
2544 parenthesize-elements
2545 laissez-vibrer::print
2546 ly:rest::y-offset-callback
2547 ly:staff-symbol-referencer::callback
2548 ly:staff-symbol::height))
2550 (define-public (pure-relevant? grob)
2551 (let ((extent-callback (ly:grob-property-data grob 'Y-extent)))
2554 (pair? extent-callback)
2555 (memq extent-callback pure-functions)
2557 (pair? (assq extent-callback pure-conversions-alist))
2558 (let ((stencil (ly:grob-property-data grob 'stencil)))
2560 (not (eq? extent-callback ly:grob::stencil-height))
2561 (memq stencil pure-print-callbacks)
2562 (assq stencil pure-print-to-height-conversions)
2563 (ly:stencil? stencil)))))))))
2565 (define-public (call-pure-function unpure args start end)
2566 (if (ly:simple-closure? unpure)
2567 (ly:eval-simple-closure (car args) unpure start end)
2568 (if (not (procedure? unpure))
2570 (if (memq unpure pure-functions)
2572 (let ((pure (assq unpure pure-conversions-alist)))
2576 (list (car args) start end)