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)
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)
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)
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 (dot-count . ,dots::calc-dot-count)
677 (staff-position . ,dots::calc-staff-position)
678 (stencil . ,ly:dots::print)
679 (extra-spacing-height . (-0.5 . 0.5))
680 (meta . ((class . Item)
681 (interfaces . (dots-interface
683 staff-symbol-referencer-interface))))))
687 (break-align-symbol . staff-bar)
688 (break-visibility . ,begin-of-line-invisible)
689 (dot-negative-kern . 0.75)
690 (font-encoding . fetaMusic)
692 (slash-negative-kern . 1.6)
694 (stencil . ,ly:percent-repeat-item-interface::double-percent)
696 (meta . ((class . Item)
697 (interfaces . (break-aligned-interface
699 percent-repeat-interface
700 percent-repeat-item-interface))))))
702 (DoublePercentRepeatCounter
705 (font-encoding . fetaText)
708 (self-alignment-X . ,CENTER)
710 (staff-padding . 0.25)
711 (stencil . ,ly:text-interface::print)
712 (X-offset . ,(ly:make-simple-closure
714 ,(ly:make-simple-closure
715 (list ly:self-alignment-interface::centered-on-y-parent))
716 ,(ly:make-simple-closure
717 (list ly:self-alignment-interface::x-aligned-on-self)))))
718 (Y-offset . ,ly:side-position-interface::y-aligned-side)
719 (meta . ((class . Item)
720 (interfaces . (font-interface
721 percent-repeat-interface
722 percent-repeat-item-interface
723 self-alignment-interface
724 side-position-interface
729 (dot-negative-kern . 0.75)
730 (font-encoding . fetaMusic)
731 (slash-negative-kern . 1.6)
733 (stencil . ,ly:percent-repeat-item-interface::beat-slash)
735 (meta . ((class . Item)
736 (interfaces . (font-interface
737 percent-repeat-interface
738 percent-repeat-item-interface
739 rhythmic-grob-interface))))))
744 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
746 (minimum-space . 1.2)
747 (outside-staff-priority . 250)
751 (staff-padding . 0.1)
752 (X-extent . ,ly:axis-group-interface::width)
753 (Y-extent . ,ly:axis-group-interface::height)
754 (Y-offset . ,ly:side-position-interface::y-aligned-side)
755 (meta . ((class . Spanner)
756 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
757 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
758 (interfaces . (axis-group-interface
760 dynamic-line-spanner-interface
761 side-position-interface))))))
768 (direction . ,ly:script-interface::calc-direction)
769 (extra-spacing-width . (+inf.0 . -inf.0))
770 (font-encoding . fetaText)
772 (font-shape . italic)
773 (outside-staff-priority . 250)
774 (positioning-done . ,ly:script-interface::calc-positioning-done)
775 (right-padding . 0.5)
776 (self-alignment-X . ,CENTER)
777 (self-alignment-Y . ,CENTER)
778 (stencil . ,ly:text-interface::print)
779 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
780 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
781 (meta . ((class . Item)
782 (interfaces . (dynamic-interface
783 dynamic-text-interface
786 self-alignment-interface
791 (before-line-breaking . ,dynamic-text-spanner::before-line-breaking)
792 (bound-details . ((right . ((attach-dir . ,LEFT)
796 (right-broken . ((attach-dir . ,RIGHT)
800 (left . ((attach-dir . ,LEFT)
802 (stencil-offset . (-0.75 . -0.5))
805 (left-broken . ((attach-dir . ,RIGHT)
808 (dash-fraction . 0.2)
811 ;; rather ugh with NCSB
812 ;; (font-series . bold)
813 (font-shape . italic)
815 ;; need to blend with dynamic texts.
818 (left-bound-info . ,ly:line-spanner::calc-left-bound-info-and-text)
820 (minimum-length . 2.0)
821 ;; make sure the spanner doesn't get too close to notes
822 (minimum-Y-extent . (-1 . 1))
824 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
825 (springs-and-rods . ,ly:spanner::set-spacing-rods)
826 (stencil . ,ly:line-spanner::print)
827 (style . dashed-line)
828 (meta . ((class . Spanner)
829 (interfaces . (dynamic-interface
830 dynamic-text-spanner-interface
833 line-spanner-interface
840 (bound-details . ((left . ((Y . 0)
846 (attach-dir . ,RIGHT)
850 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
851 (quantize-position . #t)
852 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
854 (stencil . ,ly:line-spanner::print)
856 (Y-offset . ,ly:side-position-interface::y-aligned-side)
857 (meta . ((class . Spanner)
858 (interfaces . (episema-interface
861 line-spanner-interface
862 side-position-interface))))))
868 ;; sync with TextScript (?)
870 (avoid-slur . around)
871 (cross-staff . ,script-or-side-position-cross-staff)
872 (direction . ,ly:script-interface::calc-direction)
873 (font-encoding . fetaText)
874 (font-size . -5) ; don't overlap when next to heads.
876 (positioning-done . ,ly:script-interface::calc-positioning-done)
877 (script-priority . 100)
878 (self-alignment-X . ,CENTER)
879 (self-alignment-Y . ,CENTER)
881 (staff-padding . 0.5)
882 (stencil . ,ly:text-interface::print)
883 (text . ,fingering::calc-text)
884 (meta . ((class . Item)
885 (interfaces . (finger-interface
887 self-alignment-interface
888 side-position-interface
890 text-script-interface))))))
894 (stencil . ,ly:flag::print)
895 (X-extent . ,ly:flag::width)
896 (X-offset . ,ly:flag::calc-x-offset)
897 (Y-offset . ,ly:flag::calc-y-offset)
898 (meta . ((class . Item)
899 (interfaces . (flag-interface
904 (annotation-balloon . #f)
905 (annotation-line . #t)
906 (automatically-numbered . ,(grob::calc-property-by-copy 'automatically-numbered))
907 (break-visibility . ,inherit-y-parent-visibility)
909 (footnote-text . ,(grob::calc-property-by-copy 'footnote-text))
910 (stencil . ,ly:balloon-interface::print)
911 (text . ,(grob::calc-property-by-copy 'text))
914 (X-offset . ,(grob::calc-property-by-copy 'X-offset))
915 (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
916 (meta . ((class . Item)
917 (interfaces . (balloon-interface
924 (annotation-balloon . #f)
925 (annotation-line . #t)
926 (automatically-numbered . ,(grob::calc-property-by-copy 'automatically-numbered))
928 (footnote-text . ,(grob::calc-property-by-copy 'footnote-text))
929 (spanner-placement . ,LEFT)
930 (stencil . ,ly:balloon-interface::print-spanner)
931 (text . ,(grob::calc-property-by-copy 'text))
934 (X-offset . ,(grob::calc-property-by-copy 'X-offset))
935 (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
936 (meta . ((class . Spanner)
937 (interfaces . (balloon-interface
939 footnote-spanner-interface
945 (after-line-breaking . ,ly:chord-name::after-line-breaking)
946 (fret-diagram-details . ((finger-code . below-string)))
947 (stencil . ,fret-board::calc-stencil)
948 (extra-spacing-height . (0.2 . -0.2))
949 (extra-spacing-width . (-0.5 . 0.5))
950 (meta . ((class . Item)
951 (interfaces . (chord-name-interface
953 fret-diagram-interface
954 rhythmic-grob-interface))))))
959 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
960 (bound-details . ((right . ((attach-dir . ,LEFT)
961 (end-on-accidental . #t)
964 (left . ((attach-dir . ,RIGHT)
969 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
970 (normalized-endpoints . ,ly:spanner::calc-normalized-endpoints)
971 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
973 (stencil . ,ly:line-spanner::print)
977 (zigzag-width . 0.75)
978 (meta . ((class . Spanner)
979 (interfaces . (glissando-interface
981 line-spanner-interface
982 unbreakable-spanner-interface))))))
986 (common-shortest-duration . ,grace-spacing::calc-shortest-duration)
987 (shortest-duration-space . 1.6)
988 (spacing-increment . 0.8)
989 (meta . ((class . Spanner)
990 (interfaces . (grace-spacing-interface
991 spacing-options-interface
992 spanner-interface))))))
997 (self-alignment-X . ,CENTER)
998 (stencil . ,ly:grid-line-interface::print)
999 (X-extent . ,ly:grid-line-interface::width)
1000 (X-offset . ,(ly:make-simple-closure
1002 ,(ly:make-simple-closure
1003 (list ly:self-alignment-interface::centered-on-x-parent))
1004 ,(ly:make-simple-closure
1005 (list ly:self-alignment-interface::x-aligned-on-self)))))
1006 (meta . ((class . Item)
1007 (interfaces . (grid-line-interface
1008 self-alignment-interface))))))
1012 (X-extent . (0 . 0))
1013 (Y-extent . (0 . 0))
1014 (meta . ((class . Item)
1015 (interfaces . (grid-point-interface))))))
1020 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
1021 (bound-padding . 1.0)
1023 (grow-direction . ,hairpin::calc-grow-direction)
1025 (minimum-length . 2.0)
1026 (self-alignment-Y . ,CENTER)
1027 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1028 (stencil . ,ly:hairpin::print)
1031 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
1032 (meta . ((class . Spanner)
1033 (interfaces . (dynamic-interface
1036 self-alignment-interface
1037 spanner-interface))))))
1041 (bracket-flare . (0.5 . 0.5))
1042 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
1046 (staff-padding . 0.2)
1047 (stencil . ,ly:horizontal-bracket::print)
1049 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1050 (meta . ((class . Spanner)
1051 (interfaces . (horizontal-bracket-interface
1053 side-position-interface
1054 spanner-interface))))))
1061 (self-alignment-X . ,CENTER)
1062 (self-alignment-Y . ,CENTER)
1063 (stencil . ,system-start-text::print)
1064 (X-offset . ,system-start-text::calc-x-offset)
1065 (Y-offset . ,system-start-text::calc-y-offset)
1066 (meta . ((class . Spanner)
1067 (interfaces . (font-interface
1068 self-alignment-interface
1069 side-position-interface
1070 system-start-text-interface))))))
1075 (extra-spacing-width . (+inf.0 . -inf.0))
1076 (outside-staff-priority . 500)
1078 (self-alignment-X . ,LEFT)
1080 (staff-padding . 0.5)
1081 (stencil . ,ly:text-interface::print)
1082 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1083 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1084 (meta . ((class . Item)
1085 (interfaces . (font-interface
1086 self-alignment-interface
1087 side-position-interface
1088 text-interface))))))
1093 (break-align-symbol . key-cancellation)
1094 (break-visibility . ,begin-of-line-invisible)
1095 (glyph-name-alist . ,cancellation-glyph-name-alist)
1098 (time-signature . (extra-space . 1.25))
1099 (staff-bar . (extra-space . 0.6))
1100 (key-signature . (extra-space . 0.5))
1101 (cue-clef . (extra-space . 0.5))
1102 (right-edge . (extra-space . 0.5))
1103 (first-note . (fixed-space . 2.5))))
1104 (stencil . ,ly:key-signature-interface::print)
1105 (extra-spacing-width . (0.0 . 1.0))
1106 (Y-offset . ,ly:staff-symbol-referencer::callback)
1107 (meta . ((class . Item)
1108 (interfaces . (break-aligned-interface
1110 key-cancellation-interface
1111 key-signature-interface
1112 staff-symbol-referencer-interface))))))
1116 (avoid-slur . inside)
1117 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1118 (break-align-symbol . key-signature)
1119 (break-visibility . ,begin-of-line-visible)
1120 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
1123 (time-signature . (extra-space . 1.15))
1124 (staff-bar . (extra-space . 1.1))
1125 (cue-clef . (extra-space . 0.5))
1126 (right-edge . (extra-space . 0.5))
1127 (first-note . (fixed-space . 2.5))))
1128 (stencil . ,ly:key-signature-interface::print)
1129 (extra-spacing-width . (0.0 . 1.0))
1130 ;(extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height-including-staff)
1131 (Y-offset . ,ly:staff-symbol-referencer::callback)
1132 (meta . ((class . Item)
1133 ;(object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1134 ; (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
1135 (interfaces . (break-aligned-interface
1137 key-signature-interface
1138 ;pure-from-neighbor-interface
1139 staff-symbol-referencer-interface))))))
1144 (control-points . ,ly:semi-tie::calc-control-points)
1145 (details . ((ratio . 0.333)
1146 (height-limit . 1.0)))
1147 (direction . ,ly:tie::calc-direction)
1148 (head-direction . ,LEFT)
1149 (stencil . ,laissez-vibrer::print)
1151 (extra-spacing-height . (-0.5 . 0.5))
1152 (meta . ((class . Item)
1153 (interfaces . (semi-tie-interface))))))
1155 (LaissezVibrerTieColumn
1157 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1158 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1161 (meta . ((class . Item)
1162 (interfaces . (semi-tie-column-interface))))))
1167 (length-fraction . 0.25)
1168 (minimum-length-fraction . 0.25)
1169 (springs-and-rods . ,ly:ledger-line-spanner::set-spacing-rods)
1170 (stencil . ,ly:ledger-line-spanner::print)
1173 (meta . ((class . Spanner)
1174 (interfaces . (ledger-line-spanner-interface))))))
1178 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1179 (break-align-symbol . left-edge)
1180 (break-visibility . ,center-invisible)
1182 (extra-spacing-height . (+inf.0 . -inf.0))
1184 (ambitus . (extra-space . 2.0))
1185 (breathing-sign . (minimum-space . 0.0))
1186 (cue-end-clef . (extra-space . 0.8))
1187 (clef . (extra-space . 0.8))
1188 (cue-clef . (extra-space . 0.8))
1189 (staff-bar . (extra-space . 0.0))
1190 (key-cancellation . (extra-space . 0.0))
1191 (key-signature . (extra-space . 0.8))
1192 (time-signature . (extra-space . 1.0))
1193 (custos . (extra-space . 0.0))
1194 (first-note . (fixed-space . 2.0))
1195 (right-edge . (extra-space . 0.0))
1197 (X-extent . (0 . 0))
1198 (meta . ((class . Item)
1199 (interfaces . (break-aligned-interface))))))
1203 ;; ugh. A ligature bracket is totally different from
1204 ;; a tuplet bracket.
1206 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
1208 (edge-height . (0.7 . 0.7))
1210 (positions . ,ly:tuplet-bracket::calc-positions)
1211 (shorten-pair . (-0.2 . -0.2))
1212 (staff-padding . 0.25)
1213 (stencil . ,ly:tuplet-bracket::print)
1215 (X-positions . ,ly:tuplet-bracket::calc-x-positions)
1216 (meta . ((class . Spanner)
1217 (interfaces . (line-interface
1218 tuplet-bracket-interface))))))
1222 (minimum-length . 1.5)
1223 (stencil . ,ly:lyric-extender::print)
1224 (thickness . 0.8) ; line-thickness
1225 (Y-extent . (0 . 0))
1226 (meta . ((class . Spanner)
1227 (interfaces . (lyric-extender-interface
1228 lyric-interface))))))
1232 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
1233 (dash-period . 10.0)
1236 (minimum-distance . 0.1)
1237 (minimum-length . 0.3)
1239 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1240 (stencil . ,ly:lyric-hyphen::print)
1242 (Y-extent . (0 . 0))
1243 (meta . ((class . Spanner)
1244 (interfaces . (font-interface
1245 lyric-hyphen-interface
1247 spanner-interface))))))
1251 (minimum-distance . 0.45)
1253 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1256 (meta . ((class . Spanner)
1257 (interfaces . (lyric-hyphen-interface
1258 spanner-interface))))))
1262 (extra-spacing-width . (0.0 . 0.0))
1263 ;; Recede in height for purposes of note spacing,
1264 ;; so notes in melismata can be freely spaced above lyrics
1265 (extra-spacing-height . (0.2 . -0.2))
1266 (font-series . medium)
1268 (self-alignment-X . ,CENTER)
1269 (stencil . ,lyric-text::print)
1270 (text . ,(grob::calc-property-by-copy 'text))
1272 (X-offset . ,ly:self-alignment-interface::aligned-on-x-parent)
1273 (meta . ((class . Item)
1274 (interfaces . (font-interface
1275 lyric-syllable-interface
1276 rhythmic-grob-interface
1277 self-alignment-interface
1278 text-interface))))))
1288 (stencil . ,ly:measure-grouping::print)
1290 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1291 (meta . ((class . Spanner)
1292 (interfaces . (measure-grouping-interface
1293 side-position-interface))))))
1297 (neutral-direction . ,DOWN)
1298 (meta . ((class . Item)
1299 (interfaces . (melody-spanner-interface))))))
1303 (stencil . ,ly:mensural-ligature::print)
1305 (meta . ((class . Spanner)
1306 (interfaces . (font-interface
1307 mensural-ligature-interface))))))
1311 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1312 (break-visibility . ,end-of-line-invisible)
1314 (extra-spacing-width . (+inf.0 . -inf.0))
1315 (outside-staff-priority . 1000)
1318 (stencil . ,ly:text-interface::print)
1319 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1320 (X-offset . ,(ly:make-simple-closure
1322 ,(ly:make-simple-closure
1323 (list ly:break-alignable-interface::self-align-callback))
1324 ,(ly:make-simple-closure
1325 (list ly:self-alignment-interface::x-aligned-on-self)))))
1326 (self-alignment-X . ,LEFT)
1327 (break-align-symbols . (time-signature))
1328 (non-break-align-symbols . (multi-measure-rest-interface))
1329 (meta . ((class . Item)
1330 (interfaces . (break-alignable-interface
1332 metronome-mark-interface
1333 self-alignment-interface
1334 side-position-interface
1335 text-interface))))))
1340 (hair-thickness . 2.0)
1341 (round-up-exceptions . ())
1343 (spacing-pair . (break-alignment . break-alignment))
1344 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1345 (stencil . ,ly:multi-measure-rest::print)
1346 (thick-thickness . 6.6)
1347 ;; See Wanske pp. 125
1348 (usable-duration-logs . ,(iota 4 -3))
1349 (Y-offset . ,ly:staff-symbol-referencer::callback)
1350 (meta . ((class . Spanner)
1351 (interfaces . (font-interface
1352 multi-measure-interface
1353 multi-measure-rest-interface
1355 staff-symbol-referencer-interface))))))
1357 (MultiMeasureRestNumber
1359 (bound-padding . 2.0)
1361 (font-encoding . fetaText)
1363 (self-alignment-X . ,CENTER)
1365 (springs-and-rods . ,ly:multi-measure-rest::set-text-rods)
1366 (staff-padding . 0.4)
1367 (stencil . ,ly:text-interface::print)
1368 (X-offset . ,(ly:make-simple-closure
1370 ,(ly:make-simple-closure
1371 (list ly:self-alignment-interface::x-aligned-on-self))
1372 ,(ly:make-simple-closure
1373 (list ly:self-alignment-interface::x-centered-on-y-parent)))))
1374 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1375 (meta . ((class . Spanner)
1376 (interfaces . (font-interface
1377 multi-measure-interface
1378 self-alignment-interface
1379 side-position-interface
1380 text-interface))))))
1382 (MultiMeasureRestText
1385 (outside-staff-priority . 450)
1387 (self-alignment-X . ,CENTER)
1388 (staff-padding . 0.25)
1389 (stencil . ,ly:text-interface::print)
1390 (X-offset . ,(ly:make-simple-closure
1392 ,(ly:make-simple-closure
1393 (list ly:self-alignment-interface::x-centered-on-y-parent))
1394 ,(ly:make-simple-closure
1395 (list ly:self-alignment-interface::x-aligned-on-self)))))
1396 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1397 (meta . ((class . Spanner)
1398 (interfaces . (font-interface
1399 multi-measure-interface
1400 self-alignment-interface
1401 side-position-interface
1402 text-interface))))))
1405 (NonMusicalPaperColumn
1407 (allow-loose-spacing . #t)
1409 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1410 (full-measure-extra-space . 1.0)
1411 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1412 ;; sufficient padding to prevent ledger lines from moving over/under
1413 (skyline-vertical-padding . 0.6)
1414 ;; (stencil . ,ly:paper-column::print)
1416 (keep-inside-line . #t)
1417 (line-break-permission . allow)
1419 (page-break-permission . allow)
1421 ;; debugging stuff: print column number.
1422 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1424 (X-extent . ,ly:axis-group-interface::width)
1425 (meta . ((class . Paper_column)
1426 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1427 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1428 (interfaces . (axis-group-interface
1430 paper-column-interface
1431 separation-item-interface
1432 spaceable-grob-interface))))))
1437 (positioning-done . ,ly:note-collision-interface::calc-positioning-done)
1438 (prefer-dotted-right . #t)
1439 (X-extent . ,ly:axis-group-interface::width)
1440 (Y-extent . ,ly:axis-group-interface::height)
1441 (meta . ((class . Item)
1442 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1443 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1444 (interfaces . (axis-group-interface
1445 note-collision-interface))))))
1450 (bound-alignment-interfaces . (rhythmic-head-interface stem-interface))
1451 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1452 (skyline-vertical-padding . 0.15)
1453 (X-extent . ,ly:axis-group-interface::width)
1454 (Y-extent . ,ly:axis-group-interface::height)
1455 (meta . ((class . Item)
1456 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1457 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1458 (interfaces . (axis-group-interface
1459 note-column-interface
1460 separation-item-interface))))))
1465 (duration-log . ,note-head::calc-duration-log)
1466 (extra-spacing-height . ,ly:note-head::include-ledger-line-height)
1467 (glyph-name . ,note-head::calc-glyph-name)
1468 (ligature-flexa . #f)
1469 (stem-attachment . ,ly:note-head::calc-stem-attachment)
1470 (stencil . ,ly:note-head::print)
1471 (X-offset . ,ly:note-head::stem-x-shift)
1472 (Y-offset . ,ly:staff-symbol-referencer::callback)
1473 (meta . ((class . Item)
1474 (interfaces . (font-interface
1475 gregorian-ligature-interface
1477 ligature-head-interface
1478 mensural-ligature-interface
1480 rhythmic-grob-interface
1481 rhythmic-head-interface
1482 staff-symbol-referencer-interface
1483 vaticana-ligature-interface))))))
1487 (stencil . ,ly:text-interface::print)
1488 (meta . ((class . Item)
1489 (interfaces . (font-interface
1491 text-interface))))))
1495 ;; Changed this from 0.75.
1496 ;; If you ever change this back, please document! --hwn
1497 (knee-spacing-correction . 1.0)
1498 (same-direction-correction . 0.25)
1499 (space-to-barline . #t)
1500 (stem-spacing-correction . 0.5)
1501 (meta . ((class . Item)
1502 (interfaces . (note-spacing-interface
1503 spacing-interface))))))
1508 (break-visibility . ,inherit-x-parent-visibility)
1509 (font-shape . italic)
1511 (self-alignment-X . ,CENTER)
1512 (staff-padding . 0.2)
1513 (stencil . ,ly:text-interface::print)
1514 (X-offset . ,(ly:make-simple-closure
1516 ,(ly:make-simple-closure
1517 (list ly:self-alignment-interface::x-aligned-on-self))
1518 ,(ly:make-simple-closure
1519 (list ly:self-alignment-interface::centered-on-x-parent)))))
1520 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1521 (meta . ((class . Item)
1522 (interfaces . (font-interface
1523 self-alignment-interface
1524 side-position-interface
1525 text-interface))))))
1529 (dash-fraction . 0.3)
1531 (edge-height . (0 . 1.2))
1532 (font-shape . italic)
1533 (minimum-length . 1.0)
1534 (outside-staff-priority . 400)
1536 (shorten-pair . (0.0 . -0.6))
1537 (staff-padding . 1.0)
1538 (stencil . ,ly:ottava-bracket::print)
1539 (style . dashed-line)
1540 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1541 (meta . ((class . Spanner)
1542 (interfaces . (font-interface
1543 horizontal-bracket-interface
1545 ottava-bracket-interface
1546 side-position-interface
1547 text-interface))))))
1552 (allow-loose-spacing . #t)
1554 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1555 (bound-alignment-interfaces . (note-column-interface))
1556 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1557 (keep-inside-line . #t)
1558 ;; (stencil . ,ly:paper-column::print)
1559 (X-extent . ,ly:axis-group-interface::width)
1562 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1563 (meta . ((class . Paper_column)
1564 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1565 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1566 (interfaces . (axis-group-interface
1568 paper-column-interface
1569 separation-item-interface
1570 spaceable-grob-interface))))))
1576 (stencil . ,parentheses-item::print)
1577 (stencils . ,parentheses-item::calc-parenthesis-stencils)
1578 (meta . ((class . Item)
1579 (interfaces . (font-interface
1580 parentheses-interface))))))
1584 (dot-negative-kern . 0.75)
1585 (font-encoding . fetaMusic)
1587 (spacing-pair . (break-alignment . staff-bar))
1588 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1589 (stencil . ,ly:multi-measure-rest::percent)
1591 (meta . ((class . Spanner)
1592 (interfaces . (font-interface
1593 multi-measure-rest-interface
1594 percent-repeat-interface))))))
1596 (PercentRepeatCounter
1599 (font-encoding . fetaText)
1602 (self-alignment-X . ,CENTER)
1603 (staff-padding . 0.25)
1604 (stencil . ,ly:text-interface::print)
1605 (X-offset . ,(ly:make-simple-closure
1607 ,(ly:make-simple-closure
1608 (list ly:self-alignment-interface::x-centered-on-y-parent))
1609 ,(ly:make-simple-closure
1610 (list ly:self-alignment-interface::x-aligned-on-self)))))
1611 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1612 (meta . ((class . Spanner)
1613 (interfaces . (font-interface
1614 percent-repeat-interface
1615 self-alignment-interface
1616 side-position-interface
1617 text-interface))))))
1621 (control-points . ,ly:slur::calc-control-points)
1622 (cross-staff . ,ly:slur::calc-cross-staff)
1623 (details . ,default-slur-details)
1624 (direction . ,ly:slur::calc-direction)
1625 (height-limit . 2.0)
1626 (minimum-length . 1.5)
1629 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1630 (stencil . ,ly:slur::print)
1632 (Y-extent . ,ly:slur::height)
1633 (meta . ((class . Spanner)
1634 (interfaces . (slur-interface))))))
1636 ;; an example of a text spanner
1639 (bound-padding . 1.0)
1640 (bracket-flare . (0.5 . 0.5))
1642 (edge-height . (1.0 . 1.0))
1643 (shorten-pair . (0.0 . 0.0))
1644 (stencil . ,ly:piano-pedal-bracket::print)
1647 (meta . ((class . Spanner)
1648 (interfaces . (line-interface
1649 piano-pedal-bracket-interface
1650 piano-pedal-interface))))))
1655 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1657 (break-align-symbols . (staff-bar clef))
1658 (break-visibility . ,end-of-line-invisible)
1660 (extra-spacing-width . (+inf.0 . -inf.0))
1663 (outside-staff-priority . 1500)
1665 (self-alignment-X . ,CENTER)
1666 (stencil . ,ly:text-interface::print)
1667 (X-offset . ,(ly:make-simple-closure
1669 ,(ly:make-simple-closure
1670 (list ly:break-alignable-interface::self-align-callback))
1671 ,(ly:make-simple-closure
1672 (list ly:self-alignment-interface::x-aligned-on-self)))))
1673 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1674 (meta . ((class . Item)
1675 (interfaces . (break-alignable-interface
1678 self-alignment-interface
1679 side-position-interface
1680 text-interface))))))
1684 (slash-negative-kern . 0.85)
1686 (stencil . ,ly:percent-repeat-item-interface::beat-slash)
1688 (meta . ((class . Item)
1689 (interfaces . (percent-repeat-interface
1690 percent-repeat-item-interface
1691 rhythmic-grob-interface))))))
1695 (control-points . ,ly:semi-tie::calc-control-points)
1696 (details . ((ratio . 0.333)
1697 (height-limit . 1.0)))
1698 (direction . ,ly:tie::calc-direction)
1699 (head-direction . ,RIGHT)
1700 (stencil . ,ly:tie::print)
1702 (extra-spacing-height . (-0.5 . 0.5))
1703 (meta . ((class . Item)
1704 (interfaces . (semi-tie-interface))))))
1708 (direction . ,ly:tie::calc-direction)
1709 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1710 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1713 (meta . ((class . Item)
1714 (interfaces . (semi-tie-column-interface))))))
1718 (cross-staff . ,ly:rest::calc-cross-staff)
1719 (duration-log . ,stem::calc-duration-log)
1720 (minimum-distance . 0.25)
1721 (stencil . ,ly:rest::print)
1722 (X-extent . ,ly:rest::width)
1723 (Y-extent . ,ly:rest::height)
1724 (Y-offset . ,ly:rest::y-offset-callback)
1725 (meta . ((class . Item)
1726 (interfaces . (font-interface
1728 rhythmic-grob-interface
1729 rhythmic-head-interface
1730 staff-symbol-referencer-interface))))))
1734 (minimum-distance . 0.75)
1735 (positioning-done . ,ly:rest-collision::calc-positioning-done)
1736 (meta . ((class . Item)
1737 (interfaces . (rest-collision-interface))))))
1742 (add-stem-support . #t)
1743 (cross-staff . ,ly:script-interface::calc-cross-staff)
1744 (direction . ,ly:script-interface::calc-direction)
1745 (font-encoding . fetaMusic)
1746 (positioning-done . ,ly:script-interface::calc-positioning-done)
1749 ;; padding set in script definitions.
1750 (slur-padding . 0.2)
1751 (staff-padding . 0.25)
1753 (stencil . ,ly:script-interface::print)
1755 (X-offset . ,script-interface::calc-x-offset)
1756 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1757 (meta . ((class . Item)
1758 (interfaces . (font-interface
1760 side-position-interface))))))
1764 (before-line-breaking . ,ly:script-column::before-line-breaking)
1765 (meta . ((class . Item)
1766 (interfaces . (script-column-interface))))))
1770 (before-line-breaking . ,ly:script-column::row-before-line-breaking)
1771 (meta . ((class . Item)
1772 (interfaces . (script-column-interface))))))
1776 (avoid-slur . inside)
1777 (control-points . ,ly:slur::calc-control-points)
1778 (cross-staff . ,ly:slur::calc-cross-staff)
1779 (details . ,default-slur-details)
1780 (direction . ,ly:slur::calc-direction)
1781 (height-limit . 2.0)
1782 (line-thickness . 0.8)
1783 (minimum-length . 1.5)
1786 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1787 (stencil . ,ly:slur::print)
1789 (Y-extent . ,ly:slur::height)
1790 (meta . ((class . Spanner)
1791 (interfaces . (slur-interface))))))
1795 (direction . ,RIGHT)
1796 (extra-spacing-width . (+inf.0 . -inf.0))
1797 (font-shape . italic)
1798 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
1799 (self-alignment-X . ,CENTER)
1800 (stencil . ,ly:text-interface::print)
1801 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1802 (meta . ((class . Item)
1803 (interfaces . (font-interface
1804 piano-pedal-script-interface
1805 self-alignment-interface
1806 text-interface))))))
1808 (SostenutoPedalLineSpanner
1812 (minimum-space . 1.0)
1813 (outside-staff-priority . 1000)
1816 (staff-padding . 1.0)
1817 (X-extent . ,ly:axis-group-interface::width)
1818 (Y-extent . ,ly:axis-group-interface::height)
1819 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1820 (meta . ((class . Spanner)
1821 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1822 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1823 (interfaces . (axis-group-interface
1824 piano-pedal-interface
1825 side-position-interface))))))
1829 (average-spacing-wishes . #t)
1830 (base-shortest-duration . ,(ly:make-moment 3 16))
1831 (common-shortest-duration . ,ly:spacing-spanner::calc-common-shortest-duration)
1832 (shortest-duration-space . 2.0)
1833 (spacing-increment . 1.2)
1834 (springs-and-rods . ,ly:spacing-spanner::set-springs)
1835 (meta . ((class . Spanner)
1836 (interfaces . (spacing-options-interface
1837 spacing-spanner-interface))))))
1841 (allow-span-bar . #t)
1842 (bar-extent . ,ly:axis-group-interface::height)
1843 (before-line-breaking . ,ly:span-bar::before-line-breaking)
1844 (break-align-symbol . staff-bar)
1846 (glyph-name . ,ly:span-bar::calc-glyph-name)
1848 ;; ugh duplication! (these 4 properties were copied from Barline)
1850 ;; Ross. page 151 lists other values, we opt for a leaner look
1854 (hair-thickness . 1.6)
1855 (thick-thickness . 6.0)
1859 (stencil . ,ly:span-bar::print)
1860 (X-extent . ,ly:span-bar::width)
1861 (Y-extent . (+inf.0 . -inf.0))
1862 (meta . ((class . Item)
1863 (interfaces . (bar-line-interface
1865 span-bar-interface))))))
1869 (X-extent . ,grob::x-parent-width)
1870 (Y-extent . ,(ly:make-unpure-pure-container #f ly:axis-group-interface::pure-height))
1871 (meta . ((class . Item)
1872 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1873 (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
1874 (interfaces . (pure-from-neighbor-interface))))))
1878 (staff-staff-spacing . ((basic-distance . 9)
1879 (minimum-distance . 7)
1881 (stretchability . 5)))
1882 (staffgroup-staff-spacing . ((basic-distance . 10.5)
1883 (minimum-distance . 8)
1885 (stretchability . 9)))
1886 (meta . ((class . Spanner)
1887 (interfaces . (staff-grouper-interface))))))
1892 (stem-spacing-correction . 0.4)
1893 (meta . ((class . Item)
1894 (interfaces . (spacing-interface
1895 staff-spacing-interface))))))
1900 (ledger-line-thickness . (1.0 . 0.1))
1902 (stencil . ,ly:staff-symbol::print)
1903 (Y-extent . ,ly:staff-symbol::height)
1904 (meta . ((class . Spanner)
1905 (interfaces . (staff-symbol-interface))))))
1910 (font-series . bold)
1913 (stencil . ,ly:text-interface::print)
1914 (X-offset . ,ly:side-position-interface::x-aligned-side)
1915 (meta . ((class . Item)
1916 (interfaces . (font-interface
1917 side-position-interface
1918 stanza-number-interface
1919 text-interface))))))
1923 (beamlet-default-length . (1.1 . 1.1))
1924 (beamlet-max-length-proportion . (0.75 . 0.75))
1925 (cross-staff . ,ly:stem::calc-cross-staff)
1926 (default-direction . ,ly:stem::calc-default-direction)
1929 ;; 3.5 (or 3 measured from note head) is standard length
1930 ;; 32nd, 64th, 128th flagged stems should be longer
1931 (lengths . (3.5 3.5 3.5 4.25 5.0 6.0))
1933 ;; FIXME. 3.5 yields too long beams (according to Ross and
1934 ;; looking at Baerenreiter examples) for a number of common
1935 ;; boundary cases. Subtracting half a beam thickness fixes
1936 ;; this, but the bug may well be somewhere else.
1938 ;; FIXME this should come from 'lengths
1939 (beamed-lengths . (3.26 3.5 3.6))
1941 ;; The 'normal' minima
1942 (beamed-minimum-free-lengths . (1.83 1.5 1.25))
1943 ;(beamed-minimum-free-lengths . (2.0 1.83 1.25))
1945 ;; The 'extreme case' minima
1946 (beamed-extreme-minimum-free-lengths . (2.0 1.25))
1948 ;; Stems in unnatural (forced) direction should be shortened by
1949 ;; one staff space, according to [Roush & Gourlay].
1950 ;; Flagged stems we shorten only half a staff space.
1951 (stem-shorten . (1.0 0.5))
1955 ;; We use the normal minima as minimum for the ideal lengths,
1956 ;; and the extreme minima as abolute minimum length.
1958 (direction . ,ly:stem::calc-direction)
1959 (duration-log . ,stem::calc-duration-log)
1960 (length . ,stem::length)
1961 (neutral-direction . ,DOWN)
1962 (positioning-done . ,ly:stem::calc-positioning-done)
1963 (stem-info . ,ly:stem::calc-stem-info)
1964 (stem-begin-position . ,ly:stem::calc-stem-begin-position)
1965 (stencil . ,ly:stem::print)
1967 (X-extent . ,ly:stem::width)
1968 (X-offset . ,ly:stem::offset-callback)
1969 (Y-extent . ,ly:stem::height)
1970 (Y-offset . ,ly:staff-symbol-referencer::callback)
1971 (meta . ((class . Item)
1972 (interfaces . (stem-interface))))))
1976 (beam-thickness . 0.48) ; staff-space
1977 (beam-width . ,ly:stem-tremolo::calc-width) ; staff-space
1978 (slope . ,ly:stem-tremolo::calc-slope)
1979 (stencil . ,ly:stem-tremolo::print)
1980 (style . ,ly:stem-tremolo::calc-style)
1981 (X-extent . ,ly:stem-tremolo::width)
1982 (Y-offset . ,ly:stem-tremolo::calc-y-offset)
1983 (meta . ((class . Item)
1984 (interfaces . (stem-tremolo-interface))))))
1988 (avoid-slur . around)
1989 (cross-staff . ,script-or-side-position-cross-staff)
1990 (font-encoding . fetaText)
1991 (font-size . -5) ; don't overlap when next to heads.
1993 (script-priority . 100)
1994 (self-alignment-X . ,CENTER)
1995 (self-alignment-Y . ,CENTER)
1996 (staff-padding . 0.5)
1997 (stencil . ,print-circled-text-callback)
1998 (text . ,string-number::calc-text)
1999 (meta . ((class . Item)
2000 (interfaces . (font-interface
2001 self-alignment-interface
2002 side-position-interface
2003 string-number-interface
2005 text-script-interface))))))
2009 (digit-names . #("p" "i" "m" "a" "x"))
2010 (font-shape . italic)
2011 (font-size . -4) ; don't overlap when next to heads.
2013 (script-priority . 100)
2014 (self-alignment-X . ,CENTER)
2015 (self-alignment-Y . ,CENTER)
2016 (staff-padding . 0.5)
2017 (stencil . ,ly:text-interface::print)
2018 (text . ,stroke-finger::calc-text)
2019 (meta . ((class . Item)
2020 (interfaces . (font-interface
2021 self-alignment-interface
2022 side-position-interface
2023 stroke-finger-interface
2025 text-script-interface))))))
2029 (direction . ,RIGHT)
2030 (extra-spacing-width . (+inf.0 . -inf.0))
2031 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
2032 (self-alignment-X . ,CENTER)
2033 (stencil . ,ly:sustain-pedal::print)
2034 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2035 (meta . ((class . Item)
2036 (interfaces . (font-interface
2037 piano-pedal-interface
2038 piano-pedal-script-interface
2039 self-alignment-interface
2040 text-interface))))))
2042 (SustainPedalLineSpanner
2046 (minimum-space . 1.0)
2047 (outside-staff-priority . 1000)
2050 (staff-padding . 1.2)
2051 (X-extent . ,ly:axis-group-interface::width)
2052 (Y-extent . ,ly:axis-group-interface::height)
2053 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2054 (meta . ((class . Spanner)
2055 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2056 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2057 (interfaces . (axis-group-interface
2058 piano-pedal-interface
2059 side-position-interface))))))
2063 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2065 (skyline-horizontal-padding . 0.5)
2066 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
2067 (X-extent . ,ly:axis-group-interface::width)
2068 (Y-extent . ,ly:system::height)
2069 (meta . ((class . System)
2070 (object-callbacks . ((footnotes-before-line-breaking . ,ly:system::footnotes-before-line-breaking)
2071 (footnotes-after-line-breaking . ,ly:system::footnotes-after-line-breaking)
2072 (pure-relevant-grobs . ,ly:system::calc-pure-relevant-grobs)
2073 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)))
2074 (interfaces . (axis-group-interface
2075 system-interface))))))
2079 (collapse-height . 5.0)
2083 (padding . -0.1) ;; bar must cover rounded ending of staff line.
2084 (stencil . ,ly:system-start-delimiter::print)
2087 (X-offset . ,ly:side-position-interface::x-aligned-side)
2089 (meta . ((class . Spanner)
2090 (interfaces . (side-position-interface
2091 system-start-delimiter-interface))))))
2095 (collapse-height . 5.0)
2097 (font-encoding . fetaBraces)
2099 (stencil . ,ly:system-start-delimiter::print)
2101 (X-offset . ,ly:side-position-interface::x-aligned-side)
2103 (meta . ((class . Spanner)
2104 (interfaces . (font-interface
2105 side-position-interface
2106 system-start-delimiter-interface))))))
2110 (collapse-height . 5.0)
2113 (stencil . ,ly:system-start-delimiter::print)
2116 (X-offset . ,ly:side-position-interface::x-aligned-side)
2118 (meta . ((class . Spanner)
2119 (interfaces . (font-interface
2120 side-position-interface
2121 system-start-delimiter-interface))))))
2126 (stencil . ,ly:system-start-delimiter::print)
2127 (style . line-bracket)
2129 (X-offset . ,ly:side-position-interface::x-aligned-side)
2131 (meta . ((class . Spanner)
2132 (interfaces . (font-interface
2133 side-position-interface
2134 system-start-delimiter-interface))))))
2139 (details . ((cautionary-properties . ((angularity . 0.4)
2140 (half-thickness . 0.075)
2142 (procedure . ,parenthesize-stencil)
2145 (harmonic-properties . ((angularity . 2)
2146 (half-thickness . 0.075)
2148 (procedure . ,parenthesize-stencil)
2150 (repeat-tied-properties . ((note-head-visible . #t)
2151 (parenthesize . #t)))
2152 (tied-properties . ((break-visibility . ,begin-of-line-visible)
2153 (parenthesize . #t)))))
2155 (direction . ,CENTER)
2156 (duration-log . ,note-head::calc-duration-log)
2157 (font-series . bold)
2159 (stem-attachment . (0.0 . 1.35))
2160 (stencil . ,tab-note-head::print)
2162 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2163 (Y-offset . ,ly:staff-symbol-referencer::callback)
2164 (meta . ((class . Item)
2165 (interfaces . (font-interface
2167 rhythmic-grob-interface
2168 rhythmic-head-interface
2169 staff-symbol-referencer-interface
2170 tab-note-head-interface
2171 text-interface))))))
2175 (avoid-slur . around)
2176 (cross-staff . ,script-or-side-position-cross-staff)
2178 (extra-spacing-width . (+inf.0 . -inf.0))
2179 (outside-staff-priority . 450)
2181 ;; sync with Fingering ?
2184 (script-priority . 200)
2186 (slur-padding . 0.5)
2187 (staff-padding . 0.5)
2188 (stencil . ,ly:text-interface::print)
2189 ;; todo: add X self alignment?
2190 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2191 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2192 (meta . ((class . Item)
2193 (interfaces . (font-interface
2194 instrument-specific-markup-interface
2195 self-alignment-interface
2196 side-position-interface
2198 text-script-interface))))))
2202 (bound-details . ((left . ((Y . 0)
2204 (attach-dir . ,LEFT)
2206 (left-broken . ((end-on-note . #t)))
2211 (dash-fraction . 0.2)
2214 (font-shape . italic)
2215 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2216 (outside-staff-priority . 350)
2217 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2219 (staff-padding . 0.8)
2220 (stencil . ,ly:line-spanner::print)
2221 (style . dashed-line)
2222 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2224 (meta . ((class . Spanner)
2225 (interfaces . (font-interface
2227 line-spanner-interface
2228 side-position-interface))))))
2232 (avoid-slur . inside)
2233 (control-points . ,ly:tie::calc-control-points)
2235 ;; for a full list, see tie-details.cc
2237 (center-staff-line-clearance . 0.6)
2238 (tip-staff-line-clearance . 0.45)
2239 (note-head-gap . 0.2)
2241 (height-limit . 1.0)
2242 (horizontal-distance-penalty-factor . 10)
2243 (same-dir-as-stem-penalty . 8)
2244 (min-length-penalty-factor . 26)
2245 (tie-tie-collision-distance . 0.45)
2246 (tie-tie-collision-penalty . 25.0)
2247 (intra-space-threshold . 1.25)
2248 (outer-tie-vertical-distance-symmetry-penalty-factor . 10)
2249 (outer-tie-length-symmetry-penalty-factor . 10)
2250 (vertical-distance-penalty-factor . 7)
2251 (outer-tie-vertical-gap . 0.25)
2252 (multi-tie-region-size . 3)
2253 (single-tie-region-size . 4)
2254 (between-length-limit . 1.0)))
2256 (direction . ,ly:tie::calc-direction)
2258 (line-thickness . 0.8)
2259 (neutral-direction . ,UP)
2260 (springs-and-rods . ,ly:spanner::set-spacing-rods)
2261 (stencil . ,ly:tie::print)
2263 (meta . ((class . Spanner)
2264 (interfaces . (tie-interface))))))
2268 (before-line-breaking . ,ly:tie-column::before-line-breaking)
2269 (positioning-done . ,ly:tie-column::calc-positioning-done)
2272 (meta . ((class . Spanner)
2273 (interfaces . (tie-column-interface))))))
2277 (avoid-slur . inside)
2279 . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
2280 (break-align-symbol . time-signature)
2281 (break-align-anchor-alignment . ,LEFT)
2282 (break-visibility . ,all-visible)
2283 ;(extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height-including-staff)
2284 (extra-spacing-height . (-1.0 . 1.0))
2285 (extra-spacing-width . (0.0 . 0.8))
2288 (cue-clef . (extra-space . 1.5))
2289 (first-note . (fixed-space . 2.0))
2290 (right-edge . (extra-space . 0.5))
2291 (staff-bar . (minimum-space . 2.0))))
2292 (stencil . ,ly:time-signature::print)
2294 (meta . ((class . Item)
2295 ;(object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2296 ; (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
2297 (interfaces . (break-aligned-interface
2299 ;pure-from-neighbor-interface
2300 time-signature-interface))))))
2302 (TrillPitchAccidental
2306 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
2309 (stencil . ,ly:accidental-interface::print)
2310 (X-offset . ,ly:side-position-interface::x-aligned-side)
2311 (Y-extent . ,ly:accidental-interface::height)
2312 (meta . ((class . Item)
2313 (interfaces . (accidental-interface
2315 inline-accidental-interface
2316 side-position-interface
2317 trill-pitch-accidental-interface))))))
2322 (direction . ,RIGHT)
2326 (stencil . ,parenthesize-elements)
2327 (stencils . ,parentheses-item::calc-parenthesis-stencils)
2328 (X-offset . ,ly:side-position-interface::x-aligned-side)
2329 (meta . ((class . Item)
2330 (interfaces . (axis-group-interface
2333 parentheses-interface
2334 side-position-interface))))))
2340 (stencil . ,ly:note-head::print)
2341 (Y-offset . ,ly:staff-symbol-referencer::callback)
2342 (meta . ((class . Item)
2343 (interfaces . (font-interface
2345 pitched-trill-interface
2346 rhythmic-head-interface
2347 staff-symbol-referencer-interface))))))
2351 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2352 (bound-details . ((left . ((text . ,(make-musicglyph-markup "scripts.trill"))
2354 (stencil-offset . (-0.5 . -1))
2356 (attach-dir . ,CENTER)
2358 (left-broken . ((end-on-note . #t)))
2362 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2363 (outside-staff-priority . 50)
2365 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2367 (staff-padding . 1.0)
2368 (stencil . ,ly:line-spanner::print)
2370 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2371 (meta . ((class . Spanner)
2372 (interfaces . (font-interface
2374 line-spanner-interface
2375 side-position-interface
2376 trill-spanner-interface))))))
2380 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
2381 (cross-staff . ,ly:tuplet-bracket::calc-cross-staff)
2382 (direction . ,ly:tuplet-bracket::calc-direction)
2383 (edge-height . (0.7 . 0.7))
2384 (full-length-to-extent . #t)
2386 (positions . ,ly:tuplet-bracket::calc-positions)
2387 (shorten-pair . (-0.2 . -0.2))
2388 (staff-padding . 0.25)
2389 (stencil . ,ly:tuplet-bracket::print)
2391 (X-positions . ,ly:tuplet-bracket::calc-x-positions)
2393 (meta . ((class . Spanner)
2394 (interfaces . (line-interface
2395 tuplet-bracket-interface))))))
2399 (avoid-slur . inside)
2400 (cross-staff . ,ly:tuplet-number::calc-cross-staff)
2401 (direction . ,tuplet-number::calc-direction)
2402 (font-shape . italic)
2404 (stencil . ,ly:tuplet-number::print)
2405 (text . ,tuplet-number::calc-denominator-text)
2406 (X-offset . ,ly:tuplet-number::calc-x-offset)
2407 (Y-offset . ,ly:tuplet-number::calc-y-offset)
2408 (meta . ((class . Spanner)
2409 (interfaces . (font-interface
2411 tuplet-number-interface))))))
2416 (direction . ,RIGHT)
2417 (extra-spacing-width . (+inf.0 . -inf.0))
2418 (font-shape . italic)
2419 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
2420 (self-alignment-X . ,CENTER)
2421 (stencil . ,ly:text-interface::print)
2422 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2423 (meta . ((class . Item)
2424 (interfaces . (font-interface
2425 piano-pedal-script-interface
2426 self-alignment-interface
2427 text-interface))))))
2429 (UnaCordaPedalLineSpanner
2433 (minimum-space . 1.0)
2434 (outside-staff-priority . 1000)
2437 (staff-padding . 1.2)
2438 (X-extent . ,ly:axis-group-interface::width)
2439 (Y-extent . ,ly:axis-group-interface::height)
2440 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2441 (meta . ((class . Spanner)
2442 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2443 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2444 (interfaces . (axis-group-interface
2445 piano-pedal-interface
2446 side-position-interface))))))
2452 (stencil . ,ly:vaticana-ligature::print)
2454 (meta . ((class . Spanner)
2455 (interfaces . (font-interface
2456 vaticana-ligature-interface))))))
2461 (positioning-done . ,ly:align-interface::align-to-ideal-distances)
2463 (vertical-skylines . ,ly:axis-group-interface::combine-skylines)
2464 (X-extent . ,ly:axis-group-interface::width)
2465 (Y-extent . ,ly:axis-group-interface::height)
2466 (meta . ((class . Spanner)
2467 (object-callbacks . ((full-score-pure-minimum-translations . ,ly:align-interface::full-score-pure-minimum-translations)
2468 (Y-common . ,ly:axis-group-interface::calc-y-common)
2469 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)
2470 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)))
2471 (interfaces . (align-interface
2472 axis-group-interface))))))
2476 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2478 (default-staff-staff-spacing . ((basic-distance . 9)
2479 (minimum-distance . 8)
2481 (nonstaff-unrelatedstaff-spacing . ((padding . 0.5)))
2482 (staff-staff-spacing . ,ly:axis-group-interface::calc-staff-staff-spacing)
2483 (stencil . ,ly:axis-group-interface::print)
2484 (vertical-skylines . ,ly:hara-kiri-group-spanner::calc-skylines)
2485 (X-extent . ,ly:axis-group-interface::width)
2486 (Y-extent . ,ly:hara-kiri-group-spanner::y-extent)
2487 (Y-offset . ,ly:hara-kiri-group-spanner::force-hara-kiri-callback)
2488 (meta . ((class . Spanner)
2489 (object-callbacks . (
2490 (X-common . ,ly:axis-group-interface::calc-x-common)
2491 (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2492 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2494 (interfaces . (axis-group-interface
2495 hara-kiri-group-spanner-interface))))))
2499 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2500 (bound-details . ((right . ((attach-dir . ,CENTER)
2503 (left . ((attach-dir . ,CENTER)
2508 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2510 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2511 (stencil . ,ly:line-spanner::print)
2515 (meta . ((class . Spanner)
2516 (interfaces . (line-interface
2517 line-spanner-interface))))))
2522 (edge-height . (2.0 . 2.0)) ;; staff-space;
2523 (font-encoding . fetaText)
2525 (stencil . ,ly:volta-bracket-interface::print)
2526 (thickness . 1.6) ;; line-thickness
2528 (meta . ((class . Spanner)
2529 (interfaces . (font-interface
2530 horizontal-bracket-interface
2532 side-position-interface
2534 volta-bracket-interface
2535 volta-interface))))))
2537 (VoltaBracketSpanner
2539 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
2543 (outside-staff-priority . 600)
2546 (X-extent . ,ly:axis-group-interface::width)
2547 (Y-extent . ,ly:axis-group-interface::height)
2548 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2549 (meta . ((class . Spanner)
2550 (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2551 (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2552 (interfaces . (axis-group-interface
2553 side-position-interface
2554 volta-interface))))))
2558 (define (completize-grob-entry x)
2559 "Transplant assoc key into 'name entry of 'meta of X. Set interfaces for Item, Spanner etc.
2561 ;; (display (car x))
2563 (let* ((name-sym (car x))
2564 (grob-entry (cdr x))
2565 (meta-entry (assoc-get 'meta grob-entry))
2566 (class (assoc-get 'class meta-entry))
2568 (assoc-get 'interfaces meta-entry)))
2572 (set! ifaces-entry (cons 'item-interface ifaces-entry)))
2573 ((eq? 'Spanner class)
2574 (set! ifaces-entry (cons 'spanner-interface ifaces-entry)))
2575 ((eq? 'Paper_column class)
2576 (set! ifaces-entry (cons 'item-interface
2577 (cons 'paper-column-interface ifaces-entry))))
2578 ((eq? 'System class)
2579 (set! ifaces-entry (cons 'system-interface
2580 (cons 'spanner-interface ifaces-entry))))
2582 (ly:warning "Unknown class ~a" class)))
2584 (set! ifaces-entry (uniq-list (sort ifaces-entry symbol<?)))
2585 (set! ifaces-entry (cons 'grob-interface ifaces-entry))
2587 (set! meta-entry (assoc-set! meta-entry 'name name-sym))
2588 (set! meta-entry (assoc-set! meta-entry 'interfaces
2590 (set! grob-entry (assoc-set! grob-entry 'meta meta-entry))
2591 (cons name-sym grob-entry)))
2593 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
2595 ;; (display (map pair? all-grob-descriptions))
2597 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
2600 ;; (display (car x)) (newline)
2602 (set-object-property! (car x) 'translation-type? list?)
2603 (set-object-property! (car x) 'is-grob? #t))
2604 all-grob-descriptions)
2606 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))
2608 (define (volta-bracket-interface::pure-height grob start end)
2609 (let ((edge-height (ly:grob-property grob 'edge-height)))
2610 (if (number-pair? edge-height)
2611 (let ((smaller (min (car edge-height) (cdr edge-height)))
2612 (larger (max (car edge-height) (cdr edge-height))))
2613 (interval-union '(0 . 0) (cons smaller larger)))
2616 (define pure-print-callbacks
2618 fret-board::calc-stencil
2619 note-head::brew-ez-stencil
2620 print-circled-text-callback
2621 laissez-vibrer::print
2624 ly:mensural-ligature::brew-ligature-primitive
2633 modern-straight-flag
2635 ly:key-signature-interface::print
2636 ly:percent-repeat-item-interface::beat-slash
2637 ly:text-interface::print
2638 ly:script-interface::print
2639 ly:sustain-pedal::print))
2641 ;; Sometimes we have grobs with (Y-extent . ,ly:grob::stencil-height)
2642 ;; and the print function is not pure, but there is a easy way to
2643 ;; figure out the Y-extent from the print function.
2644 (define pure-print-to-height-conversions
2646 (,ly:arpeggio::print . ,ly:arpeggio::pure-height)
2647 (,ly:arpeggio::brew-chord-bracket . ,ly:arpeggio::pure-height)
2648 (,ly:arpeggio::brew-chord-slur . ,ly:arpeggio::pure-height)
2649 (,ly:hairpin::print . ,ly:hairpin::pure-height)
2650 (,ly:stem-tremolo::print . ,ly:stem-tremolo::pure-height)
2651 (,ly:volta-bracket-interface::print . ,volta-bracket-interface::pure-height)))
2653 ;; ly:grob::stencil-extent is safe if the print callback is safe too
2654 (define (pure-stencil-height grob start stop)
2655 (let* ((sten (ly:grob-property-data grob 'stencil))
2656 (pure-height-callback (assoc-get sten pure-print-to-height-conversions)))
2659 (memq sten pure-print-callbacks))
2660 (ly:grob::stencil-height grob))
2661 ((procedure? pure-height-callback)
2662 (pure-height-callback grob start stop))
2666 ;; Sometimes, a pure callback will be chained to a non-pure callback via
2667 ;; chain_offset_callback, in which case this provides a default by simply
2668 ;; passing through the value from the pure callback.
2669 (define (pure-chain-offset-callback grob start end prev-offset) prev-offset)
2671 (define pure-conversions-alist
2673 (,ly:accidental-interface::height . ,ly:accidental-interface::pure-height)
2674 (,ly:axis-group-interface::calc-staff-staff-spacing . ,ly:axis-group-interface::calc-pure-staff-staff-spacing)
2675 (,ly:axis-group-interface::height . ,ly:axis-group-interface::pure-height)
2676 (,ly:beam::rest-collision-callback . ,ly:beam::pure-rest-collision-callback)
2677 (,ly:grob::stencil-height . ,pure-stencil-height)
2678 (,ly:hara-kiri-group-spanner::y-extent . ,ly:hara-kiri-group-spanner::pure-height)
2679 (,ly:rest-collision::force-shift-callback-rest . ,pure-chain-offset-callback)
2680 (,ly:rest::height . ,ly:rest::pure-height)
2681 (,ly:self-alignment-interface::y-aligned-on-self . ,ly:self-alignment-interface::pure-y-aligned-on-self)
2682 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)
2683 (,ly:slur::height . ,ly:slur::pure-height)
2684 (,ly:slur::outside-slur-callback . ,ly:slur::pure-outside-slur-callback)
2685 (,ly:stem::calc-stem-begin-position . ,ly:stem::pure-calc-stem-begin-position)
2686 (,ly:stem::calc-stem-end-position . ,ly:stem::pure-calc-stem-end-position)
2687 (,stem::length . ,stem::pure-length)
2688 (,ly:stem::height . ,ly:stem::pure-height)
2689 (,ly:stem-tremolo::calc-y-offset . ,ly:stem-tremolo::pure-calc-y-offset)
2690 (,ly:system::height . ,ly:system::calc-pure-height)))
2692 (define pure-functions
2694 parenthesize-elements
2695 laissez-vibrer::print
2696 ly:flag::calc-y-offset
2697 ly:rest::y-offset-callback
2698 ly:staff-symbol-referencer::callback
2699 ly:staff-symbol::height))
2701 (define-public (pure-relevant? grob)
2702 (let ((extent-callback (ly:grob-property-data grob 'Y-extent)))
2705 (ly:unpure-pure-container? extent-callback)
2706 (pair? extent-callback)
2707 (memq extent-callback pure-functions)
2709 (pair? (assq extent-callback pure-conversions-alist))
2710 (let ((stencil (ly:grob-property-data grob 'stencil)))
2712 (not (eq? extent-callback ly:grob::stencil-height))
2713 (memq stencil pure-print-callbacks)
2714 (assq stencil pure-print-to-height-conversions)
2715 (ly:stencil? stencil)))))))))
2717 ;; hideous code dup below - to be cleaned up when call pure functino
2718 ;; is eliminated and lilypond works entirely from unpure-pure-containers
2720 (define-public (call-pure-function unpure args start end)
2721 (if (ly:unpure-pure-container? unpure)
2722 (let ((unpure (ly:unpure-pure-container-pure-part unpure)))
2723 (if (ly:simple-closure? unpure)
2724 (ly:eval-simple-closure (car args) unpure start end)
2725 (if (not (procedure? unpure))
2729 (list (car args) start end)
2731 (if (ly:simple-closure? unpure)
2732 (ly:eval-simple-closure (car args) unpure start end)
2733 (if (not (procedure? unpure))
2735 (if (memq unpure pure-functions)
2737 (let ((pure (assq unpure pure-conversions-alist)))
2741 (list (car args) start end)