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)
84 (X-extent . ,ly:accidental-interface::width)
85 (X-offset . ,(ly:make-simple-closure
87 ,(ly:make-simple-closure
88 (list ly:self-alignment-interface::centered-on-x-parent))
89 ,(ly:make-simple-closure
90 (list ly:self-alignment-interface::x-aligned-on-self)))))
91 (Y-extent . ,ly:accidental-interface::height)
92 (Y-offset . ,ly:side-position-interface::y-aligned-side)
93 (meta . ((class . Item)
94 (interfaces . (accidental-interface
95 accidental-suggestion-interface
98 self-alignment-interface
99 side-position-interface))))))
104 (break-align-symbol . ambitus)
105 (break-visibility . ,begin-of-line-visible)
108 (cue-end-clef . (extra-space . 0.5))
109 (clef . (extra-space . 0.5))
110 (cue-clef . (extra-space . 0.5))
111 (key-signature . (extra-space . 0.0))
112 (staff-bar . (extra-space . 0.0))
113 (time-signature . (extra-space . 0.0))
114 (first-note . (fixed-space . 0.0))))
115 (X-extent . ,ly:axis-group-interface::width)
116 (Y-extent . ,ly:axis-group-interface::height)
117 (meta . ((class . Item)
118 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
119 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
120 (interfaces . (ambitus-interface
122 break-aligned-interface))))))
127 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
130 (stencil . ,ly:accidental-interface::print)
131 (X-offset . ,ly:side-position-interface::x-aligned-side)
132 (Y-extent . ,ly:accidental-interface::height)
133 (meta . ((class . Item)
134 (interfaces . (accidental-interface
135 break-aligned-interface
137 side-position-interface))))))
142 (stencil . ,ambitus::print)
144 (X-offset . ,ly:self-alignment-interface::centered-on-x-parent)
145 (meta . ((class . Item)
146 (interfaces . (ambitus-interface
152 (glyph-name . ,note-head::calc-glyph-name)
153 (stencil . ,ly:note-head::print)
154 (Y-offset . ,ly:staff-symbol-referencer::callback)
155 (meta . ((class . Item)
156 (interfaces . (ambitus-interface
160 rhythmic-head-interface
161 staff-symbol-referencer-interface))))))
167 (positions . ,ly:arpeggio::calc-positions)
168 (script-priority . 0)
170 (staff-position . 0.0)
171 (stencil . ,ly:arpeggio::print)
172 (X-extent . ,ly:arpeggio::width)
173 (X-offset . ,ly:side-position-interface::x-aligned-side)
174 (Y-offset . ,ly:staff-symbol-referencer::callback)
175 (meta . ((class . Item)
176 (interfaces . (arpeggio-interface
178 side-position-interface
179 staff-symbol-referencer-interface))))))
183 (annotation-balloon . #t)
184 (annotation-line . #t)
185 (stencil . ,ly:balloon-interface::print)
186 (text . ,(grob::calc-property-by-copy 'text))
187 (X-offset . ,(grob::calc-property-by-copy 'X-offset))
188 (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
189 (meta . ((class . Item)
190 (interfaces . (balloon-interface
196 (allow-span-bar . #t)
197 (bar-extent . ,ly:bar-line::calc-bar-extent)
198 (break-align-anchor . ,ly:bar-line::calc-anchor)
199 (break-align-symbol . staff-bar)
200 (break-visibility . ,bar-line::calc-break-visibility)
201 (extra-spacing-height . ,pure-from-neighbor-interface::account-for-span-bar)
204 (glyph-name . ,bar-line::calc-glyph-name)
207 ;; Ross. page 151 lists other values, we opt for a leaner look
210 ;; kern should scale with line-thickness too.
213 (hair-thickness . 1.9)
214 (thick-thickness . 6.0)
219 (time-signature . (extra-space . 0.75))
220 (custos . (minimum-space . 2.0))
221 (clef . (minimum-space . 1.0))
222 (key-signature . (extra-space . 1.0))
223 (key-cancellation . (extra-space . 1.0))
224 (first-note . (fixed-space . 1.3))
225 (next-note . (semi-fixed-space . 0.9))
226 (right-edge . (extra-space . 0.0))))
227 (stencil . ,ly:bar-line::print)
228 (meta . ((class . Item)
229 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
230 (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
231 (interfaces . (bar-line-interface
232 break-aligned-interface
234 pure-from-neighbor-interface))))))
238 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
239 ;; want the bar number before the clef at line start.
240 (break-align-symbols . (left-edge staff-bar))
242 (break-visibility . ,begin-of-line-visible)
244 (extra-spacing-width . (+inf.0 . -inf.0))
245 (font-family . roman)
248 (outside-staff-priority . 100)
250 (self-alignment-X . ,RIGHT)
252 (stencil . ,ly:text-interface::print)
253 (X-offset . ,(ly:make-simple-closure
255 ,(ly:make-simple-closure
256 (list ly:break-alignable-interface::self-align-callback))
257 ,(ly:make-simple-closure
258 (list ly:self-alignment-interface::x-aligned-on-self)))))
259 (Y-offset . ,ly:side-position-interface::y-aligned-side)
262 (interfaces . (break-alignable-interface
264 self-alignment-interface
265 side-position-interface
270 (stencil . ,ly:text-interface::print)
271 (meta . ((class . Item)
272 (interfaces . (bass-figure-interface
274 rhythmic-grob-interface
281 (positioning-done . ,ly:align-interface::align-to-minimum-distances)
282 (stacking-dir . ,DOWN)
283 (Y-extent . ,ly:axis-group-interface::height)
284 (meta . ((class . Spanner)
285 (object-callbacks . ((full-score-pure-minimum-translations . ,ly:align-interface::full-score-pure-minimum-translations)
286 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
287 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
288 (interfaces . (align-interface
290 bass-figure-alignment-interface))))))
292 (BassFigureAlignmentPositioning
298 (staff-padding . 1.0)
299 (Y-extent . ,ly:axis-group-interface::height)
300 (Y-offset . ,ly:side-position-interface::y-aligned-side)
301 (meta . ((class . Spanner)
302 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
303 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
304 (interfaces . (axis-group-interface
305 side-position-interface))))))
309 (edge-height . (0.2 . 0.2))
310 (stencil . ,ly:enclosing-bracket::print)
311 (X-extent . ,ly:enclosing-bracket::width)
312 (meta . ((class . Item)
313 (interfaces . (enclosing-bracket-interface))))))
315 (BassFigureContinuation
317 (stencil . ,ly:figured-bass-continuation::print)
318 (Y-offset . ,ly:figured-bass-continuation::center-on-figures)
319 (meta . ((class . Spanner)
320 (interfaces . (figured-bass-continuation-interface))))))
324 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
326 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
327 (Y-extent . ,ly:axis-group-interface::height)
328 (meta . ((class . Spanner)
329 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
330 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
331 (interfaces . (axis-group-interface))))))
336 ;; todo: clean this up a bit: the list is getting
338 (auto-knee-gap . 5.5)
339 (beam-segments . ,ly:beam::calc-beam-segments)
340 (beam-thickness . 0.48) ; in staff-space
342 ;; We have some unreferenced problems here.
344 ;; If we shorten beamed stems less than normal stems (1 staff-space),
345 ;; or high order less than 8th beams, patterns like
346 ;; c''4 [c''8 c''] c''4 [c''16 c]
347 ;; are ugly (different stem lengths).
349 ;; But if we shorten 16th beams as much as 8th beams, a single
350 ;; forced 16th beam looks *very* short.
352 ;; We choose to shorten 8th beams the same as single stems,
353 ;; and high order beams less than 8th beams, so that all
354 ;; isolated shortened beams look nice and a bit shortened,
355 ;; sadly possibly breaking patterns with high order beams.
356 (beamed-stem-shorten . (1.0 0.5 0.25))
358 (beaming . ,ly:beam::calc-beaming)
360 (collision-interfaces . (beam-interface
363 inline-accidental-interface
364 key-signature-interface
367 time-signature-interface))
368 (cross-staff . ,ly:beam::calc-cross-staff)
372 (secondary-beam-demerit . 10)
373 (stem-length-demerit-factor . 5)
376 (stem-length-limit-penalty . 5000)
377 (damping-direction-penalty . 800)
378 (hint-direction-penalty . 20)
379 (musical-direction-factor . 400)
380 (ideal-slope-factor . 10)
381 (collision-penalty . 500)
382 (collision-padding . 0.35)
383 (round-to-zero-slope . 0.02)))
384 (direction . ,ly:beam::calc-direction)
386 (normalized-endpoints . ,ly:spanner::calc-normalized-endpoints)
387 ;; only for debugging.
388 (font-family . roman)
391 (neutral-direction . ,DOWN)
392 (positions . ,beam::place-broken-parts-individually)
393 (X-positions . ,ly:beam::calc-x-positions)
395 ;; this is a hack to set stem lengths, if positions is set.
396 (quantized-positions . ,ly:beam::set-stem-lengths)
398 (shorten . ,ly:beam::calc-stem-shorten)
399 (stencil . ,ly:beam::print)
401 (meta . ((class . Spanner)
402 (object-callbacks . ((normal-stems . ,ly:beam::calc-normal-stems)))
403 (interfaces . (beam-interface
405 staff-symbol-referencer-interface
406 unbreakable-spanner-interface))))))
410 (minimum-length . 0.5)
411 (stencil . ,bend::print)
413 (meta . ((class . Spanner)
414 (interfaces . (bend-after-interface
415 spanner-interface))))))
420 (break-align-anchor . ,ly:break-aligned-interface::calc-average-anchor)
421 (break-visibility . ,ly:break-aligned-interface::calc-break-visibility)
422 (X-extent . ,ly:axis-group-interface::width)
423 (meta . ((class . Item)
424 (interfaces . (axis-group-interface
425 break-aligned-interface))))))
430 (break-align-orders . ;; end of line
471 (positioning-done . ,ly:break-alignment-interface::calc-positioning-done)
473 (X-extent . ,ly:axis-group-interface::width)
474 (meta . ((class . Item)
475 (interfaces . (axis-group-interface
476 break-alignment-interface))))))
480 (break-align-symbol . breathing-sign)
481 (break-visibility . ,begin-of-line-invisible)
484 (ambitus . (extra-space . 2.0))
485 (custos . (minimum-space . 1.0))
486 (key-signature . (minimum-space . 1.5))
487 (time-signature . (minimum-space . 1.5))
488 (staff-bar . (minimum-space . 1.5))
489 (clef . (minimum-space . 2.0))
490 (cue-clef . (minimum-space . 2.0))
491 (cue-end-clef . (minimum-space . 2.0))
492 (first-note . (fixed-space . 1.0)) ;huh?
493 (right-edge . (extra-space . 0.1))))
494 (stencil . ,ly:text-interface::print)
495 (text . ,(make-musicglyph-markup "scripts.rcomma"))
496 (Y-offset . ,ly:breathing-sign::offset-callback)
497 (meta . ((class . Item)
498 (interfaces . (break-aligned-interface
499 breathing-sign-interface
505 (after-line-breaking . ,ly:chord-name::after-line-breaking)
508 (stencil . ,ly:text-interface::print)
509 (extra-spacing-height . (0.2 . -0.2))
511 (meta . ((class . Item)
512 (interfaces . (chord-name-interface
514 rhythmic-grob-interface
519 (avoid-slur . inside)
520 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
521 (break-align-symbol . clef)
522 (break-visibility . ,begin-of-line-visible)
523 (extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height-at-beginning-of-line)
524 (glyph-name . ,ly:clef::calc-glyph-name)
526 (space-alist . ((cue-clef . (extra-space . 2.0))
527 (staff-bar . (extra-space . 0.7))
528 (key-cancellation . (minimum-space . 3.5))
529 (key-signature . (minimum-space . 3.5))
530 (time-signature . (minimum-space . 4.2))
531 (first-note . (minimum-fixed-space . 5.0))
532 (next-note . (extra-space . 1.0))
533 (right-edge . (extra-space . 0.5))))
534 (stencil . ,ly:clef::print)
535 (Y-offset . ,ly:staff-symbol-referencer::callback)
536 (meta . ((class . Item)
537 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
538 (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
539 (interfaces . (break-aligned-interface
542 pure-from-neighbor-interface
543 staff-symbol-referencer-interface))))))
547 (cross-staff . ,ly:cluster::calc-cross-staff)
548 (minimum-length . 0.0)
550 (springs-and-rods . ,ly:spanner::set-spacing-rods)
551 (stencil . ,ly:cluster::print)
553 (meta . ((class . Spanner)
554 (interfaces . (cluster-interface))))))
556 (ClusterSpannerBeacon
558 (Y-extent . ,ly:cluster-beacon::height)
559 (meta . ((class . Item)
560 (interfaces . (cluster-beacon-interface
561 rhythmic-grob-interface))))))
565 (avoid-slur . outside)
568 (extra-spacing-width . (+inf.0 . -inf.0))
570 (outside-staff-priority . 450)
572 (script-priority . 200)
574 (staff-padding . 0.5)
575 ;; todo: add X self alignment?
576 (stencil . ,ly:text-interface::print)
577 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
578 (Y-offset . ,ly:side-position-interface::y-aligned-side)
579 (meta . ((class . Item)
580 (interfaces . (font-interface
581 side-position-interface
583 text-script-interface))))))
587 (avoid-slur . inside)
588 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
589 (break-align-symbol . cue-clef)
590 (break-visibility . ,begin-of-line-visible)
591 (extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height-at-beginning-of-line)
593 (glyph-name . ,ly:clef::calc-glyph-name)
595 (full-size-change . #t)
596 (space-alist . ((staff-bar . (minimum-space . 2.7))
597 (key-cancellation . (minimum-space . 3.5))
598 (key-signature . (minimum-space . 3.5))
599 (time-signature . (minimum-space . 4.2))
600 (custos . (minimum-space . 0.0))
601 (first-note . (minimum-fixed-space . 3.0))
602 (next-note . (extra-space . 1.0))
603 (right-edge . (extra-space . 0.5))))
604 (stencil . ,ly:clef::print)
605 (Y-offset . ,ly:staff-symbol-referencer::callback)
606 (meta . ((class . Item)
607 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
608 (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
609 (interfaces . (break-aligned-interface
612 pure-from-neighbor-interface
613 staff-symbol-referencer-interface))))))
617 (avoid-slur . inside)
618 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
619 (break-align-symbol . cue-end-clef)
620 (break-visibility . ,begin-of-line-invisible)
621 (extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height-at-beginning-of-line)
623 (glyph-name . ,ly:clef::calc-glyph-name)
625 (full-size-change . #t)
626 (space-alist . ((clef . (extra-space . 0.7))
627 (cue-clef . (extra-space . 0.7))
628 (staff-bar . (extra-space . 0.7))
629 (key-cancellation . (minimum-space . 3.5))
630 (key-signature . (minimum-space . 3.5))
631 (time-signature . (minimum-space . 4.2))
632 (first-note . (minimum-fixed-space . 5.0))
633 (next-note . (extra-space . 1.0))
634 (right-edge . (extra-space . 0.5))))
635 (stencil . ,ly:clef::print)
636 (Y-offset . ,ly:staff-symbol-referencer::callback)
637 (meta . ((class . Item)
638 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
639 (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
640 (interfaces . (break-aligned-interface
643 pure-from-neighbor-interface
644 staff-symbol-referencer-interface))))))
648 (break-align-symbol . custos)
649 (break-visibility . ,end-of-line-visible)
650 (neutral-direction . ,DOWN)
653 (first-note . (minimum-fixed-space . 0.0))
654 (right-edge . (extra-space . 0.1))))
655 (stencil . ,ly:custos::print)
657 (Y-offset . ,ly:staff-symbol-referencer::callback)
658 (meta . ((class . Item)
659 (interfaces . (break-aligned-interface
662 staff-symbol-referencer-interface))))))
668 (positioning-done . ,ly:dot-column::calc-positioning-done)
669 (X-extent . ,ly:axis-group-interface::width)
670 (meta . ((class . Item)
671 (interfaces . (axis-group-interface
672 dot-column-interface))))))
676 (avoid-slur . inside)
677 (dot-count . ,dots::calc-dot-count)
678 (staff-position . ,dots::calc-staff-position)
679 (stencil . ,ly:dots::print)
680 (extra-spacing-height . (-0.5 . 0.5))
681 (meta . ((class . Item)
682 (interfaces . (dots-interface
684 staff-symbol-referencer-interface))))))
688 (break-align-symbol . staff-bar)
689 (break-visibility . ,begin-of-line-invisible)
690 (dot-negative-kern . 0.75)
691 (font-encoding . fetaMusic)
693 (slash-negative-kern . 1.6)
695 (stencil . ,ly:percent-repeat-item-interface::double-percent)
697 (meta . ((class . Item)
698 (interfaces . (break-aligned-interface
700 percent-repeat-interface
701 percent-repeat-item-interface))))))
703 (DoublePercentRepeatCounter
706 (font-encoding . fetaText)
709 (self-alignment-X . ,CENTER)
711 (staff-padding . 0.25)
712 (stencil . ,ly:text-interface::print)
713 (X-offset . ,(ly:make-simple-closure
715 ,(ly:make-simple-closure
716 (list ly:self-alignment-interface::centered-on-y-parent))
717 ,(ly:make-simple-closure
718 (list ly:self-alignment-interface::x-aligned-on-self)))))
719 (Y-offset . ,ly:side-position-interface::y-aligned-side)
720 (meta . ((class . Item)
721 (interfaces . (font-interface
722 percent-repeat-interface
723 percent-repeat-item-interface
724 self-alignment-interface
725 side-position-interface
730 (dot-negative-kern . 0.75)
731 (font-encoding . fetaMusic)
732 (slash-negative-kern . 1.6)
734 (stencil . ,ly:percent-repeat-item-interface::beat-slash)
736 (meta . ((class . Item)
737 (interfaces . (font-interface
738 percent-repeat-interface
739 percent-repeat-item-interface
740 rhythmic-grob-interface))))))
745 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
747 (minimum-space . 1.2)
748 (outside-staff-priority . 250)
752 (staff-padding . 0.1)
753 (X-extent . ,ly:axis-group-interface::width)
754 (Y-extent . ,ly:axis-group-interface::height)
755 (Y-offset . ,ly:side-position-interface::y-aligned-side)
756 (meta . ((class . Spanner)
757 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
758 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
759 (interfaces . (axis-group-interface
761 dynamic-line-spanner-interface
762 side-position-interface))))))
769 (direction . ,ly:script-interface::calc-direction)
770 (extra-spacing-width . (+inf.0 . -inf.0))
771 (font-encoding . fetaText)
773 (font-shape . italic)
774 (outside-staff-priority . 250)
775 (positioning-done . ,ly:script-interface::calc-positioning-done)
776 (right-padding . 0.5)
777 (self-alignment-X . ,CENTER)
778 (self-alignment-Y . ,CENTER)
779 (stencil . ,ly:text-interface::print)
780 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
781 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
782 (meta . ((class . Item)
783 (interfaces . (dynamic-interface
784 dynamic-text-interface
787 self-alignment-interface
792 (before-line-breaking . ,dynamic-text-spanner::before-line-breaking)
793 (bound-details . ((right . ((attach-dir . ,LEFT)
797 (right-broken . ((attach-dir . ,RIGHT)
801 (left . ((attach-dir . ,LEFT)
803 (stencil-offset . (-0.75 . -0.5))
806 (left-broken . ((attach-dir . ,RIGHT)
809 (dash-fraction . 0.2)
812 ;; rather ugh with NCSB
813 ;; (font-series . bold)
814 (font-shape . italic)
816 ;; need to blend with dynamic texts.
819 (left-bound-info . ,ly:line-spanner::calc-left-bound-info-and-text)
821 (minimum-length . 2.0)
822 ;; make sure the spanner doesn't get too close to notes
823 (minimum-Y-extent . (-1 . 1))
825 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
826 (springs-and-rods . ,ly:spanner::set-spacing-rods)
827 (stencil . ,ly:line-spanner::print)
828 (style . dashed-line)
829 (meta . ((class . Spanner)
830 (interfaces . (dynamic-interface
831 dynamic-text-spanner-interface
834 line-spanner-interface
841 (bound-details . ((left . ((Y . 0)
847 (attach-dir . ,RIGHT)
851 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
852 (quantize-position . #t)
853 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
855 (stencil . ,ly:line-spanner::print)
857 (Y-offset . ,ly:side-position-interface::y-aligned-side)
858 (meta . ((class . Spanner)
859 (interfaces . (episema-interface
862 line-spanner-interface
863 side-position-interface))))))
869 ;; sync with TextScript (?)
871 (avoid-slur . around)
872 (cross-staff . ,script-or-side-position-cross-staff)
873 (direction . ,ly:script-interface::calc-direction)
874 (font-encoding . fetaText)
875 (font-size . -5) ; don't overlap when next to heads.
877 (positioning-done . ,ly:script-interface::calc-positioning-done)
878 (script-priority . 100)
879 (self-alignment-X . ,CENTER)
880 (self-alignment-Y . ,CENTER)
882 (staff-padding . 0.5)
883 (stencil . ,ly:text-interface::print)
884 (text . ,fingering::calc-text)
885 (meta . ((class . Item)
886 (interfaces . (finger-interface
888 self-alignment-interface
889 side-position-interface
891 text-script-interface))))))
895 (stencil . ,ly:flag::print)
896 (X-extent . ,ly:flag::width)
897 (X-offset . ,ly:flag::calc-x-offset)
898 (Y-offset . ,ly:flag::calc-y-offset)
899 (meta . ((class . Item)
900 (interfaces . (flag-interface
905 (annotation-balloon . #f)
906 (annotation-line . #t)
907 (automatically-numbered . ,(grob::calc-property-by-copy 'automatically-numbered))
908 (break-visibility . ,inherit-y-parent-visibility)
910 (footnote-text . ,(grob::calc-property-by-copy 'footnote-text))
911 (stencil . ,ly:balloon-interface::print)
912 (text . ,(grob::calc-property-by-copy 'text))
915 (X-offset . ,(grob::calc-property-by-copy 'X-offset))
916 (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
917 (meta . ((class . Item)
918 (interfaces . (balloon-interface
925 (annotation-balloon . #f)
926 (annotation-line . #t)
927 (automatically-numbered . ,(grob::calc-property-by-copy 'automatically-numbered))
929 (footnote-text . ,(grob::calc-property-by-copy 'footnote-text))
930 (spanner-placement . ,LEFT)
931 (stencil . ,ly:balloon-interface::print-spanner)
932 (text . ,(grob::calc-property-by-copy 'text))
935 (X-offset . ,(grob::calc-property-by-copy 'X-offset))
936 (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
937 (meta . ((class . Spanner)
938 (interfaces . (balloon-interface
940 footnote-spanner-interface
946 (after-line-breaking . ,ly:chord-name::after-line-breaking)
947 (fret-diagram-details . ((finger-code . below-string)))
948 (stencil . ,fret-board::calc-stencil)
949 (extra-spacing-height . (0.2 . -0.2))
950 (extra-spacing-width . (-0.5 . 0.5))
951 (meta . ((class . Item)
952 (interfaces . (chord-name-interface
954 fret-diagram-interface
955 rhythmic-grob-interface))))))
960 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
961 (bound-details . ((right . ((attach-dir . ,LEFT)
962 (end-on-accidental . #t)
965 (left . ((attach-dir . ,RIGHT)
970 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
971 (normalized-endpoints . ,ly:spanner::calc-normalized-endpoints)
972 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
974 (stencil . ,ly:line-spanner::print)
978 (zigzag-width . 0.75)
979 (meta . ((class . Spanner)
980 (interfaces . (glissando-interface
982 line-spanner-interface
983 unbreakable-spanner-interface))))))
987 (common-shortest-duration . ,grace-spacing::calc-shortest-duration)
988 (shortest-duration-space . 1.6)
989 (spacing-increment . 0.8)
990 (meta . ((class . Spanner)
991 (interfaces . (grace-spacing-interface
992 spacing-options-interface
993 spanner-interface))))))
998 (self-alignment-X . ,CENTER)
999 (stencil . ,ly:grid-line-interface::print)
1000 (X-extent . ,ly:grid-line-interface::width)
1001 (X-offset . ,(ly:make-simple-closure
1003 ,(ly:make-simple-closure
1004 (list ly:self-alignment-interface::centered-on-x-parent))
1005 ,(ly:make-simple-closure
1006 (list ly:self-alignment-interface::x-aligned-on-self)))))
1007 (meta . ((class . Item)
1008 (interfaces . (grid-line-interface
1009 self-alignment-interface))))))
1013 (X-extent . (0 . 0))
1014 (Y-extent . (0 . 0))
1015 (meta . ((class . Item)
1016 (interfaces . (grid-point-interface))))))
1021 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
1022 (bound-padding . 1.0)
1024 (grow-direction . ,hairpin::calc-grow-direction)
1026 (minimum-length . 2.0)
1027 (self-alignment-Y . ,CENTER)
1028 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1029 (stencil . ,ly:hairpin::print)
1032 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
1033 (meta . ((class . Spanner)
1034 (interfaces . (dynamic-interface
1037 self-alignment-interface
1038 spanner-interface))))))
1042 (bracket-flare . (0.5 . 0.5))
1043 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
1047 (staff-padding . 0.2)
1048 (stencil . ,ly:horizontal-bracket::print)
1050 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1051 (meta . ((class . Spanner)
1052 (interfaces . (horizontal-bracket-interface
1054 side-position-interface
1055 spanner-interface))))))
1062 (self-alignment-X . ,CENTER)
1063 (self-alignment-Y . ,CENTER)
1064 (stencil . ,system-start-text::print)
1065 (X-offset . ,system-start-text::calc-x-offset)
1066 (Y-offset . ,system-start-text::calc-y-offset)
1067 (meta . ((class . Spanner)
1068 (interfaces . (font-interface
1069 self-alignment-interface
1070 side-position-interface
1071 system-start-text-interface))))))
1076 (extra-spacing-width . (+inf.0 . -inf.0))
1077 (outside-staff-priority . 500)
1079 (self-alignment-X . ,LEFT)
1081 (staff-padding . 0.5)
1082 (stencil . ,ly:text-interface::print)
1083 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1084 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1085 (meta . ((class . Item)
1086 (interfaces . (font-interface
1087 self-alignment-interface
1088 side-position-interface
1089 text-interface))))))
1094 (break-align-symbol . key-cancellation)
1095 (break-visibility . ,begin-of-line-invisible)
1096 (glyph-name-alist . ,cancellation-glyph-name-alist)
1099 (time-signature . (extra-space . 1.25))
1100 (staff-bar . (extra-space . 0.6))
1101 (key-signature . (extra-space . 0.5))
1102 (cue-clef . (extra-space . 0.5))
1103 (right-edge . (extra-space . 0.5))
1104 (first-note . (fixed-space . 2.5))))
1105 (stencil . ,ly:key-signature-interface::print)
1106 (extra-spacing-width . (0.0 . 1.0))
1107 (extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height-including-staff)
1108 (Y-offset . ,ly:staff-symbol-referencer::callback)
1109 (meta . ((class . Item)
1110 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1111 (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
1112 (interfaces . (break-aligned-interface
1114 key-cancellation-interface
1115 key-signature-interface
1116 pure-from-neighbor-interface
1117 staff-symbol-referencer-interface))))))
1121 (avoid-slur . inside)
1122 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1123 (break-align-symbol . key-signature)
1124 (break-visibility . ,begin-of-line-visible)
1125 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
1128 (time-signature . (extra-space . 1.15))
1129 (staff-bar . (extra-space . 1.1))
1130 (cue-clef . (extra-space . 0.5))
1131 (right-edge . (extra-space . 0.5))
1132 (first-note . (fixed-space . 2.5))))
1133 (stencil . ,ly:key-signature-interface::print)
1134 (extra-spacing-width . (0.0 . 1.0))
1135 (extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height-including-staff)
1136 (Y-offset . ,ly:staff-symbol-referencer::callback)
1137 (meta . ((class . Item)
1138 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1139 (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
1140 (interfaces . (break-aligned-interface
1142 key-signature-interface
1143 pure-from-neighbor-interface
1144 staff-symbol-referencer-interface))))))
1149 (control-points . ,ly:semi-tie::calc-control-points)
1150 (details . ((ratio . 0.333)
1151 (height-limit . 1.0)))
1152 (direction . ,ly:tie::calc-direction)
1153 (head-direction . ,LEFT)
1154 (stencil . ,laissez-vibrer::print)
1156 (extra-spacing-height . (-0.5 . 0.5))
1157 (meta . ((class . Item)
1158 (interfaces . (semi-tie-interface))))))
1160 (LaissezVibrerTieColumn
1162 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1163 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1166 (meta . ((class . Item)
1167 (interfaces . (semi-tie-column-interface))))))
1172 (length-fraction . 0.25)
1173 (minimum-length-fraction . 0.25)
1174 (springs-and-rods . ,ly:ledger-line-spanner::set-spacing-rods)
1175 (stencil . ,ly:ledger-line-spanner::print)
1178 (meta . ((class . Spanner)
1179 (interfaces . (ledger-line-spanner-interface))))))
1183 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1184 (break-align-symbol . left-edge)
1185 (break-visibility . ,center-invisible)
1187 (extra-spacing-height . (+inf.0 . -inf.0))
1189 (ambitus . (extra-space . 2.0))
1190 (breathing-sign . (minimum-space . 0.0))
1191 (cue-end-clef . (extra-space . 0.8))
1192 (clef . (extra-space . 0.8))
1193 (cue-clef . (extra-space . 0.8))
1194 (staff-bar . (extra-space . 0.0))
1195 (key-cancellation . (extra-space . 0.0))
1196 (key-signature . (extra-space . 0.8))
1197 (time-signature . (extra-space . 1.0))
1198 (custos . (extra-space . 0.0))
1199 (first-note . (fixed-space . 2.0))
1200 (right-edge . (extra-space . 0.0))
1202 (X-extent . (0 . 0))
1203 (meta . ((class . Item)
1204 (interfaces . (break-aligned-interface))))))
1208 ;; ugh. A ligature bracket is totally different from
1209 ;; a tuplet bracket.
1211 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
1213 (edge-height . (0.7 . 0.7))
1215 (positions . ,ly:tuplet-bracket::calc-positions)
1216 (shorten-pair . (-0.2 . -0.2))
1217 (staff-padding . 0.25)
1218 (stencil . ,ly:tuplet-bracket::print)
1220 (X-positions . ,ly:tuplet-bracket::calc-x-positions)
1221 (meta . ((class . Spanner)
1222 (interfaces . (line-interface
1223 tuplet-bracket-interface))))))
1227 (minimum-length . 1.5)
1228 (stencil . ,ly:lyric-extender::print)
1229 (thickness . 0.8) ; line-thickness
1230 (Y-extent . (0 . 0))
1231 (meta . ((class . Spanner)
1232 (interfaces . (lyric-extender-interface
1233 lyric-interface))))))
1237 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
1238 (dash-period . 10.0)
1241 (minimum-distance . 0.1)
1242 (minimum-length . 0.3)
1244 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1245 (stencil . ,ly:lyric-hyphen::print)
1247 (Y-extent . (0 . 0))
1248 (meta . ((class . Spanner)
1249 (interfaces . (font-interface
1250 lyric-hyphen-interface
1252 spanner-interface))))))
1256 (minimum-distance . 0.45)
1258 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1261 (meta . ((class . Spanner)
1262 (interfaces . (lyric-hyphen-interface
1263 spanner-interface))))))
1267 (extra-spacing-width . (0.0 . 0.0))
1268 ;; Recede in height for purposes of note spacing,
1269 ;; so notes in melismata can be freely spaced above lyrics
1270 (extra-spacing-height . (0.2 . -0.2))
1271 (font-series . medium)
1273 (self-alignment-X . ,CENTER)
1274 (stencil . ,lyric-text::print)
1275 (text . ,(grob::calc-property-by-copy 'text))
1277 (X-offset . ,ly:self-alignment-interface::aligned-on-x-parent)
1278 (meta . ((class . Item)
1279 (interfaces . (font-interface
1280 lyric-syllable-interface
1281 rhythmic-grob-interface
1282 self-alignment-interface
1283 text-interface))))))
1293 (stencil . ,ly:measure-grouping::print)
1295 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1296 (meta . ((class . Spanner)
1297 (interfaces . (measure-grouping-interface
1298 side-position-interface))))))
1302 (neutral-direction . ,DOWN)
1303 (meta . ((class . Item)
1304 (interfaces . (melody-spanner-interface))))))
1308 (stencil . ,ly:mensural-ligature::print)
1310 (meta . ((class . Spanner)
1311 (interfaces . (font-interface
1312 mensural-ligature-interface))))))
1316 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1317 (break-visibility . ,end-of-line-invisible)
1319 (extra-spacing-width . (+inf.0 . -inf.0))
1320 (outside-staff-priority . 1000)
1323 (stencil . ,ly:text-interface::print)
1324 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1325 (X-offset . ,(ly:make-simple-closure
1327 ,(ly:make-simple-closure
1328 (list ly:break-alignable-interface::self-align-callback))
1329 ,(ly:make-simple-closure
1330 (list ly:self-alignment-interface::x-aligned-on-self)))))
1331 (self-alignment-X . ,LEFT)
1332 (break-align-symbols . (time-signature))
1333 (non-break-align-symbols . (multi-measure-rest-interface))
1334 (meta . ((class . Item)
1335 (interfaces . (break-alignable-interface
1337 metronome-mark-interface
1338 self-alignment-interface
1339 side-position-interface
1340 text-interface))))))
1345 (hair-thickness . 2.0)
1346 (round-up-exceptions . ())
1348 (spacing-pair . (break-alignment . break-alignment))
1349 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1350 (stencil . ,ly:multi-measure-rest::print)
1351 (thick-thickness . 6.6)
1352 ;; See Wanske pp. 125
1353 (usable-duration-logs . ,(iota 4 -3))
1354 (Y-offset . ,ly:staff-symbol-referencer::callback)
1355 (meta . ((class . Spanner)
1356 (interfaces . (font-interface
1357 multi-measure-interface
1358 multi-measure-rest-interface
1360 staff-symbol-referencer-interface))))))
1362 (MultiMeasureRestNumber
1364 (bound-padding . 2.0)
1366 (font-encoding . fetaText)
1368 (self-alignment-X . ,CENTER)
1370 (springs-and-rods . ,ly:multi-measure-rest::set-text-rods)
1371 (staff-padding . 0.4)
1372 (stencil . ,ly:text-interface::print)
1373 (X-offset . ,(ly:make-simple-closure
1375 ,(ly:make-simple-closure
1376 (list ly:self-alignment-interface::x-aligned-on-self))
1377 ,(ly:make-simple-closure
1378 (list ly:self-alignment-interface::x-centered-on-y-parent)))))
1379 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1380 (meta . ((class . Spanner)
1381 (interfaces . (font-interface
1382 multi-measure-interface
1383 self-alignment-interface
1384 side-position-interface
1385 text-interface))))))
1387 (MultiMeasureRestText
1390 (outside-staff-priority . 450)
1392 (self-alignment-X . ,CENTER)
1393 (staff-padding . 0.25)
1394 (stencil . ,ly:text-interface::print)
1395 (X-offset . ,(ly:make-simple-closure
1397 ,(ly:make-simple-closure
1398 (list ly:self-alignment-interface::x-centered-on-y-parent))
1399 ,(ly:make-simple-closure
1400 (list ly:self-alignment-interface::x-aligned-on-self)))))
1401 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1402 (meta . ((class . Spanner)
1403 (interfaces . (font-interface
1404 multi-measure-interface
1405 self-alignment-interface
1406 side-position-interface
1407 text-interface))))))
1410 (NonMusicalPaperColumn
1412 (allow-loose-spacing . #t)
1414 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1415 (full-measure-extra-space . 1.0)
1416 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1417 ;; (stencil . ,ly:paper-column::print)
1419 (keep-inside-line . #t)
1420 (line-break-permission . allow)
1422 (page-break-permission . allow)
1424 ;; debugging stuff: print column number.
1425 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1427 (X-extent . ,ly:axis-group-interface::width)
1428 (meta . ((class . Paper_column)
1429 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1430 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1431 (interfaces . (axis-group-interface
1433 paper-column-interface
1434 separation-item-interface
1435 spaceable-grob-interface))))))
1440 (positioning-done . ,ly:note-collision-interface::calc-positioning-done)
1441 (prefer-dotted-right . #t)
1442 (X-extent . ,ly:axis-group-interface::width)
1443 (Y-extent . ,ly:axis-group-interface::height)
1444 (meta . ((class . Item)
1445 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1446 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1447 (interfaces . (axis-group-interface
1448 note-collision-interface))))))
1453 (bound-alignment-interfaces . (rhythmic-head-interface stem-interface))
1454 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1455 (skyline-vertical-padding . 0.15)
1456 (X-extent . ,ly:axis-group-interface::width)
1457 (Y-extent . ,ly:axis-group-interface::height)
1458 (meta . ((class . Item)
1459 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1460 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1461 (interfaces . (axis-group-interface
1462 note-column-interface
1463 separation-item-interface))))))
1468 (duration-log . ,note-head::calc-duration-log)
1469 (extra-spacing-height . ,ly:note-head::include-ledger-line-height)
1470 (glyph-name . ,note-head::calc-glyph-name)
1471 (ligature-flexa . #f)
1472 (stem-attachment . ,ly:note-head::calc-stem-attachment)
1473 (stencil . ,ly:note-head::print)
1474 (X-offset . ,ly:note-head::stem-x-shift)
1475 (Y-offset . ,ly:staff-symbol-referencer::callback)
1476 (meta . ((class . Item)
1477 (interfaces . (font-interface
1478 gregorian-ligature-interface
1480 ligature-head-interface
1481 mensural-ligature-interface
1483 rhythmic-grob-interface
1484 rhythmic-head-interface
1485 staff-symbol-referencer-interface
1486 vaticana-ligature-interface))))))
1490 (stencil . ,ly:text-interface::print)
1491 (meta . ((class . Item)
1492 (interfaces . (font-interface
1494 text-interface))))))
1498 ;; Changed this from 0.75.
1499 ;; If you ever change this back, please document! --hwn
1500 (knee-spacing-correction . 1.0)
1501 (same-direction-correction . 0.25)
1502 (space-to-barline . #t)
1503 (stem-spacing-correction . 0.5)
1504 (meta . ((class . Item)
1505 (interfaces . (note-spacing-interface
1506 spacing-interface))))))
1511 (break-visibility . ,inherit-x-parent-visibility)
1512 (font-shape . italic)
1514 (self-alignment-X . ,CENTER)
1515 (staff-padding . 0.2)
1516 (stencil . ,ly:text-interface::print)
1517 (X-offset . ,(ly:make-simple-closure
1519 ,(ly:make-simple-closure
1520 (list ly:self-alignment-interface::x-aligned-on-self))
1521 ,(ly:make-simple-closure
1522 (list ly:self-alignment-interface::centered-on-x-parent)))))
1523 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1524 (meta . ((class . Item)
1525 (interfaces . (font-interface
1526 self-alignment-interface
1527 side-position-interface
1528 text-interface))))))
1532 (dash-fraction . 0.3)
1534 (edge-height . (0 . 1.2))
1535 (font-shape . italic)
1536 (minimum-length . 1.0)
1537 (outside-staff-priority . 400)
1539 (shorten-pair . (0.0 . -0.6))
1540 (staff-padding . 1.0)
1541 (stencil . ,ly:ottava-bracket::print)
1542 (style . dashed-line)
1543 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1544 (meta . ((class . Spanner)
1545 (interfaces . (font-interface
1546 horizontal-bracket-interface
1548 ottava-bracket-interface
1549 side-position-interface
1550 text-interface))))))
1555 (allow-loose-spacing . #t)
1557 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1558 (bound-alignment-interfaces . (note-column-interface))
1559 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1560 (keep-inside-line . #t)
1561 ;; (stencil . ,ly:paper-column::print)
1562 (X-extent . ,ly:axis-group-interface::width)
1565 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1566 (meta . ((class . Paper_column)
1567 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1568 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1569 (interfaces . (axis-group-interface
1571 paper-column-interface
1572 separation-item-interface
1573 spaceable-grob-interface))))))
1579 (stencil . ,parentheses-item::print)
1580 (stencils . ,parentheses-item::calc-parenthesis-stencils)
1581 (meta . ((class . Item)
1582 (interfaces . (font-interface
1583 parentheses-interface))))))
1587 (dot-negative-kern . 0.75)
1588 (font-encoding . fetaMusic)
1590 (spacing-pair . (break-alignment . staff-bar))
1591 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1592 (stencil . ,ly:multi-measure-rest::percent)
1594 (meta . ((class . Spanner)
1595 (interfaces . (font-interface
1596 multi-measure-rest-interface
1597 percent-repeat-interface))))))
1599 (PercentRepeatCounter
1602 (font-encoding . fetaText)
1605 (self-alignment-X . ,CENTER)
1606 (staff-padding . 0.25)
1607 (stencil . ,ly:text-interface::print)
1608 (X-offset . ,(ly:make-simple-closure
1610 ,(ly:make-simple-closure
1611 (list ly:self-alignment-interface::x-centered-on-y-parent))
1612 ,(ly:make-simple-closure
1613 (list ly:self-alignment-interface::x-aligned-on-self)))))
1614 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1615 (meta . ((class . Spanner)
1616 (interfaces . (font-interface
1617 percent-repeat-interface
1618 self-alignment-interface
1619 side-position-interface
1620 text-interface))))))
1624 (control-points . ,ly:slur::calc-control-points)
1625 (cross-staff . ,ly:slur::calc-cross-staff)
1626 (details . ,default-slur-details)
1627 (direction . ,ly:slur::calc-direction)
1628 (height-limit . 2.0)
1629 (minimum-length . 1.5)
1632 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1633 (stencil . ,ly:slur::print)
1635 (Y-extent . ,ly:slur::height)
1636 (meta . ((class . Spanner)
1637 (interfaces . (slur-interface))))))
1639 ;; an example of a text spanner
1642 (bound-padding . 1.0)
1643 (bracket-flare . (0.5 . 0.5))
1645 (edge-height . (1.0 . 1.0))
1646 (shorten-pair . (0.0 . 0.0))
1647 (stencil . ,ly:piano-pedal-bracket::print)
1650 (meta . ((class . Spanner)
1651 (interfaces . (line-interface
1652 piano-pedal-bracket-interface
1653 piano-pedal-interface))))))
1658 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1660 (break-align-symbols . (staff-bar clef))
1661 (break-visibility . ,end-of-line-invisible)
1663 (extra-spacing-width . (+inf.0 . -inf.0))
1666 (outside-staff-priority . 1500)
1668 (self-alignment-X . ,CENTER)
1669 (stencil . ,ly:text-interface::print)
1670 (X-offset . ,(ly:make-simple-closure
1672 ,(ly:make-simple-closure
1673 (list ly:break-alignable-interface::self-align-callback))
1674 ,(ly:make-simple-closure
1675 (list ly:self-alignment-interface::x-aligned-on-self)))))
1676 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1677 (meta . ((class . Item)
1678 (interfaces . (break-alignable-interface
1681 self-alignment-interface
1682 side-position-interface
1683 text-interface))))))
1687 (slash-negative-kern . 0.85)
1689 (stencil . ,ly:percent-repeat-item-interface::beat-slash)
1691 (meta . ((class . Item)
1692 (interfaces . (percent-repeat-interface
1693 percent-repeat-item-interface
1694 rhythmic-grob-interface))))))
1698 (control-points . ,ly:semi-tie::calc-control-points)
1699 (details . ((ratio . 0.333)
1700 (height-limit . 1.0)))
1701 (direction . ,ly:tie::calc-direction)
1702 (head-direction . ,RIGHT)
1703 (stencil . ,ly:tie::print)
1705 (extra-spacing-height . (-0.5 . 0.5))
1706 (meta . ((class . Item)
1707 (interfaces . (semi-tie-interface))))))
1711 (direction . ,ly:tie::calc-direction)
1712 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1713 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1716 (meta . ((class . Item)
1717 (interfaces . (semi-tie-column-interface))))))
1721 (cross-staff . ,ly:rest::calc-cross-staff)
1722 (duration-log . ,stem::calc-duration-log)
1723 (minimum-distance . 0.25)
1724 (stencil . ,ly:rest::print)
1725 (X-extent . ,ly:rest::width)
1726 (Y-extent . ,ly:rest::height)
1727 (Y-offset . ,ly:rest::y-offset-callback)
1728 (meta . ((class . Item)
1729 (interfaces . (font-interface
1731 rhythmic-grob-interface
1732 rhythmic-head-interface
1733 staff-symbol-referencer-interface))))))
1737 (minimum-distance . 0.75)
1738 (positioning-done . ,ly:rest-collision::calc-positioning-done)
1739 (meta . ((class . Item)
1740 (interfaces . (rest-collision-interface))))))
1745 (add-stem-support . #t)
1746 (cross-staff . ,ly:script-interface::calc-cross-staff)
1747 (direction . ,ly:script-interface::calc-direction)
1748 (font-encoding . fetaMusic)
1749 (positioning-done . ,ly:script-interface::calc-positioning-done)
1752 ;; padding set in script definitions.
1753 (slur-padding . 0.2)
1754 (staff-padding . 0.25)
1756 (stencil . ,ly:script-interface::print)
1758 (X-offset . ,script-interface::calc-x-offset)
1759 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1760 (meta . ((class . Item)
1761 (interfaces . (font-interface
1763 side-position-interface))))))
1767 (before-line-breaking . ,ly:script-column::before-line-breaking)
1768 (meta . ((class . Item)
1769 (interfaces . (script-column-interface))))))
1773 (before-line-breaking . ,ly:script-column::row-before-line-breaking)
1774 (meta . ((class . Item)
1775 (interfaces . (script-column-interface))))))
1779 (avoid-slur . inside)
1780 (control-points . ,ly:slur::calc-control-points)
1781 (cross-staff . ,ly:slur::calc-cross-staff)
1782 (details . ,default-slur-details)
1783 (direction . ,ly:slur::calc-direction)
1784 (height-limit . 2.0)
1785 (line-thickness . 0.8)
1786 (minimum-length . 1.5)
1789 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1790 (stencil . ,ly:slur::print)
1792 (Y-extent . ,ly:slur::height)
1793 (meta . ((class . Spanner)
1794 (interfaces . (slur-interface))))))
1798 (direction . ,RIGHT)
1799 (extra-spacing-width . (+inf.0 . -inf.0))
1800 (font-shape . italic)
1801 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
1802 (self-alignment-X . ,CENTER)
1803 (stencil . ,ly:text-interface::print)
1804 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1805 (meta . ((class . Item)
1806 (interfaces . (font-interface
1807 piano-pedal-script-interface
1808 self-alignment-interface
1809 text-interface))))))
1811 (SostenutoPedalLineSpanner
1815 (minimum-space . 1.0)
1816 (outside-staff-priority . 1000)
1819 (staff-padding . 1.0)
1820 (X-extent . ,ly:axis-group-interface::width)
1821 (Y-extent . ,ly:axis-group-interface::height)
1822 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1823 (meta . ((class . Spanner)
1824 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1825 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1826 (interfaces . (axis-group-interface
1827 piano-pedal-interface
1828 side-position-interface))))))
1832 (average-spacing-wishes . #t)
1833 (base-shortest-duration . ,(ly:make-moment 3 16))
1834 (common-shortest-duration . ,ly:spacing-spanner::calc-common-shortest-duration)
1835 (shortest-duration-space . 2.0)
1836 (spacing-increment . 1.2)
1837 (springs-and-rods . ,ly:spacing-spanner::set-springs)
1838 (meta . ((class . Spanner)
1839 (interfaces . (spacing-options-interface
1840 spacing-spanner-interface))))))
1844 (allow-span-bar . #t)
1845 (bar-extent . ,ly:axis-group-interface::height)
1846 (before-line-breaking . ,ly:span-bar::before-line-breaking)
1847 (break-align-symbol . staff-bar)
1849 (glyph-name . ,ly:span-bar::calc-glyph-name)
1851 ;; ugh duplication! (these 4 properties were copied from Barline)
1853 ;; Ross. page 151 lists other values, we opt for a leaner look
1857 (hair-thickness . 1.6)
1858 (thick-thickness . 6.0)
1862 (stencil . ,ly:span-bar::print)
1863 (X-extent . ,ly:span-bar::width)
1864 (Y-extent . (+inf.0 . -inf.0))
1865 (meta . ((class . Item)
1866 (interfaces . (bar-line-interface
1868 span-bar-interface))))))
1872 (X-extent . ,grob::x-parent-width)
1873 (Y-extent . ,(ly:make-unpure-pure-container #f ly:axis-group-interface::pure-height))
1874 (meta . ((class . Item)
1875 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1876 (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
1877 (interfaces . (pure-from-neighbor-interface))))))
1881 (staff-staff-spacing . ((basic-distance . 9)
1882 (minimum-distance . 7)
1884 (stretchability . 5)))
1885 (staffgroup-staff-spacing . ((basic-distance . 10.5)
1886 (minimum-distance . 8)
1888 (stretchability . 9)))
1889 (meta . ((class . Spanner)
1890 (interfaces . (staff-grouper-interface))))))
1895 (stem-spacing-correction . 0.4)
1896 (meta . ((class . Item)
1897 (interfaces . (spacing-interface
1898 staff-spacing-interface))))))
1903 (ledger-line-thickness . (1.0 . 0.1))
1905 (stencil . ,ly:staff-symbol::print)
1906 (Y-extent . ,ly:staff-symbol::height)
1907 (meta . ((class . Spanner)
1908 (interfaces . (staff-symbol-interface))))))
1913 (font-series . bold)
1916 (stencil . ,ly:text-interface::print)
1917 (X-offset . ,ly:side-position-interface::x-aligned-side)
1918 (meta . ((class . Item)
1919 (interfaces . (font-interface
1920 side-position-interface
1921 stanza-number-interface
1922 text-interface))))))
1926 (beamlet-default-length . (1.1 . 1.1))
1927 (beamlet-max-length-proportion . (0.75 . 0.75))
1928 (cross-staff . ,ly:stem::calc-cross-staff)
1929 (default-direction . ,ly:stem::calc-default-direction)
1932 ;; 3.5 (or 3 measured from note head) is standard length
1933 ;; 32nd, 64th, 128th flagged stems should be longer
1934 (lengths . (3.5 3.5 3.5 4.25 5.0 6.0))
1936 ;; FIXME. 3.5 yields too long beams (according to Ross and
1937 ;; looking at Baerenreiter examples) for a number of common
1938 ;; boundary cases. Subtracting half a beam thickness fixes
1939 ;; this, but the bug may well be somewhere else.
1941 ;; FIXME this should come from 'lengths
1942 (beamed-lengths . (3.26 3.5 3.6))
1944 ;; The 'normal' minima
1945 (beamed-minimum-free-lengths . (1.83 1.5 1.25))
1946 ;(beamed-minimum-free-lengths . (2.0 1.83 1.25))
1948 ;; The 'extreme case' minima
1949 (beamed-extreme-minimum-free-lengths . (2.0 1.25))
1951 ;; Stems in unnatural (forced) direction should be shortened by
1952 ;; one staff space, according to [Roush & Gourlay].
1953 ;; Flagged stems we shorten only half a staff space.
1954 (stem-shorten . (1.0 0.5))
1958 ;; We use the normal minima as minimum for the ideal lengths,
1959 ;; and the extreme minima as abolute minimum length.
1961 (direction . ,ly:stem::calc-direction)
1962 (duration-log . ,stem::calc-duration-log)
1963 (length . ,stem::length)
1964 (neutral-direction . ,DOWN)
1965 (positioning-done . ,ly:stem::calc-positioning-done)
1966 (stem-info . ,ly:stem::calc-stem-info)
1967 (stem-begin-position . ,ly:stem::calc-stem-begin-position)
1968 (stencil . ,ly:stem::print)
1970 (X-extent . ,ly:stem::width)
1971 (X-offset . ,ly:stem::offset-callback)
1972 (Y-extent . ,ly:stem::height)
1973 (Y-offset . ,ly:staff-symbol-referencer::callback)
1974 (meta . ((class . Item)
1975 (interfaces . (stem-interface))))))
1979 (beam-thickness . 0.48) ; staff-space
1980 (beam-width . ,ly:stem-tremolo::calc-width) ; staff-space
1981 (slope . ,ly:stem-tremolo::calc-slope)
1982 (stencil . ,ly:stem-tremolo::print)
1983 (style . ,ly:stem-tremolo::calc-style)
1984 (X-extent . ,ly:stem-tremolo::width)
1985 (Y-offset . ,ly:stem-tremolo::calc-y-offset)
1986 (meta . ((class . Item)
1987 (interfaces . (stem-tremolo-interface))))))
1991 (avoid-slur . around)
1992 (cross-staff . ,script-or-side-position-cross-staff)
1993 (font-encoding . fetaText)
1994 (font-size . -5) ; don't overlap when next to heads.
1996 (script-priority . 100)
1997 (self-alignment-X . ,CENTER)
1998 (self-alignment-Y . ,CENTER)
1999 (staff-padding . 0.5)
2000 (stencil . ,print-circled-text-callback)
2001 (text . ,string-number::calc-text)
2002 (meta . ((class . Item)
2003 (interfaces . (font-interface
2004 self-alignment-interface
2005 side-position-interface
2006 string-number-interface
2008 text-script-interface))))))
2012 (digit-names . #("p" "i" "m" "a" "x"))
2013 (font-shape . italic)
2014 (font-size . -4) ; don't overlap when next to heads.
2016 (script-priority . 100)
2017 (self-alignment-X . ,CENTER)
2018 (self-alignment-Y . ,CENTER)
2019 (staff-padding . 0.5)
2020 (stencil . ,ly:text-interface::print)
2021 (text . ,stroke-finger::calc-text)
2022 (meta . ((class . Item)
2023 (interfaces . (font-interface
2024 self-alignment-interface
2025 side-position-interface
2026 stroke-finger-interface
2028 text-script-interface))))))
2032 (direction . ,RIGHT)
2033 (extra-spacing-width . (+inf.0 . -inf.0))
2034 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
2035 (self-alignment-X . ,CENTER)
2036 (stencil . ,ly:sustain-pedal::print)
2037 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2038 (meta . ((class . Item)
2039 (interfaces . (font-interface
2040 piano-pedal-interface
2041 piano-pedal-script-interface
2042 self-alignment-interface
2043 text-interface))))))
2045 (SustainPedalLineSpanner
2049 (minimum-space . 1.0)
2050 (outside-staff-priority . 1000)
2053 (staff-padding . 1.2)
2054 (X-extent . ,ly:axis-group-interface::width)
2055 (Y-extent . ,ly:axis-group-interface::height)
2056 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2057 (meta . ((class . Spanner)
2058 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2059 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2060 (interfaces . (axis-group-interface
2061 piano-pedal-interface
2062 side-position-interface))))))
2066 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2068 (skyline-horizontal-padding . 0.5)
2069 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
2070 (X-extent . ,ly:axis-group-interface::width)
2071 (Y-extent . ,ly:system::height)
2072 (meta . ((class . System)
2073 (object-callbacks . ((footnotes-before-line-breaking . ,ly:system::footnotes-before-line-breaking)
2074 (footnotes-after-line-breaking . ,ly:system::footnotes-after-line-breaking)
2075 (pure-relevant-grobs . ,ly:system::calc-pure-relevant-grobs)
2076 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)))
2077 (interfaces . (axis-group-interface
2078 system-interface))))))
2082 (collapse-height . 5.0)
2086 (padding . -0.1) ;; bar must cover rounded ending of staff line.
2087 (stencil . ,ly:system-start-delimiter::print)
2090 (X-offset . ,ly:side-position-interface::x-aligned-side)
2092 (meta . ((class . Spanner)
2093 (interfaces . (side-position-interface
2094 system-start-delimiter-interface))))))
2098 (collapse-height . 5.0)
2100 (font-encoding . fetaBraces)
2102 (stencil . ,ly:system-start-delimiter::print)
2104 (X-offset . ,ly:side-position-interface::x-aligned-side)
2106 (meta . ((class . Spanner)
2107 (interfaces . (font-interface
2108 side-position-interface
2109 system-start-delimiter-interface))))))
2113 (collapse-height . 5.0)
2116 (stencil . ,ly:system-start-delimiter::print)
2119 (X-offset . ,ly:side-position-interface::x-aligned-side)
2121 (meta . ((class . Spanner)
2122 (interfaces . (font-interface
2123 side-position-interface
2124 system-start-delimiter-interface))))))
2129 (stencil . ,ly:system-start-delimiter::print)
2130 (style . line-bracket)
2132 (X-offset . ,ly:side-position-interface::x-aligned-side)
2134 (meta . ((class . Spanner)
2135 (interfaces . (font-interface
2136 side-position-interface
2137 system-start-delimiter-interface))))))
2142 (details . ((cautionary-properties . ((angularity . 0.4)
2143 (half-thickness . 0.075)
2145 (procedure . ,parenthesize-stencil)
2148 (harmonic-properties . ((angularity . 2)
2149 (half-thickness . 0.075)
2151 (procedure . ,parenthesize-stencil)
2153 (repeat-tied-properties . ((note-head-visible . #t)
2154 (parenthesize . #t)))
2155 (tied-properties . ((break-visibility . ,begin-of-line-visible)
2156 (parenthesize . #t)))))
2158 (direction . ,CENTER)
2159 (duration-log . ,note-head::calc-duration-log)
2160 (font-series . bold)
2162 (stem-attachment . (0.0 . 1.35))
2163 (stencil . ,tab-note-head::print)
2165 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2166 (Y-offset . ,ly:staff-symbol-referencer::callback)
2167 (meta . ((class . Item)
2168 (interfaces . (font-interface
2170 rhythmic-grob-interface
2171 rhythmic-head-interface
2172 staff-symbol-referencer-interface
2173 tab-note-head-interface
2174 text-interface))))))
2178 (avoid-slur . around)
2179 (cross-staff . ,script-or-side-position-cross-staff)
2181 (extra-spacing-width . (+inf.0 . -inf.0))
2182 (outside-staff-priority . 450)
2184 ;; sync with Fingering ?
2187 (script-priority . 200)
2189 (slur-padding . 0.5)
2190 (staff-padding . 0.5)
2191 (stencil . ,ly:text-interface::print)
2192 ;; todo: add X self alignment?
2193 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2194 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2195 (meta . ((class . Item)
2196 (interfaces . (font-interface
2197 instrument-specific-markup-interface
2198 self-alignment-interface
2199 side-position-interface
2201 text-script-interface))))))
2205 (bound-details . ((left . ((Y . 0)
2207 (attach-dir . ,LEFT)
2209 (left-broken . ((end-on-note . #t)))
2214 (dash-fraction . 0.2)
2217 (font-shape . italic)
2218 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2219 (outside-staff-priority . 350)
2220 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2222 (staff-padding . 0.8)
2223 (stencil . ,ly:line-spanner::print)
2224 (style . dashed-line)
2225 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2227 (meta . ((class . Spanner)
2228 (interfaces . (font-interface
2230 line-spanner-interface
2231 side-position-interface))))))
2235 (avoid-slur . inside)
2236 (control-points . ,ly:tie::calc-control-points)
2238 ;; for a full list, see tie-details.cc
2240 (center-staff-line-clearance . 0.6)
2241 (tip-staff-line-clearance . 0.45)
2242 (note-head-gap . 0.2)
2244 (height-limit . 1.0)
2245 (horizontal-distance-penalty-factor . 10)
2246 (same-dir-as-stem-penalty . 8)
2247 (min-length-penalty-factor . 26)
2248 (tie-tie-collision-distance . 0.45)
2249 (tie-tie-collision-penalty . 25.0)
2250 (intra-space-threshold . 1.25)
2251 (outer-tie-vertical-distance-symmetry-penalty-factor . 10)
2252 (outer-tie-length-symmetry-penalty-factor . 10)
2253 (vertical-distance-penalty-factor . 7)
2254 (outer-tie-vertical-gap . 0.25)
2255 (multi-tie-region-size . 3)
2256 (single-tie-region-size . 4)
2257 (between-length-limit . 1.0)))
2259 (direction . ,ly:tie::calc-direction)
2261 (line-thickness . 0.8)
2262 (neutral-direction . ,UP)
2263 (springs-and-rods . ,ly:spanner::set-spacing-rods)
2264 (stencil . ,ly:tie::print)
2266 (meta . ((class . Spanner)
2267 (interfaces . (tie-interface))))))
2271 (before-line-breaking . ,ly:tie-column::before-line-breaking)
2272 (positioning-done . ,ly:tie-column::calc-positioning-done)
2275 (meta . ((class . Spanner)
2276 (interfaces . (tie-column-interface))))))
2280 (avoid-slur . inside)
2282 . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
2283 (break-align-symbol . time-signature)
2284 (break-align-anchor-alignment . ,LEFT)
2285 (break-visibility . ,all-visible)
2286 (extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height-including-staff)
2287 (extra-spacing-width . (0.0 . 0.8))
2290 (cue-clef . (extra-space . 1.5))
2291 (first-note . (fixed-space . 2.0))
2292 (right-edge . (extra-space . 0.5))
2293 (staff-bar . (minimum-space . 2.0))))
2294 (stencil . ,ly:time-signature::print)
2296 (meta . ((class . Item)
2297 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2298 (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
2299 (interfaces . (break-aligned-interface
2301 pure-from-neighbor-interface
2302 time-signature-interface))))))
2304 (TrillPitchAccidental
2308 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
2311 (stencil . ,ly:accidental-interface::print)
2312 (X-offset . ,ly:side-position-interface::x-aligned-side)
2313 (Y-extent . ,ly:accidental-interface::height)
2314 (meta . ((class . Item)
2315 (interfaces . (accidental-interface
2317 inline-accidental-interface
2318 side-position-interface
2319 trill-pitch-accidental-interface))))))
2324 (direction . ,RIGHT)
2328 (stencil . ,parenthesize-elements)
2329 (stencils . ,parentheses-item::calc-parenthesis-stencils)
2330 (X-offset . ,ly:side-position-interface::x-aligned-side)
2331 (meta . ((class . Item)
2332 (interfaces . (axis-group-interface
2335 parentheses-interface
2336 side-position-interface))))))
2342 (stencil . ,ly:note-head::print)
2343 (Y-offset . ,ly:staff-symbol-referencer::callback)
2344 (meta . ((class . Item)
2345 (interfaces . (font-interface
2347 pitched-trill-interface
2348 rhythmic-head-interface
2349 staff-symbol-referencer-interface))))))
2353 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2354 (bound-details . ((left . ((text . ,(make-musicglyph-markup "scripts.trill"))
2356 (stencil-offset . (-0.5 . -1))
2358 (attach-dir . ,CENTER)
2360 (left-broken . ((end-on-note . #t)))
2364 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2365 (outside-staff-priority . 50)
2367 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2369 (staff-padding . 1.0)
2370 (stencil . ,ly:line-spanner::print)
2372 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2373 (meta . ((class . Spanner)
2374 (interfaces . (font-interface
2376 line-spanner-interface
2377 side-position-interface
2378 trill-spanner-interface))))))
2382 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
2383 (cross-staff . ,ly:tuplet-bracket::calc-cross-staff)
2384 (direction . ,ly:tuplet-bracket::calc-direction)
2385 (edge-height . (0.7 . 0.7))
2386 (full-length-to-extent . #t)
2388 (positions . ,ly:tuplet-bracket::calc-positions)
2389 (shorten-pair . (-0.2 . -0.2))
2390 (staff-padding . 0.25)
2391 (stencil . ,ly:tuplet-bracket::print)
2393 (X-positions . ,ly:tuplet-bracket::calc-x-positions)
2395 (meta . ((class . Spanner)
2396 (interfaces . (line-interface
2397 tuplet-bracket-interface))))))
2401 (avoid-slur . inside)
2402 (cross-staff . ,ly:tuplet-number::calc-cross-staff)
2403 (direction . ,tuplet-number::calc-direction)
2404 (font-shape . italic)
2406 (stencil . ,ly:tuplet-number::print)
2407 (text . ,tuplet-number::calc-denominator-text)
2408 (X-offset . ,ly:tuplet-number::calc-x-offset)
2409 (Y-offset . ,ly:tuplet-number::calc-y-offset)
2410 (meta . ((class . Spanner)
2411 (interfaces . (font-interface
2413 tuplet-number-interface))))))
2418 (direction . ,RIGHT)
2419 (extra-spacing-width . (+inf.0 . -inf.0))
2420 (font-shape . italic)
2421 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
2422 (self-alignment-X . ,CENTER)
2423 (stencil . ,ly:text-interface::print)
2424 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2425 (meta . ((class . Item)
2426 (interfaces . (font-interface
2427 piano-pedal-script-interface
2428 self-alignment-interface
2429 text-interface))))))
2431 (UnaCordaPedalLineSpanner
2435 (minimum-space . 1.0)
2436 (outside-staff-priority . 1000)
2439 (staff-padding . 1.2)
2440 (X-extent . ,ly:axis-group-interface::width)
2441 (Y-extent . ,ly:axis-group-interface::height)
2442 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2443 (meta . ((class . Spanner)
2444 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2445 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2446 (interfaces . (axis-group-interface
2447 piano-pedal-interface
2448 side-position-interface))))))
2454 (stencil . ,ly:vaticana-ligature::print)
2456 (meta . ((class . Spanner)
2457 (interfaces . (font-interface
2458 vaticana-ligature-interface))))))
2463 (positioning-done . ,ly:align-interface::align-to-ideal-distances)
2465 (vertical-skylines . ,ly:axis-group-interface::combine-skylines)
2466 (X-extent . ,ly:axis-group-interface::width)
2467 (Y-extent . ,ly:axis-group-interface::height)
2468 (meta . ((class . Spanner)
2469 (object-callbacks . ((full-score-pure-minimum-translations . ,ly:align-interface::full-score-pure-minimum-translations)
2470 (Y-common . ,ly:axis-group-interface::calc-y-common)
2471 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)
2472 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)))
2473 (interfaces . (align-interface
2474 axis-group-interface))))))
2478 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2480 (default-staff-staff-spacing . ((basic-distance . 9)
2481 (minimum-distance . 8)
2483 (nonstaff-unrelatedstaff-spacing . ((padding . 0.5)))
2484 (staff-staff-spacing . ,ly:axis-group-interface::calc-staff-staff-spacing)
2485 (stencil . ,ly:axis-group-interface::print)
2486 (vertical-skylines . ,ly:hara-kiri-group-spanner::calc-skylines)
2487 (X-extent . ,ly:axis-group-interface::width)
2488 (Y-extent . ,ly:hara-kiri-group-spanner::y-extent)
2489 (Y-offset . ,ly:hara-kiri-group-spanner::force-hara-kiri-callback)
2490 (meta . ((class . Spanner)
2491 (object-callbacks . (
2492 (X-common . ,ly:axis-group-interface::calc-x-common)
2493 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2494 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2496 (interfaces . (axis-group-interface
2497 hara-kiri-group-spanner-interface))))))
2501 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2502 (bound-details . ((right . ((attach-dir . ,CENTER)
2505 (left . ((attach-dir . ,CENTER)
2510 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2512 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2513 (stencil . ,ly:line-spanner::print)
2517 (meta . ((class . Spanner)
2518 (interfaces . (line-interface
2519 line-spanner-interface))))))
2524 (edge-height . (2.0 . 2.0)) ;; staff-space;
2525 (font-encoding . fetaText)
2527 (stencil . ,ly:volta-bracket-interface::print)
2528 (thickness . 1.6) ;; line-thickness
2530 (meta . ((class . Spanner)
2531 (interfaces . (font-interface
2532 horizontal-bracket-interface
2534 side-position-interface
2536 volta-bracket-interface
2537 volta-interface))))))
2539 (VoltaBracketSpanner
2541 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
2545 (outside-staff-priority . 600)
2548 (X-extent . ,ly:axis-group-interface::width)
2549 (Y-extent . ,ly:axis-group-interface::height)
2550 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2551 (meta . ((class . Spanner)
2552 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2553 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2554 (interfaces . (axis-group-interface
2555 side-position-interface
2556 volta-interface))))))
2560 (define (completize-grob-entry x)
2561 "Transplant assoc key into 'name entry of 'meta of X. Set interfaces for Item, Spanner etc.
2563 ;; (display (car x))
2565 (let* ((name-sym (car x))
2566 (grob-entry (cdr x))
2567 (meta-entry (assoc-get 'meta grob-entry))
2568 (class (assoc-get 'class meta-entry))
2570 (assoc-get 'interfaces meta-entry)))
2574 (set! ifaces-entry (cons 'item-interface ifaces-entry)))
2575 ((eq? 'Spanner class)
2576 (set! ifaces-entry (cons 'spanner-interface ifaces-entry)))
2577 ((eq? 'Paper_column class)
2578 (set! ifaces-entry (cons 'item-interface
2579 (cons 'paper-column-interface ifaces-entry))))
2580 ((eq? 'System class)
2581 (set! ifaces-entry (cons 'system-interface
2582 (cons 'spanner-interface ifaces-entry))))
2584 (ly:warning "Unknown class ~a" class)))
2586 (set! ifaces-entry (uniq-list (sort ifaces-entry symbol<?)))
2587 (set! ifaces-entry (cons 'grob-interface ifaces-entry))
2589 (set! meta-entry (assoc-set! meta-entry 'name name-sym))
2590 (set! meta-entry (assoc-set! meta-entry 'interfaces
2592 (set! grob-entry (assoc-set! grob-entry 'meta meta-entry))
2593 (cons name-sym grob-entry)))
2595 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
2597 ;; (display (map pair? all-grob-descriptions))
2599 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
2602 ;; (display (car x)) (newline)
2604 (set-object-property! (car x) 'translation-type? list?)
2605 (set-object-property! (car x) 'is-grob? #t))
2606 all-grob-descriptions)
2608 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))
2610 (define (volta-bracket-interface::pure-height grob start end)
2611 (let ((edge-height (ly:grob-property grob 'edge-height)))
2612 (if (number-pair? edge-height)
2613 (let ((smaller (min (car edge-height) (cdr edge-height)))
2614 (larger (max (car edge-height) (cdr edge-height))))
2615 (interval-union '(0 . 0) (cons smaller larger)))
2618 (define pure-print-callbacks
2620 fret-board::calc-stencil
2621 note-head::brew-ez-stencil
2622 print-circled-text-callback
2623 laissez-vibrer::print
2626 ly:mensural-ligature::brew-ligature-primitive
2635 modern-straight-flag
2637 ly:key-signature-interface::print
2638 ly:percent-repeat-item-interface::beat-slash
2639 ly:text-interface::print
2640 ly:script-interface::print
2641 ly:sustain-pedal::print))
2643 ;; Sometimes we have grobs with (Y-extent . ,ly:grob::stencil-height)
2644 ;; and the print function is not pure, but there is a easy way to
2645 ;; figure out the Y-extent from the print function.
2646 (define pure-print-to-height-conversions
2648 (,ly:arpeggio::print . ,ly:arpeggio::pure-height)
2649 (,ly:arpeggio::brew-chord-bracket . ,ly:arpeggio::pure-height)
2650 (,ly:arpeggio::brew-chord-slur . ,ly:arpeggio::pure-height)
2651 (,ly:hairpin::print . ,ly:hairpin::pure-height)
2652 (,ly:stem-tremolo::print . ,ly:stem-tremolo::pure-height)
2653 (,ly:volta-bracket-interface::print . ,volta-bracket-interface::pure-height)))
2655 ;; ly:grob::stencil-extent is safe if the print callback is safe too
2656 (define (pure-stencil-height grob start stop)
2657 (let* ((sten (ly:grob-property-data grob 'stencil))
2658 (pure-height-callback (assoc-get sten pure-print-to-height-conversions)))
2661 (memq sten pure-print-callbacks))
2662 (ly:grob::stencil-height grob))
2663 ((procedure? pure-height-callback)
2664 (pure-height-callback grob start stop))
2668 ;; Sometimes, a pure callback will be chained to a non-pure callback via
2669 ;; chain_offset_callback, in which case this provides a default by simply
2670 ;; passing through the value from the pure callback.
2671 (define (pure-chain-offset-callback grob start end prev-offset) prev-offset)
2673 (define pure-conversions-alist
2675 (,ly:accidental-interface::height . ,ly:accidental-interface::pure-height)
2676 (,ly:axis-group-interface::calc-staff-staff-spacing . ,ly:axis-group-interface::calc-pure-staff-staff-spacing)
2677 (,ly:axis-group-interface::height . ,ly:axis-group-interface::pure-height)
2678 (,ly:beam::rest-collision-callback . ,ly:beam::pure-rest-collision-callback)
2679 (,ly:grob::stencil-height . ,pure-stencil-height)
2680 (,ly:hara-kiri-group-spanner::y-extent . ,ly:hara-kiri-group-spanner::pure-height)
2681 (,ly:rest-collision::force-shift-callback-rest . ,pure-chain-offset-callback)
2682 (,ly:rest::height . ,ly:rest::pure-height)
2683 (,ly:self-alignment-interface::y-aligned-on-self . ,ly:self-alignment-interface::pure-y-aligned-on-self)
2684 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)
2685 (,ly:slur::height . ,ly:slur::pure-height)
2686 (,ly:slur::outside-slur-callback . ,ly:slur::pure-outside-slur-callback)
2687 (,ly:stem::calc-stem-begin-position . ,ly:stem::pure-calc-stem-begin-position)
2688 (,ly:stem::calc-stem-end-position . ,ly:stem::pure-calc-stem-end-position)
2689 (,stem::length . ,stem::pure-length)
2690 (,ly:stem::height . ,ly:stem::pure-height)
2691 (,ly:stem-tremolo::calc-y-offset . ,ly:stem-tremolo::pure-calc-y-offset)
2692 (,ly:system::height . ,ly:system::calc-pure-height)))
2694 (define pure-functions
2696 parenthesize-elements
2697 laissez-vibrer::print
2698 ly:flag::calc-y-offset
2699 ly:rest::y-offset-callback
2700 ly:staff-symbol-referencer::callback
2701 ly:staff-symbol::height))
2703 (define-public (pure-relevant? grob)
2704 (let ((extent-callback (ly:grob-property-data grob 'Y-extent)))
2707 (ly:unpure-pure-container? extent-callback)
2708 (pair? extent-callback)
2709 (memq extent-callback pure-functions)
2711 (pair? (assq extent-callback pure-conversions-alist))
2712 (let ((stencil (ly:grob-property-data grob 'stencil)))
2714 (not (eq? extent-callback ly:grob::stencil-height))
2715 (memq stencil pure-print-callbacks)
2716 (assq stencil pure-print-to-height-conversions)
2717 (ly:stencil? stencil)))))))))
2719 ;; hideous code dup below - to be cleaned up when call pure functino
2720 ;; is eliminated and lilypond works entirely from unpure-pure-containers
2722 (define-public (call-pure-function unpure args start end)
2723 (if (ly:unpure-pure-container? unpure)
2724 (let ((unpure (ly:unpure-pure-container-pure-part unpure)))
2725 (if (ly:simple-closure? unpure)
2726 (ly:eval-simple-closure (car args) unpure start end)
2727 (if (not (procedure? unpure))
2731 (list (car args) start end)
2733 (if (ly:simple-closure? unpure)
2734 (ly:eval-simple-closure (car args) unpure start end)
2735 (if (not (procedure? unpure))
2737 (if (memq unpure pure-functions)
2739 (let ((pure (assq unpure pure-conversions-alist)))
2743 (list (car args) start end)