1 ;;;; This file is part of LilyPond, the GNU music typesetter.
3 ;;;; Copyright (C) 1998--2010 Han-Wen Nienhuys <hanwen@xs4all.nl>
4 ;;;; Jan Nieuwenhuizen <janneke@gnu.org>
6 ;;;; LilyPond is free software: you can redistribute it and/or modify
7 ;;;; it under the terms of the GNU General Public License as published by
8 ;;;; the Free Software Foundation, either version 3 of the License, or
9 ;;;; (at your option) any later version.
11 ;;;; LilyPond is distributed in the hope that it will be useful,
12 ;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;;;; GNU General Public License for more details.
16 ;;;; You should have received a copy of the GNU General Public License
17 ;;;; along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
19 ;;;; distances are given in line-thickness (thicknesses) and
20 ;;;; staff-space (distances)
22 ;;;; WARNING: the meta field should be the last one.
23 ;;;; WARNING: don't use anonymous functions for initialization.
25 ;; TODO: junk the meta field in favor of something more compact?
27 (define-public all-grob-descriptions
31 (alteration . ,accidental-interface::calc-alteration)
33 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
34 (stencil . ,ly:accidental-interface::print)
35 (X-extent . ,ly:accidental-interface::width)
36 (Y-extent . ,ly:accidental-interface::height)
37 (meta . ((class . Item)
38 (interfaces . (accidental-interface
43 (alteration . ,accidental-interface::calc-alteration)
45 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
47 (stencil . ,ly:accidental-interface::print)
48 (Y-extent . ,ly:accidental-interface::height)
49 (meta . ((class . Item)
50 (interfaces . (accidental-interface
57 (positioning-done . ,ly:accidental-placement::calc-positioning-done)
59 ;; this is quite small, but it is very ugly to have
60 ;; accs closer to the previous note than to the next one.
61 (right-padding . 0.15)
63 ;; for horizontally stacked scripts.
64 (script-priority . -100)
66 (X-extent . ,ly:axis-group-interface::width)
67 (meta . ((class . Item)
68 (interfaces . (accidental-placement-interface))))))
72 (alteration . ,accidental-interface::calc-alteration)
75 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
76 (outside-staff-priority . 0)
78 (self-alignment-X . ,CENTER)
80 (staff-padding . 0.25)
81 (stencil . ,ly:accidental-interface::print)
82 (X-extent . ,ly:accidental-interface::width)
83 (X-offset . ,(ly:make-simple-closure
85 ,(ly:make-simple-closure
86 (list ly:self-alignment-interface::centered-on-x-parent))
87 ,(ly:make-simple-closure
88 (list ly:self-alignment-interface::x-aligned-on-self)))))
89 (Y-extent . ,ly:accidental-interface::height)
90 (Y-offset . ,ly:side-position-interface::y-aligned-side)
91 (meta . ((class . Item)
92 (interfaces . (accidental-interface
93 accidental-suggestion-interface
96 self-alignment-interface
97 side-position-interface))))))
102 (break-align-symbol . ambitus)
103 (break-visibility . ,begin-of-line-visible)
106 (clef . (extra-space . 0.5))
107 (key-signature . (extra-space . 0.0))
108 (staff-bar . (extra-space . 0.0))
109 (time-signature . (extra-space . 0.0))
110 (first-note . (fixed-space . 0.0))))
111 (X-extent . ,ly:axis-group-interface::width)
112 (Y-extent . ,ly:axis-group-interface::height)
113 (meta . ((class . Item)
114 (interfaces . (ambitus-interface
116 break-aligned-interface))))))
121 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
124 (stencil . ,ly:accidental-interface::print)
125 (X-offset . ,ly:side-position-interface::x-aligned-side)
126 (Y-extent . ,ly:accidental-interface::height)
127 (meta . ((class . Item)
128 (interfaces . (accidental-interface
129 break-aligned-interface
131 side-position-interface))))))
136 (stencil . ,ambitus::print)
138 (X-offset . ,ly:self-alignment-interface::centered-on-x-parent)
139 (meta . ((class . Item)
140 (interfaces . (ambitus-interface
146 (glyph-name . ,note-head::calc-glyph-name)
147 (stencil . ,ly:note-head::print)
148 (Y-offset . ,ly:staff-symbol-referencer::callback)
149 (meta . ((class . Item)
150 (interfaces . (ambitus-interface
154 rhythmic-head-interface
155 staff-symbol-referencer-interface))))))
161 (positions . ,ly:arpeggio::calc-positions)
162 (script-priority . 0)
164 (staff-position . 0.0)
165 (stencil . ,ly:arpeggio::print)
166 (X-extent . ,ly:arpeggio::width)
167 (X-offset . ,ly:side-position-interface::x-aligned-side)
168 (Y-offset . ,ly:staff-symbol-referencer::callback)
169 (meta . ((class . Item)
170 (interfaces . (arpeggio-interface
172 side-position-interface
173 staff-symbol-referencer-interface))))))
177 (stencil . ,ly:balloon-interface::print)
178 (text . ,(grob::calc-property-by-copy 'text))
179 (X-offset . ,(grob::calc-property-by-copy 'X-offset))
180 (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
181 (meta . ((class . Item)
182 (interfaces . (balloon-interface
188 (allow-span-bar . #t)
189 (bar-extent . ,ly:bar-line::calc-bar-extent)
190 (bar-size . ,ly:bar-line::calc-bar-size)
191 (break-align-anchor . ,ly:bar-line::calc-anchor)
192 (break-align-symbol . staff-bar)
193 (break-visibility . ,bar-line::calc-break-visibility)
196 (glyph-name . ,bar-line::calc-glyph-name)
199 ;; Ross. page 151 lists other values, we opt for a leaner look
202 ;; kern should scale with line-thickness too.
205 (hair-thickness . 1.9)
206 (thick-thickness . 6.0)
211 (time-signature . (extra-space . 0.75))
212 (custos . (minimum-space . 2.0))
213 (clef . (minimum-space . 1.0))
214 (key-signature . (extra-space . 1.0))
215 (key-cancellation . (extra-space . 1.0))
216 (first-note . (fixed-space . 1.3))
217 (next-note . (semi-fixed-space . 0.9))
218 (right-edge . (extra-space . 0.0))))
219 (stencil . ,ly:bar-line::print)
220 (meta . ((class . Item)
221 (interfaces . (bar-line-interface
222 break-aligned-interface
227 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
228 ;; want the bar number before the clef at line start.
229 (break-align-symbols . (left-edge staff-bar))
231 (break-visibility . ,begin-of-line-visible)
233 (font-family . roman)
236 (outside-staff-priority . 100)
238 (self-alignment-X . ,RIGHT)
240 (stencil . ,ly:text-interface::print)
241 (X-offset . ,(ly:make-simple-closure
243 ,(ly:make-simple-closure
244 (list ly:break-alignable-interface::self-align-callback))
245 ,(ly:make-simple-closure
246 (list ly:self-alignment-interface::x-aligned-on-self)))))
247 (Y-offset . ,ly:side-position-interface::y-aligned-side)
250 (interfaces . (break-alignable-interface
252 self-alignment-interface
253 side-position-interface
258 (stencil . ,ly:text-interface::print)
259 (meta . ((class . Item)
260 (interfaces . (bass-figure-interface
262 rhythmic-grob-interface
269 (positioning-done . ,ly:align-interface::align-to-minimum-distances)
270 (stacking-dir . ,DOWN)
271 (Y-extent . ,ly:axis-group-interface::height)
272 (meta . ((class . Spanner)
273 (interfaces . (align-interface
275 bass-figure-alignment-interface))))))
277 (BassFigureAlignmentPositioning
283 (staff-padding . 1.0)
284 (Y-extent . ,ly:axis-group-interface::height)
285 (Y-offset . ,ly:side-position-interface::y-aligned-side)
286 (meta . ((class . Spanner)
287 (interfaces . (axis-group-interface
288 side-position-interface))))))
292 (edge-height . (0.2 . 0.2))
293 (stencil . ,ly:enclosing-bracket::print)
294 (X-extent . ,ly:enclosing-bracket::width)
295 (meta . ((class . Item)
296 (interfaces . (enclosing-bracket-interface))))))
298 (BassFigureContinuation
300 (stencil . ,ly:figured-bass-continuation::print)
301 (Y-offset . ,ly:figured-bass-continuation::center-on-figures)
302 (meta . ((class . Spanner)
303 (interfaces . (figured-bass-continuation-interface))))))
307 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
309 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
310 (Y-extent . ,ly:axis-group-interface::height)
311 (meta . ((class . Spanner)
312 (interfaces . (axis-group-interface))))))
317 ;; todo: clean this up a bit: the list is getting
320 (auto-knee-gap . 5.5)
321 (beam-thickness . 0.48) ; in staff-space
323 ;; We have some unreferenced problems here.
325 ;; If we shorten beamed stems less than normal stems (1 staff-space),
326 ;; or high order less than 8th beams, patterns like
327 ;; c''4 [c''8 c''] c''4 [c''16 c]
328 ;; are ugly (different stem lengths).
330 ;; But if we shorten 16th beams as much as 8th beams, a single
331 ;; forced 16th beam looks *very* short.
333 ;; We choose to shorten 8th beams the same as single stems,
334 ;; and high order beams less than 8th beams, so that all
335 ;; isolated shortened beams look nice and a bit shortened,
336 ;; sadly possibly breaking patterns with high order beams.
337 (beamed-stem-shorten . (1.0 0.5 0.25))
339 (beaming . ,ly:beam::calc-beaming)
341 (concaveness . ,ly:beam::calc-concaveness)
342 (cross-staff . ,ly:beam::calc-cross-staff)
346 (secondary-beam-demerit . 10)
347 (stem-length-demerit-factor . 5)
350 (stem-length-limit-penalty . 5000)
351 (damping-direction-penalty . 800)
352 (hint-direction-penalty . 20)
353 (musical-direction-factor . 400)
354 (ideal-slope-factor . 10)
355 (round-to-zero-slope . 0.02)))
356 (direction . ,ly:beam::calc-direction)
358 ;; only for debugging.
359 (font-family . roman)
362 (neutral-direction . ,DOWN)
363 (positions . ,(ly:make-simple-closure
364 (ly:make-simple-closure
365 (list chain-grob-member-functions
367 ly:beam::calc-least-squares-positions
368 ly:beam::slope-damping
369 ly:beam::shift-region-to-valid
373 ;; this is a hack to set stem lengths, if positions is set.
374 (quantized-positions . ,ly:beam::set-stem-lengths)
376 (shorten . ,ly:beam::calc-stem-shorten)
377 (stencil . ,ly:beam::print)
379 (meta . ((class . Spanner)
380 (object-callbacks . ((normal-stems . ,ly:beam::calc-normal-stems)))
381 (interfaces . (beam-interface
383 staff-symbol-referencer-interface
384 unbreakable-spanner-interface))))))
388 (minimum-length . 0.5)
389 (stencil . ,bend::print)
391 (meta . ((class . Spanner)
392 (interfaces . (bend-after-interface
393 spanner-interface))))))
398 (break-align-anchor . ,ly:break-aligned-interface::calc-average-anchor)
399 (break-visibility . ,ly:break-aligned-interface::calc-break-visibility)
400 (X-extent . ,ly:axis-group-interface::width)
401 (meta . ((class . Item)
402 (interfaces . (axis-group-interface
403 break-aligned-interface))))))
408 (break-align-orders . ;; end of line
444 (positioning-done . ,ly:break-alignment-interface::calc-positioning-done)
446 (X-extent . ,ly:axis-group-interface::width)
447 (meta . ((class . Item)
448 (interfaces . (axis-group-interface
449 break-alignment-interface))))))
453 (break-align-symbol . breathing-sign)
454 (break-visibility . ,begin-of-line-invisible)
457 (ambitus . (extra-space . 2.0))
458 (custos . (minimum-space . 1.0))
459 (key-signature . (minimum-space . 1.5))
460 (time-signature . (minimum-space . 1.5))
461 (staff-bar . (minimum-space . 1.5))
462 (clef . (minimum-space . 2.0))
463 (first-note . (fixed-space . 1.0)) ;huh?
464 (right-edge . (extra-space . 0.1))))
465 (stencil . ,ly:text-interface::print)
466 (text . ,(make-musicglyph-markup "scripts.rcomma"))
467 (Y-offset . ,ly:breathing-sign::offset-callback)
468 (meta . ((class . Item)
469 (interfaces . (break-aligned-interface
470 breathing-sign-interface
476 (after-line-breaking . ,ly:chord-name::after-line-breaking)
479 (stencil . ,ly:text-interface::print)
481 (meta . ((class . Item)
482 (interfaces . (chord-name-interface
484 rhythmic-grob-interface
489 (avoid-slur . inside)
490 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
491 (break-align-symbol . clef)
492 (break-visibility . ,begin-of-line-visible)
493 (glyph-name . ,ly:clef::calc-glyph-name)
495 (space-alist . ((ambitus . (extra-space . 2.0))
496 (staff-bar . (extra-space . 0.7))
497 (key-cancellation . (minimum-space . 3.5))
498 (key-signature . (minimum-space . 3.5))
499 (time-signature . (minimum-space . 4.2))
500 (first-note . (minimum-fixed-space . 5.0))
501 (next-note . (extra-space . 0.5))
502 (right-edge . (extra-space . 0.5))))
503 (stencil . ,ly:clef::print)
504 (extra-spacing-height . (-0.5 . 0.5))
505 (Y-offset . ,ly:staff-symbol-referencer::callback)
506 (meta . ((class . Item)
507 (interfaces . (break-aligned-interface
510 staff-symbol-referencer-interface))))))
514 (cross-staff . ,ly:cluster::calc-cross-staff)
515 (minimum-length . 0.0)
517 (springs-and-rods . ,ly:spanner::set-spacing-rods)
518 (stencil . ,ly:cluster::print)
520 (meta . ((class . Spanner)
521 (interfaces . (cluster-interface))))))
523 (ClusterSpannerBeacon
525 (Y-extent . ,ly:cluster-beacon::height)
526 (meta . ((class . Item)
527 (interfaces . (cluster-beacon-interface
528 rhythmic-grob-interface))))))
532 (avoid-slur . outside)
535 (extra-spacing-width . (+inf.0 . -inf.0))
537 (outside-staff-priority . 450)
539 (script-priority . 200)
541 (staff-padding . 0.5)
542 ;; todo: add X self alignment?
543 (stencil . ,ly:text-interface::print)
544 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
545 (Y-offset . ,ly:side-position-interface::y-aligned-side)
546 (meta . ((class . Item)
547 (interfaces . (font-interface
548 side-position-interface
550 text-script-interface))))))
554 (break-align-symbol . custos)
555 (break-visibility . ,end-of-line-visible)
556 (neutral-direction . ,DOWN)
559 (first-note . (minimum-fixed-space . 0.0))
560 (right-edge . (extra-space . 0.1))))
561 (stencil . ,ly:custos::print)
563 (Y-offset . ,ly:staff-symbol-referencer::callback)
564 (meta . ((class . Item)
565 (interfaces . (break-aligned-interface
568 staff-symbol-referencer-interface))))))
574 (positioning-done . ,ly:dot-column::calc-positioning-done)
575 (X-extent . ,ly:axis-group-interface::width)
576 (meta . ((class . Item)
577 (interfaces . (axis-group-interface
578 dot-column-interface))))))
582 (dot-count . ,dots::calc-dot-count)
583 (staff-position . ,dots::calc-staff-position)
584 (stencil . ,ly:dots::print)
585 (extra-spacing-height . (-0.5 . 0.5))
586 (meta . ((class . Item)
587 (interfaces . (dots-interface
589 staff-symbol-referencer-interface))))))
593 (break-align-symbol . staff-bar)
594 (break-visibility . ,begin-of-line-invisible)
595 (dot-negative-kern . 0.75)
596 (font-encoding . fetaMusic)
598 (slash-negative-kern . 1.6)
600 (stencil . ,ly:percent-repeat-item-interface::double-percent)
603 (meta . ((class . Item)
604 (interfaces . (break-aligned-interface
606 percent-repeat-interface
607 percent-repeat-item-interface))))))
609 (DoublePercentRepeatCounter
612 (font-encoding . fetaText)
615 (self-alignment-X . ,CENTER)
617 (staff-padding . 0.25)
618 (stencil . ,ly:text-interface::print)
619 (X-offset . ,(ly:make-simple-closure
621 ,(ly:make-simple-closure
622 (list ly:self-alignment-interface::centered-on-y-parent))
623 ,(ly:make-simple-closure
624 (list ly:self-alignment-interface::x-aligned-on-self)))))
625 (Y-offset . ,ly:side-position-interface::y-aligned-side)
626 (meta . ((class . Item)
627 (interfaces . (font-interface
628 percent-repeat-interface
629 percent-repeat-item-interface
630 self-alignment-interface
631 side-position-interface
637 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
639 (minimum-space . 1.2)
640 (outside-staff-priority . 250)
644 (staff-padding . 0.1)
645 (X-extent . ,ly:axis-group-interface::width)
646 (Y-extent . ,ly:axis-group-interface::height)
647 (Y-offset . ,ly:side-position-interface::y-aligned-side)
648 (meta . ((class . Spanner)
649 (interfaces . (axis-group-interface
651 dynamic-line-spanner-interface
652 side-position-interface))))))
659 (direction . ,ly:script-interface::calc-direction)
660 (extra-spacing-width . (+inf.0 . -inf.0))
661 (font-encoding . fetaText)
663 (font-shape . italic)
664 (outside-staff-priority . 250)
665 (positioning-done . ,ly:script-interface::calc-positioning-done)
666 (right-padding . 0.5)
667 (self-alignment-X . ,CENTER)
668 (self-alignment-Y . ,CENTER)
669 (stencil . ,ly:text-interface::print)
670 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
671 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
672 (meta . ((class . Item)
673 (interfaces . (dynamic-interface
674 dynamic-text-interface
677 self-alignment-interface
682 (before-line-breaking . ,dynamic-text-spanner::before-line-breaking)
683 (bound-details . ((right . ((attach-dir . ,LEFT)
687 (right-broken . ((attach-dir . ,RIGHT)
691 (left . ((attach-dir . ,LEFT)
693 (stencil-offset . (-0.75 . -0.5))
696 (left-broken . ((attach-dir . ,RIGHT)
699 (dash-fraction . 0.2)
702 ;; rather ugh with NCSB
703 ;; (font-series . bold)
704 (font-shape . italic)
706 ;; need to blend with dynamic texts.
709 (left-bound-info . ,ly:line-spanner::calc-left-bound-info-and-text)
711 ;; make sure the spanner doesn't get too close to notes
712 (minimum-Y-extent . (-1 . 1))
714 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
715 (stencil . ,ly:line-spanner::print)
716 (style . dashed-line)
717 (meta . ((class . Spanner)
718 (interfaces . (dynamic-interface
719 dynamic-text-spanner-interface
722 line-spanner-interface
729 (bound-details . ((left . ((Y . 0)
735 (attach-dir . ,RIGHT)
739 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
740 (quantize-position . #t)
741 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
743 (stencil . ,ly:line-spanner::print)
745 (Y-offset . ,ly:side-position-interface::y-aligned-side)
746 (meta . ((class . Spanner)
747 (interfaces . (episema-interface
750 line-spanner-interface
751 side-position-interface))))))
757 ;; sync with TextScript (?)
759 (avoid-slur . around)
760 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
761 (direction . ,ly:script-interface::calc-direction)
762 (font-encoding . fetaText)
763 (font-size . -5) ; don't overlap when next to heads.
765 (positioning-done . ,ly:script-interface::calc-positioning-done)
766 (script-priority . 100)
767 (self-alignment-X . ,CENTER)
768 (self-alignment-Y . ,CENTER)
770 (staff-padding . 0.5)
771 (stencil . ,ly:text-interface::print)
772 (text . ,fingering::calc-text)
773 (meta . ((class . Item)
774 (interfaces . (finger-interface
776 self-alignment-interface
777 side-position-interface
779 text-script-interface))))))
783 (after-line-breaking . ,ly:chord-name::after-line-breaking)
784 (fret-diagram-details . ((finger-code . below-string)))
785 (stencil . ,fret-board::calc-stencil)
786 (meta . ((class . Item)
787 (interfaces . (chord-name-interface
789 fret-diagram-interface
790 rhythmic-grob-interface))))))
795 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
796 (bound-details . ((right . ((attach-dir . ,CENTER)
799 (left . ((attach-dir . ,CENTER)
804 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
805 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
806 (stencil . ,ly:line-spanner::print)
810 (zigzag-width . 0.75)
811 (meta . ((class . Spanner)
812 (interfaces . (line-interface
813 line-spanner-interface
814 unbreakable-spanner-interface))))))
818 (common-shortest-duration . ,grace-spacing::calc-shortest-duration)
819 (shortest-duration-space . 1.6)
820 (spacing-increment . 0.8)
821 (meta . ((class . Spanner)
822 (interfaces . (grace-spacing-interface
823 spacing-options-interface
824 spanner-interface))))))
829 (self-alignment-X . ,CENTER)
830 (stencil . ,ly:grid-line-interface::print)
831 (X-extent . ,ly:grid-line-interface::width)
832 (X-offset . ,(ly:make-simple-closure
834 ,(ly:make-simple-closure
835 (list ly:self-alignment-interface::centered-on-x-parent))
836 ,(ly:make-simple-closure
837 (list ly:self-alignment-interface::x-aligned-on-self)))))
838 (meta . ((class . Item)
839 (interfaces . (grid-line-interface
840 self-alignment-interface))))))
846 (meta . ((class . Item)
847 (interfaces . (grid-point-interface))))))
852 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
853 (bound-padding . 1.0)
855 (grow-direction . ,hairpin::calc-grow-direction)
857 (minimum-length . 2.0)
858 (self-alignment-Y . ,CENTER)
859 (springs-and-rods . ,ly:spanner::set-spacing-rods)
860 (stencil . ,ly:hairpin::print)
863 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
864 (meta . ((class . Spanner)
865 (interfaces . (dynamic-interface
868 self-alignment-interface
869 spanner-interface))))))
871 (HarmonicParenthesesItem
874 (stencil . ,parentheses-item::print)
875 (stencils . ,parentheses-item::calc-angled-bracket-stencils)
876 (meta . ((class . Item)
877 (interfaces . (font-interface
878 parentheses-interface))))))
882 (bracket-flare . (0.5 . 0.5))
883 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
887 (staff-padding . 0.2)
888 (stencil . ,ly:horizontal-bracket::print)
890 (Y-offset . ,ly:side-position-interface::y-aligned-side)
891 (meta . ((class . Spanner)
892 (interfaces . (horizontal-bracket-interface
894 side-position-interface
895 spanner-interface))))))
902 (self-alignment-X . ,CENTER)
903 (self-alignment-Y . ,CENTER)
904 (stencil . ,system-start-text::print)
905 (X-offset . ,system-start-text::calc-x-offset)
906 (Y-offset . ,system-start-text::calc-y-offset)
907 (meta . ((class . Spanner)
908 (interfaces . (font-interface
909 self-alignment-interface
910 side-position-interface
911 system-start-text-interface))))))
916 (extra-spacing-width . (+inf.0 . -inf.0))
917 (outside-staff-priority . 500)
919 (self-alignment-X . ,LEFT)
921 (staff-padding . 0.5)
922 (stencil . ,ly:text-interface::print)
923 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
924 (Y-offset . ,ly:side-position-interface::y-aligned-side)
925 (meta . ((class . Item)
926 (interfaces . (font-interface
927 self-alignment-interface
928 side-position-interface
934 (break-align-symbol . key-cancellation)
935 (break-visibility . ,begin-of-line-invisible)
936 (glyph-name-alist . ,cancellation-glyph-name-alist)
939 (time-signature . (extra-space . 1.25))
940 (staff-bar . (extra-space . 0.6))
941 (key-signature . (extra-space . 0.5))
942 (right-edge . (extra-space . 0.5))
943 (first-note . (fixed-space . 2.5))))
944 (stencil . ,ly:key-signature-interface::print)
945 (Y-offset . ,ly:staff-symbol-referencer::callback)
946 (meta . ((class . Item)
947 (interfaces . (break-aligned-interface
949 key-cancellation-interface
950 key-signature-interface
951 staff-symbol-referencer-interface))))))
955 (avoid-slur . inside)
956 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
957 (break-align-symbol . key-signature)
958 (break-visibility . ,begin-of-line-visible)
959 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
962 (time-signature . (extra-space . 1.15))
963 (staff-bar . (extra-space . 1.1))
964 (right-edge . (extra-space . 0.5))
965 (first-note . (fixed-space . 2.5))))
966 (stencil . ,ly:key-signature-interface::print)
967 (Y-offset . ,ly:staff-symbol-referencer::callback)
968 (meta . ((class . Item)
969 (interfaces . (break-aligned-interface
971 key-signature-interface
972 staff-symbol-referencer-interface))))))
977 (control-points . ,ly:semi-tie::calc-control-points)
978 (details . ((ratio . 0.333)
979 (height-limit . 1.0)))
980 (direction . ,ly:tie::calc-direction)
981 (head-direction . ,LEFT)
982 (stencil . ,laissez-vibrer::print)
984 (extra-spacing-height . (-0.5 . 0.5))
985 (meta . ((class . Item)
986 (interfaces . (semi-tie-interface))))))
988 (LaissezVibrerTieColumn
990 (head-direction . ,ly:semi-tie-column::calc-head-direction)
991 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
994 (meta . ((class . Item)
995 (interfaces . (semi-tie-column-interface))))))
1000 (length-fraction . 0.25)
1001 (minimum-length-fraction . 0.25)
1002 (springs-and-rods . ,ly:ledger-line-spanner::set-spacing-rods)
1003 (stencil . ,ly:ledger-line-spanner::print)
1006 (meta . ((class . Spanner)
1007 (interfaces . (ledger-line-spanner-interface))))))
1011 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1012 (break-align-symbol . left-edge)
1013 (break-visibility . ,center-invisible)
1016 (custos . (extra-space . 0.0))
1017 (ambitus . (extra-space . 2.0))
1018 (time-signature . (extra-space . 1.0))
1019 (staff-bar . (extra-space . 0.0))
1020 (breathing-sign . (minimum-space . 0.0))
1021 (clef . (extra-space . 0.8))
1022 (first-note . (fixed-space . 2.0))
1023 (right-edge . (extra-space . 0.0))
1024 (key-signature . (extra-space . 0.8))
1025 (key-cancellation . (extra-space . 0.0))
1027 (X-extent . (0 . 0))
1028 (meta . ((class . Item)
1029 (interfaces . (break-aligned-interface))))))
1033 ;; ugh. A ligature bracket is totally different from
1034 ;; a tuplet bracket.
1036 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
1037 (control-points . ,ly:tuplet-bracket::calc-control-points)
1039 (edge-height . (0.7 . 0.7))
1041 (positions . ,ly:tuplet-bracket::calc-positions)
1042 (shorten-pair . (-0.2 . -0.2))
1043 (staff-padding . 0.25)
1044 (stencil . ,ly:tuplet-bracket::print)
1046 (meta . ((class . Spanner)
1047 (interfaces . (line-interface
1048 tuplet-bracket-interface))))))
1052 (minimum-length . 1.5)
1053 (stencil . ,ly:lyric-extender::print)
1054 (thickness . 0.8) ; line-thickness
1055 (Y-extent . (0 . 0))
1056 (meta . ((class . Spanner)
1057 (interfaces . (lyric-extender-interface
1058 lyric-interface))))))
1062 (dash-period . 10.0)
1065 (minimum-distance . 0.1)
1066 (minimum-length . 0.3)
1068 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1069 (stencil . ,ly:lyric-hyphen::print)
1071 (Y-extent . (0 . 0))
1072 (meta . ((class . Spanner)
1073 (interfaces . (font-interface
1074 lyric-hyphen-interface
1076 spanner-interface))))))
1080 (minimum-distance . 0.45)
1082 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1085 (meta . ((class . Spanner)
1086 (interfaces . (lyric-hyphen-interface
1087 spanner-interface))))))
1091 (extra-spacing-width . (0.0 . 0.0))
1092 (font-series . bold-narrow)
1094 (self-alignment-X . ,CENTER)
1095 (stencil . ,lyric-text::print)
1096 (text . ,(grob::calc-property-by-copy 'text))
1098 (X-offset . ,ly:self-alignment-interface::aligned-on-x-parent)
1099 (meta . ((class . Item)
1100 (interfaces . (font-interface
1101 lyric-syllable-interface
1102 rhythmic-grob-interface
1103 self-alignment-interface
1104 text-interface))))))
1114 (stencil . ,ly:measure-grouping::print)
1116 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1117 (meta . ((class . Spanner)
1118 (interfaces . (measure-grouping-interface
1119 side-position-interface))))))
1123 (neutral-direction . ,DOWN)
1124 (meta . ((class . Item)
1125 (interfaces . (melody-spanner-interface))))))
1130 (stencil . ,ly:mensural-ligature::print)
1132 (meta . ((class . Spanner)
1133 (interfaces . (font-interface
1134 mensural-ligature-interface))))))
1138 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1140 (extra-spacing-width . (+inf.0 . -inf.0))
1141 (outside-staff-priority . 1000)
1144 (stencil . ,ly:text-interface::print)
1145 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1146 (meta . ((class . Item)
1147 (interfaces . (font-interface
1148 metronome-mark-interface
1149 side-position-interface
1150 text-interface))))))
1155 (hair-thickness . 2.0)
1157 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1158 (staff-position . 0)
1159 (stencil . ,ly:multi-measure-rest::print)
1160 (thick-thickness . 6.6)
1161 (Y-offset . ,ly:staff-symbol-referencer::callback)
1162 (meta . ((class . Spanner)
1163 (interfaces . (font-interface
1164 multi-measure-interface
1165 multi-measure-rest-interface
1167 staff-symbol-referencer-interface))))))
1169 (MultiMeasureRestNumber
1171 (bound-padding . 2.0)
1173 (font-encoding . fetaText)
1175 (self-alignment-X . ,CENTER)
1177 (springs-and-rods . ,ly:multi-measure-rest::set-text-rods)
1178 (staff-padding . 0.4)
1179 (stencil . ,ly:text-interface::print)
1180 (X-offset . ,(ly:make-simple-closure
1182 ,(ly:make-simple-closure
1183 (list ly:self-alignment-interface::x-aligned-on-self))
1184 ,(ly:make-simple-closure
1185 (list ly:self-alignment-interface::x-centered-on-y-parent)))))
1186 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1187 (meta . ((class . Spanner)
1188 (interfaces . (font-interface
1189 multi-measure-interface
1190 self-alignment-interface
1191 side-position-interface
1192 text-interface))))))
1194 (MultiMeasureRestText
1197 (outside-staff-priority . 450)
1199 (self-alignment-X . ,CENTER)
1200 (staff-padding . 0.25)
1201 (stencil . ,ly:text-interface::print)
1202 (X-offset . ,(ly:make-simple-closure
1204 ,(ly:make-simple-closure
1205 (list ly:self-alignment-interface::x-centered-on-y-parent))
1206 ,(ly:make-simple-closure
1207 (list ly:self-alignment-interface::x-aligned-on-self)))))
1208 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1209 (meta . ((class . Spanner)
1210 (interfaces . (font-interface
1211 multi-measure-interface
1212 self-alignment-interface
1213 side-position-interface
1214 text-interface))))))
1217 (NonMusicalPaperColumn
1219 (allow-loose-spacing . #t)
1221 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1222 (full-measure-extra-space . 1.0)
1223 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1224 ;; (stencil . ,ly:paper-column::print)
1226 (line-break-permission . allow)
1228 (page-break-permission . allow)
1230 ;; debugging stuff: print column number.
1231 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1233 (X-extent . ,ly:axis-group-interface::width)
1234 (meta . ((class . Paper_column)
1235 (interfaces . (axis-group-interface
1237 paper-column-interface
1238 separation-item-interface
1239 spaceable-grob-interface))))))
1244 (positioning-done . ,ly:note-collision-interface::calc-positioning-done)
1245 (prefer-dotted-right . #t)
1246 (X-extent . ,ly:axis-group-interface::width)
1247 (Y-extent . ,ly:axis-group-interface::height)
1248 (meta . ((class . Item)
1249 (interfaces . (axis-group-interface
1250 note-collision-interface))))))
1255 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1256 (X-extent . ,ly:axis-group-interface::width)
1257 (Y-extent . ,ly:axis-group-interface::height)
1258 (meta . ((class . Item)
1259 (interfaces . (axis-group-interface
1260 note-column-interface
1261 separation-item-interface))))))
1265 (duration-log . ,note-head::calc-duration-log)
1266 (glyph-name . ,note-head::calc-glyph-name)
1267 (stem-attachment . ,ly:note-head::calc-stem-attachment)
1268 (stencil . ,ly:note-head::print)
1269 (X-offset . ,ly:note-head::stem-x-shift)
1270 (Y-offset . ,ly:staff-symbol-referencer::callback)
1271 (meta . ((class . Item)
1272 (interfaces . (font-interface
1273 gregorian-ligature-interface
1275 mensural-ligature-interface
1277 rhythmic-grob-interface
1278 rhythmic-head-interface
1279 staff-symbol-referencer-interface
1280 vaticana-ligature-interface))))))
1284 (stencil . ,ly:text-interface::print)
1285 (meta . ((class . Item)
1286 (interfaces . (font-interface
1288 text-interface))))))
1292 ;; Changed this from 0.75.
1293 ;; If you ever change this back, please document! --hwn
1294 (knee-spacing-correction . 1.0)
1295 (same-direction-correction . 0.25)
1296 (space-to-barline . #t)
1297 (stem-spacing-correction . 0.5)
1298 (meta . ((class . Item)
1299 (interfaces . (note-spacing-interface
1300 spacing-interface))))))
1305 (break-visibility . ,begin-of-line-visible)
1306 (font-shape . italic)
1308 (self-alignment-X . ,CENTER)
1309 (staff-padding . 0.2)
1310 (stencil . ,ly:text-interface::print)
1311 (X-offset . ,(ly:make-simple-closure
1313 ,(ly:make-simple-closure
1314 (list ly:self-alignment-interface::x-aligned-on-self))
1315 ,(ly:make-simple-closure
1316 (list ly:self-alignment-interface::centered-on-x-parent)))))
1317 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1318 (meta . ((class . Item)
1319 (interfaces . (font-interface
1320 self-alignment-interface
1321 side-position-interface
1322 text-interface))))))
1326 (dash-fraction . 0.3)
1328 (edge-height . (0 . 1.2))
1329 (font-shape . italic)
1330 (minimum-length . 1.0)
1331 (outside-staff-priority . 400)
1333 (shorten-pair . (0.0 . -0.6))
1334 (staff-padding . 1.0)
1335 (stencil . ,ly:ottava-bracket::print)
1336 (style . dashed-line)
1337 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1338 (meta . ((class . Spanner)
1339 (interfaces . (font-interface
1340 horizontal-bracket-interface
1342 ottava-bracket-interface
1343 side-position-interface
1344 text-interface))))))
1349 (allow-loose-spacing . #t)
1351 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1352 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1353 ;; (stencil . ,ly:paper-column::print)
1354 (X-extent . ,ly:axis-group-interface::width)
1357 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1358 (meta . ((class . Paper_column)
1359 (interfaces . (axis-group-interface
1361 paper-column-interface
1362 separation-item-interface
1363 spaceable-grob-interface))))))
1369 (stencil . ,parentheses-item::print)
1370 (stencils . ,parentheses-item::calc-parenthesis-stencils)
1371 (meta . ((class . Item)
1372 (interfaces . (font-interface
1373 parentheses-interface))))))
1377 (dot-negative-kern . 0.75)
1378 (font-encoding . fetaMusic)
1380 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1381 (stencil . ,ly:multi-measure-rest::percent)
1383 (meta . ((class . Spanner)
1384 (interfaces . (font-interface
1385 multi-measure-rest-interface
1386 percent-repeat-interface))))))
1388 (PercentRepeatCounter
1391 (font-encoding . fetaText)
1394 (self-alignment-X . ,CENTER)
1395 (staff-padding . 0.25)
1396 (stencil . ,ly:text-interface::print)
1397 (X-offset . ,(ly:make-simple-closure
1399 ,(ly:make-simple-closure
1400 (list ly:self-alignment-interface::x-centered-on-y-parent))
1401 ,(ly:make-simple-closure
1402 (list ly:self-alignment-interface::x-aligned-on-self)))))
1403 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1404 (meta . ((class . Spanner)
1405 (interfaces . (font-interface
1406 percent-repeat-interface
1407 self-alignment-interface
1408 side-position-interface
1409 text-interface))))))
1413 (control-points . ,ly:slur::calc-control-points)
1414 (cross-staff . ,ly:slur::calc-cross-staff)
1415 (details . ,default-slur-details)
1416 (direction . ,ly:slur::calc-direction)
1417 (height-limit . 2.0)
1418 (minimum-length . 1.5)
1420 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1421 (stencil . ,ly:slur::print)
1423 (Y-extent . ,ly:slur::height)
1424 (meta . ((class . Spanner)
1425 (interfaces . (slur-interface))))))
1427 ;; an example of a text spanner
1430 (bound-padding . 1.0)
1431 (bracket-flare . (0.5 . 0.5))
1433 (edge-height . (1.0 . 1.0))
1434 (shorten-pair . (0.0 . 0.0))
1435 (stencil . ,ly:piano-pedal-bracket::print)
1438 (meta . ((class . Spanner)
1439 (interfaces . (line-interface
1440 piano-pedal-bracket-interface
1441 piano-pedal-interface))))))
1446 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1448 (break-align-symbols . (staff-bar clef))
1449 (break-visibility . ,end-of-line-invisible)
1451 (extra-spacing-width . (+inf.0 . -inf.0))
1454 (outside-staff-priority . 1500)
1456 (self-alignment-X . ,CENTER)
1457 (stencil . ,ly:text-interface::print)
1458 (X-offset . ,(ly:make-simple-closure
1460 ,(ly:make-simple-closure
1461 (list ly:break-alignable-interface::self-align-callback))
1462 ,(ly:make-simple-closure
1463 (list ly:self-alignment-interface::x-aligned-on-self)))))
1464 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1465 (meta . ((class . Item)
1466 (interfaces . (break-alignable-interface
1469 self-alignment-interface
1470 side-position-interface
1471 text-interface))))))
1476 (stencil . ,ly:percent-repeat-item-interface::beat-slash)
1478 (meta . ((class . Item)
1479 (interfaces . (percent-repeat-interface
1480 percent-repeat-item-interface
1481 rhythmic-grob-interface))))))
1485 (control-points . ,ly:semi-tie::calc-control-points)
1486 (details . ((ratio . 0.333)
1487 (height-limit . 1.0)))
1488 (direction . ,ly:tie::calc-direction)
1489 (head-direction . ,RIGHT)
1490 (stencil . ,ly:tie::print)
1492 (extra-spacing-height . (-0.5 . 0.5))
1493 (meta . ((class . Item)
1494 (interfaces . (semi-tie-interface))))))
1498 (direction . ,ly:tie::calc-direction)
1499 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1500 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1503 (meta . ((class . Item)
1504 (interfaces . (semi-tie-column-interface))))))
1508 (cross-staff . ,ly:rest::calc-cross-staff)
1509 (duration-log . ,stem::calc-duration-log)
1510 (minimum-distance . 0.25)
1511 (stencil . ,ly:rest::print)
1512 (X-extent . ,ly:rest::width)
1513 (Y-extent . ,ly:rest::height)
1514 (Y-offset . ,ly:rest::y-offset-callback)
1515 (meta . ((class . Item)
1516 (interfaces . (font-interface
1518 rhythmic-grob-interface
1519 rhythmic-head-interface
1520 staff-symbol-referencer-interface))))))
1524 (minimum-distance . 0.75)
1525 (positioning-done . ,ly:rest-collision::calc-positioning-done)
1526 (meta . ((class . Item)
1527 (interfaces . (rest-collision-interface))))))
1532 (cross-staff . ,ly:script-interface::calc-cross-staff)
1533 (direction . ,ly:script-interface::calc-direction)
1534 (font-encoding . fetaMusic)
1535 (positioning-done . ,ly:script-interface::calc-positioning-done)
1538 ;; padding set in script definitions.
1539 (staff-padding . 0.25)
1541 (stencil . ,ly:script-interface::print)
1542 (X-offset . ,script-interface::calc-x-offset)
1543 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1544 (meta . ((class . Item)
1545 (interfaces . (font-interface
1547 side-position-interface))))))
1551 (before-line-breaking . ,ly:script-column::before-line-breaking)
1552 (meta . ((class . Item)
1553 (interfaces . (script-column-interface))))))
1557 (before-line-breaking . ,ly:script-column::row-before-line-breaking)
1558 (meta . ((class . Item)
1559 (interfaces . (script-column-interface))))))
1563 (avoid-slur . inside)
1564 (control-points . ,ly:slur::calc-control-points)
1565 (cross-staff . ,ly:slur::calc-cross-staff)
1566 (details . ,default-slur-details)
1567 (direction . ,ly:slur::calc-direction)
1568 (height-limit . 2.0)
1569 (line-thickness . 0.8)
1570 (minimum-length . 1.5)
1572 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1573 (stencil . ,ly:slur::print)
1575 (Y-extent . ,ly:slur::height)
1576 (meta . ((class . Spanner)
1577 (interfaces . (slur-interface))))))
1581 (direction . ,RIGHT)
1582 (extra-spacing-width . (+inf.0 . -inf.0))
1583 (font-shape . italic)
1584 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
1585 (self-alignment-X . ,CENTER)
1586 (stencil . ,ly:text-interface::print)
1587 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1588 (meta . ((class . Item)
1589 (interfaces . (font-interface
1590 piano-pedal-script-interface
1591 self-alignment-interface
1592 text-interface))))))
1594 (SostenutoPedalLineSpanner
1598 (minimum-space . 1.0)
1599 (outside-staff-priority . 1000)
1602 (staff-padding . 1.0)
1603 (X-extent . ,ly:axis-group-interface::width)
1604 (Y-extent . ,ly:axis-group-interface::height)
1605 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1606 (meta . ((class . Spanner)
1607 (interfaces . (axis-group-interface
1608 piano-pedal-interface
1609 side-position-interface))))))
1613 (average-spacing-wishes . #t)
1614 (base-shortest-duration . ,(ly:make-moment 3 16))
1615 (common-shortest-duration . ,ly:spacing-spanner::calc-common-shortest-duration)
1616 (shortest-duration-space . 2.0)
1617 (spacing-increment . 1.2)
1618 (springs-and-rods . ,ly:spacing-spanner::set-springs)
1619 (meta . ((class . Spanner)
1620 (interfaces . (spacing-options-interface
1621 spacing-spanner-interface))))))
1625 (allow-span-bar . #t)
1626 (bar-extent . ,ly:axis-group-interface::height)
1627 (bar-size . ,ly:span-bar::calc-bar-size)
1628 (before-line-breaking . ,ly:span-bar::before-line-breaking)
1629 (break-align-symbol . staff-bar)
1631 (glyph-name . ,ly:span-bar::calc-glyph-name)
1633 ;; ugh duplication! (these 4 properties were copied from Barline)
1635 ;; Ross. page 151 lists other values, we opt for a leaner look
1639 (hair-thickness . 1.6)
1640 (thick-thickness . 6.0)
1644 (stencil . ,ly:span-bar::print)
1645 (X-extent . ,ly:span-bar::width)
1646 (Y-extent . ,ly:axis-group-interface::height)
1647 (meta . ((class . Item)
1648 (interfaces . (bar-line-interface
1650 span-bar-interface))))))
1654 (between-staff-spacing . ((space . 9)
1655 (minimum-distance . 7)
1657 (after-last-staff-spacing . ((space . 10.5)
1658 (minimum-distance . 8)
1660 (meta . ((class . Spanner)
1661 (interfaces . (staff-grouper-interface))))))
1666 (stem-spacing-correction . 0.4)
1667 (meta . ((class . Item)
1668 (interfaces . (spacing-interface
1669 staff-spacing-interface))))))
1674 (ledger-line-thickness . (1.0 . 0.1))
1676 (stencil . ,ly:staff-symbol::print)
1677 (Y-extent . ,ly:staff-symbol::height)
1678 (meta . ((class . Spanner)
1679 (interfaces . (staff-symbol-interface))))))
1684 (font-series . bold)
1687 (stencil . ,ly:text-interface::print)
1688 (X-offset . ,ly:side-position-interface::x-aligned-side)
1689 (meta . ((class . Item)
1690 (interfaces . (font-interface
1691 side-position-interface
1692 stanza-number-interface
1693 text-interface))))))
1697 (beamlet-default-length . (1.1 . 1.1))
1698 (beamlet-max-length-proportion . (0.75 . 0.75))
1699 (cross-staff . ,ly:stem::calc-cross-staff)
1700 (default-direction . ,ly:stem::calc-default-direction)
1703 ;; 3.5 (or 3 measured from note head) is standard length
1704 ;; 32nd, 64th, 128th flagged stems should be longer
1705 (lengths . (3.5 3.5 3.5 4.5 5.0 6.0))
1707 ;; FIXME. 3.5 yields too long beams (according to Ross and
1708 ;; looking at Baerenreiter examples) for a number of common
1709 ;; boundary cases. Subtracting half a beam thickness fixes
1710 ;; this, but the bug may well be somewhere else.
1712 ;; FIXME this should come from 'lengths
1713 (beamed-lengths . (3.26 3.5 3.6))
1715 ;; The 'normal' minima
1716 (beamed-minimum-free-lengths . (1.83 1.5 1.25))
1717 ;(beamed-minimum-free-lengths . (2.0 1.83 1.25))
1719 ;; The 'extreme case' minima
1720 (beamed-extreme-minimum-free-lengths . (2.0 1.25))
1722 ;; Stems in unnatural (forced) direction should be shortened by
1723 ;; one staff space, according to [Roush & Gourlay].
1724 ;; Flagged stems we shorten only half a staff space.
1725 (stem-shorten . (1.0 0.5))
1729 ;; We use the normal minima as minimum for the ideal lengths,
1730 ;; and the extreme minima as abolute minimum length.
1732 (direction . ,ly:stem::calc-direction)
1733 (duration-log . ,stem::calc-duration-log)
1734 (flag . ,ly:stem::calc-flag)
1735 (length . ,ly:stem::calc-length)
1736 (neutral-direction . ,DOWN)
1737 (positioning-done . ,ly:stem::calc-positioning-done)
1738 (stem-end-position . ,ly:stem::calc-stem-end-position)
1739 (stem-info . ,ly:stem::calc-stem-info)
1740 (stencil . ,ly:stem::print)
1742 (X-extent . ,ly:stem::width)
1743 (X-offset . ,ly:stem::offset-callback)
1744 (Y-extent . ,ly:stem::height)
1745 (Y-offset . ,ly:staff-symbol-referencer::callback)
1746 (meta . ((class . Item)
1747 (interfaces . (font-interface
1748 stem-interface))))))
1752 (beam-thickness . 0.48) ; staff-space
1753 (beam-width . ,ly:stem-tremolo::calc-width) ; staff-space
1754 (slope . ,ly:stem-tremolo::calc-slope)
1755 (stencil . ,ly:stem-tremolo::print)
1756 (style . ,ly:stem-tremolo::calc-style)
1757 (X-extent . ,ly:stem-tremolo::width)
1758 (Y-extent . ,ly:stem-tremolo::height)
1759 (meta . ((class . Item)
1760 (interfaces . (stem-tremolo-interface))))))
1764 (avoid-slur . around)
1765 (font-encoding . fetaText)
1766 (font-size . -5) ; don't overlap when next to heads.
1768 (script-priority . 100)
1769 (self-alignment-X . ,CENTER)
1770 (self-alignment-Y . ,CENTER)
1771 (staff-padding . 0.5)
1772 (stencil . ,print-circled-text-callback)
1773 (text . ,string-number::calc-text)
1774 (meta . ((class . Item)
1775 (interfaces . (font-interface
1776 self-alignment-interface
1777 side-position-interface
1778 string-number-interface
1780 text-script-interface))))))
1784 (digit-names . #("p" "i" "m" "a" "x"))
1785 (font-shape . italic)
1786 (font-size . -4) ; don't overlap when next to heads.
1788 (script-priority . 100)
1789 (self-alignment-X . ,CENTER)
1790 (self-alignment-Y . ,CENTER)
1791 (staff-padding . 0.5)
1792 (stencil . ,ly:text-interface::print)
1793 (text . ,stroke-finger::calc-text)
1794 (meta . ((class . Item)
1795 (interfaces . (font-interface
1796 self-alignment-interface
1797 side-position-interface
1798 stroke-finger-interface
1800 text-script-interface))))))
1804 (direction . ,RIGHT)
1805 (extra-spacing-width . (+inf.0 . -inf.0))
1806 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
1807 (self-alignment-X . ,CENTER)
1808 (stencil . ,ly:sustain-pedal::print)
1809 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1810 (meta . ((class . Item)
1811 (interfaces . (font-interface
1812 piano-pedal-interface
1813 piano-pedal-script-interface
1814 self-alignment-interface
1815 text-interface))))))
1817 (SustainPedalLineSpanner
1821 (minimum-space . 1.0)
1822 (outside-staff-priority . 1000)
1825 (staff-padding . 1.2)
1826 (X-extent . ,ly:axis-group-interface::width)
1827 (Y-extent . ,ly:axis-group-interface::height)
1828 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1829 (meta . ((class . Spanner)
1830 (interfaces . (axis-group-interface
1831 piano-pedal-interface
1832 side-position-interface))))))
1837 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
1838 (X-extent . ,ly:axis-group-interface::width)
1839 (Y-extent . ,ly:axis-group-interface::height)
1840 (meta . ((class . System)
1841 (interfaces . (axis-group-interface
1842 system-interface))))))
1846 (collapse-height . 5.0)
1850 (padding . -0.1) ;; bar must cover rounded ending of staff line.
1851 (stencil . ,ly:system-start-delimiter::print)
1854 (X-offset . ,ly:side-position-interface::x-aligned-side)
1856 (meta . ((class . Spanner)
1857 (interfaces . (side-position-interface
1858 system-start-delimiter-interface))))))
1862 (collapse-height . 5.0)
1864 (font-encoding . fetaBraces)
1866 (stencil . ,ly:system-start-delimiter::print)
1868 (X-offset . ,ly:side-position-interface::x-aligned-side)
1870 (meta . ((class . Spanner)
1871 (interfaces . (font-interface
1872 side-position-interface
1873 system-start-delimiter-interface))))))
1877 (collapse-height . 5.0)
1880 (stencil . ,ly:system-start-delimiter::print)
1883 (X-offset . ,ly:side-position-interface::x-aligned-side)
1885 (meta . ((class . Spanner)
1886 (interfaces . (font-interface
1887 side-position-interface
1888 system-start-delimiter-interface))))))
1893 (stencil . ,ly:system-start-delimiter::print)
1894 (style . line-bracket)
1896 (X-offset . ,ly:side-position-interface::x-aligned-side)
1898 (meta . ((class . Spanner)
1899 (interfaces . (font-interface
1900 side-position-interface
1901 system-start-delimiter-interface))))))
1906 (details . ((tied-properties . ((break-visibility . ,begin-of-line-visible)
1907 (parenthesize . #t)))
1908 (repeat-tied-properties . ((note-head-visible . #t)
1909 (parenthesize . #t)))))
1910 (direction . ,CENTER)
1911 (duration-log . ,note-head::calc-duration-log)
1912 (font-series . bold)
1914 (stem-attachment . (0.0 . 1.35))
1915 (stencil . ,ly:text-interface::print)
1917 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1918 (Y-offset . ,ly:staff-symbol-referencer::callback)
1919 (meta . ((class . Item)
1920 (interfaces . (font-interface
1922 rhythmic-grob-interface
1923 rhythmic-head-interface
1924 staff-symbol-referencer-interface
1925 tab-note-head-interface
1926 text-interface))))))
1930 (avoid-slur . around)
1931 (cross-staff . ,ly:script-interface::calc-cross-staff)
1933 (direction . ,ly:script-interface::calc-direction)
1934 (extra-spacing-width . (+inf.0 . -inf.0))
1935 (outside-staff-priority . 450)
1937 ;; sync with Fingering ?
1940 (positioning-done . ,ly:script-interface::calc-positioning-done)
1941 (script-priority . 200)
1943 (slur-padding . 0.5)
1944 (staff-padding . 0.5)
1945 (stencil . ,ly:text-interface::print)
1946 ;; todo: add X self alignment?
1947 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1948 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1949 (meta . ((class . Item)
1950 (interfaces . (font-interface
1951 instrument-specific-markup-interface
1952 self-alignment-interface
1953 side-position-interface
1955 text-script-interface))))))
1959 (bound-details . ((left . ((Y . 0)
1961 (attach-dir . ,LEFT)
1963 (left-broken . ((end-on-note . #t)))
1968 (dash-fraction . 0.2)
1971 (font-shape . italic)
1972 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
1973 (outside-staff-priority . 350)
1974 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
1976 (staff-padding . 0.8)
1977 (stencil . ,ly:line-spanner::print)
1978 (style . dashed-line)
1979 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1981 (meta . ((class . Spanner)
1982 (interfaces . (font-interface
1984 line-spanner-interface
1985 side-position-interface))))))
1989 (avoid-slur . inside)
1990 (control-points . ,ly:tie::calc-control-points)
1992 ;; for a full list, see tie-details.cc
1994 (center-staff-line-clearance . 0.6)
1995 (tip-staff-line-clearance . 0.45)
1996 (note-head-gap . 0.2)
1998 (height-limit . 1.0)
1999 (horizontal-distance-penalty-factor . 10)
2000 (same-dir-as-stem-penalty . 8)
2001 (min-length-penalty-factor . 26)
2002 (tie-tie-collision-distance . 0.45)
2003 (tie-tie-collision-penalty . 25.0)
2004 (intra-space-threshold . 1.25)
2005 (outer-tie-vertical-distance-symmetry-penalty-factor . 10)
2006 (outer-tie-length-symmetry-penalty-factor . 10)
2007 (vertical-distance-penalty-factor . 7)
2008 (outer-tie-vertical-gap . 0.25)
2009 (multi-tie-region-size . 3)
2010 (single-tie-region-size . 4)
2011 (between-length-limit . 1.0)))
2013 (direction . ,ly:tie::calc-direction)
2015 (line-thickness . 0.8)
2016 (neutral-direction . ,UP)
2017 (springs-and-rods . ,ly:spanner::set-spacing-rods)
2018 (stencil . ,ly:tie::print)
2020 (meta . ((class . Spanner)
2021 (interfaces . (tie-interface))))))
2025 (before-line-breaking . ,ly:tie-column::before-line-breaking)
2026 (positioning-done . ,ly:tie-column::calc-positioning-done)
2029 (meta . ((class . Spanner)
2030 (interfaces . (tie-column-interface))))))
2034 (avoid-slur . inside)
2036 . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
2037 (break-align-symbol . time-signature)
2038 (break-visibility . ,all-visible)
2039 (extra-spacing-height . (-1.0 . 1.0))
2042 (first-note . (fixed-space . 2.0))
2043 (right-edge . (extra-space . 0.5))
2044 (staff-bar . (minimum-space . 2.0))))
2045 (stencil . ,ly:time-signature::print)
2047 (meta . ((class . Item)
2048 (interfaces . (break-aligned-interface
2050 time-signature-interface))))))
2052 (TrillPitchAccidental
2056 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
2059 (stencil . ,ly:accidental-interface::print)
2060 (X-offset . ,ly:side-position-interface::x-aligned-side)
2061 (Y-extent . ,ly:accidental-interface::height)
2062 (meta . ((class . Item)
2063 (interfaces . (accidental-interface
2065 side-position-interface
2066 trill-pitch-accidental-interface))))))
2071 (direction . ,RIGHT)
2075 (stencil . ,parenthesize-elements)
2076 (stencils . ,parentheses-item::calc-parenthesis-stencils)
2077 (X-offset . ,ly:side-position-interface::x-aligned-side)
2078 (meta . ((class . Item)
2079 (interfaces . (axis-group-interface
2082 parentheses-interface
2083 side-position-interface))))))
2089 (stencil . ,ly:note-head::print)
2090 (Y-offset . ,ly:staff-symbol-referencer::callback)
2091 (meta . ((class . Item)
2092 (interfaces . (font-interface
2094 pitched-trill-interface
2095 rhythmic-head-interface
2096 staff-symbol-referencer-interface))))))
2100 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2101 (bound-details . ((left . ((text . ,(make-musicglyph-markup "scripts.trill"))
2103 (stencil-offset . (-0.5 . -1))
2105 (attach-dir . ,CENTER)
2107 (left-broken . ((end-on-note . #t)))
2111 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2112 (outside-staff-priority . 50)
2114 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2116 (staff-padding . 1.0)
2117 (stencil . ,ly:line-spanner::print)
2119 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2120 (meta . ((class . Spanner)
2121 (interfaces . (font-interface
2123 line-spanner-interface
2124 side-position-interface
2125 trill-spanner-interface))))))
2129 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
2130 (control-points . ,ly:tuplet-bracket::calc-control-points)
2131 (cross-staff . ,ly:tuplet-bracket::calc-cross-staff)
2132 (direction . ,ly:tuplet-bracket::calc-direction)
2133 (edge-height . (0.7 . 0.7))
2134 (full-length-to-extent . #t)
2136 (positions . ,ly:tuplet-bracket::calc-positions)
2137 (shorten-pair . (-0.2 . -0.2))
2138 (staff-padding . 0.25)
2139 (stencil . ,ly:tuplet-bracket::print)
2142 (meta . ((class . Spanner)
2143 (interfaces . (line-interface
2144 tuplet-bracket-interface))))))
2148 (avoid-slur . inside)
2149 (cross-staff . ,ly:tuplet-number::calc-cross-staff)
2150 (font-shape . italic)
2152 (stencil . ,ly:tuplet-number::print)
2153 (text . ,tuplet-number::calc-denominator-text)
2154 (meta . ((class . Spanner)
2155 (interfaces . (font-interface
2157 tuplet-number-interface))))))
2162 (direction . ,RIGHT)
2163 (extra-spacing-width . (+inf.0 . -inf.0))
2164 (font-shape . italic)
2165 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
2166 (self-alignment-X . ,CENTER)
2167 (stencil . ,ly:text-interface::print)
2168 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2169 (meta . ((class . Item)
2170 (interfaces . (font-interface
2171 piano-pedal-script-interface
2172 self-alignment-interface
2173 text-interface))))))
2175 (UnaCordaPedalLineSpanner
2179 (minimum-space . 1.0)
2180 (outside-staff-priority . 1000)
2183 (staff-padding . 1.2)
2184 (X-extent . ,ly:axis-group-interface::width)
2185 (Y-extent . ,ly:axis-group-interface::height)
2186 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2187 (meta . ((class . Spanner)
2188 (interfaces . (axis-group-interface
2189 piano-pedal-interface
2190 side-position-interface))))))
2196 (stencil . ,ly:vaticana-ligature::print)
2198 (meta . ((class . Spanner)
2199 (interfaces . (font-interface
2200 vaticana-ligature-interface))))))
2205 (positioning-done . ,ly:align-interface::align-to-ideal-distances)
2207 (vertical-skylines . ,ly:axis-group-interface::combine-skylines)
2208 (X-extent . ,ly:axis-group-interface::width)
2209 (Y-extent . ,ly:axis-group-interface::height)
2210 (meta . ((class . Spanner)
2211 (object-callbacks . ((Y-common . ,ly:axis-group-interface::calc-y-common)))
2212 (interfaces . (align-interface
2213 axis-group-interface))))))
2217 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2219 (default-next-staff-spacing . ((space . 9)
2220 (minimum-distance . 8)
2222 (next-staff-spacing . ,ly:axis-group-interface::calc-next-staff-spacing)
2223 (non-affinity-spacing . ((padding . 0.5)))
2224 (stencil . ,ly:axis-group-interface::print)
2225 (vertical-skylines . ,ly:hara-kiri-group-spanner::calc-skylines)
2226 (X-extent . ,ly:axis-group-interface::width)
2227 (Y-extent . ,ly:hara-kiri-group-spanner::y-extent)
2228 (Y-offset . ,ly:hara-kiri-group-spanner::force-hara-kiri-callback)
2229 (meta . ((class . Spanner)
2230 (object-callbacks . ((X-common . ,ly:axis-group-interface::calc-x-common)))
2231 (interfaces . (axis-group-interface
2232 hara-kiri-group-spanner-interface
2233 vertically-spaceable-interface))))))
2237 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2238 (bound-details . ((right . ((attach-dir . ,CENTER)
2241 (left . ((attach-dir . ,CENTER)
2246 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2248 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2249 (stencil . ,ly:line-spanner::print)
2253 (meta . ((class . Spanner)
2254 (interfaces . (line-interface
2255 line-spanner-interface))))))
2260 (edge-height . (2.0 . 2.0)) ;; staff-space;
2261 (font-encoding . fetaText)
2263 (stencil . ,ly:volta-bracket-interface::print)
2264 (thickness . 1.6) ;; line-thickness
2266 (meta . ((class . Spanner)
2267 (interfaces . (font-interface
2268 horizontal-bracket-interface
2270 side-position-interface
2272 volta-bracket-interface
2273 volta-interface))))))
2275 (VoltaBracketSpanner
2277 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
2281 (outside-staff-priority . 600)
2284 (X-extent . ,ly:axis-group-interface::width)
2285 (Y-extent . ,ly:axis-group-interface::height)
2286 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2287 (meta . ((class . Spanner)
2288 (interfaces . (axis-group-interface
2289 side-position-interface
2290 volta-interface))))))
2294 (define (completize-grob-entry x)
2295 "Transplant assoc key into 'name entry of 'meta of X. Set interfaces for Item, Spanner etc.
2297 ;; (display (car x))
2299 (let* ((name-sym (car x))
2300 (grob-entry (cdr x))
2301 (meta-entry (assoc-get 'meta grob-entry))
2302 (class (assoc-get 'class meta-entry))
2304 (assoc-get 'interfaces meta-entry)))
2308 (set! ifaces-entry (cons 'item-interface ifaces-entry)))
2309 ((eq? 'Spanner class)
2310 (set! ifaces-entry (cons 'spanner-interface ifaces-entry)))
2311 ((eq? 'Paper_column class)
2312 (set! ifaces-entry (cons 'item-interface
2313 (cons 'paper-column-interface ifaces-entry))))
2314 ((eq? 'System class)
2315 (set! ifaces-entry (cons 'system-interface
2316 (cons 'spanner-interface ifaces-entry))))
2318 (ly:warning "Unknown class ~a" class)))
2320 (set! ifaces-entry (uniq-list (sort ifaces-entry symbol<?)))
2321 (set! ifaces-entry (cons 'grob-interface ifaces-entry))
2323 (set! meta-entry (assoc-set! meta-entry 'name name-sym))
2324 (set! meta-entry (assoc-set! meta-entry 'interfaces
2326 (set! grob-entry (assoc-set! grob-entry 'meta meta-entry))
2327 (cons name-sym grob-entry)))
2329 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
2331 ;; (display (map pair? all-grob-descriptions))
2333 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
2336 ;; (display (car x)) (newline)
2338 (set-object-property! (car x) 'translation-type? list?)
2339 (set-object-property! (car x) 'is-grob? #t))
2340 all-grob-descriptions)
2342 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))
2344 (define (volta-bracket-interface::pure-height grob start end)
2345 (let ((edge-height (ly:grob-property grob 'edge-height)))
2346 (if (number-pair? edge-height)
2347 (let ((smaller (min (car edge-height) (cdr edge-height)))
2348 (larger (max (car edge-height) (cdr edge-height))))
2349 (interval-union '(0 . 0) (cons smaller larger)))
2352 (define pure-print-callbacks
2354 fret-board::calc-stencil
2355 note-head::brew-ez-stencil
2356 print-circled-text-callback
2357 laissez-vibrer::print
2360 ly:mensural-ligature::brew-ligature-primitive
2364 ly:percent-repeat-item-interface::beat-slash
2365 ly:text-interface::print
2366 ly:script-interface::print))
2368 ;; Sometimes we have grobs with (Y-extent . ,ly:grob::stencil-height)
2369 ;; and the print function is not pure, but there is a easy way to
2370 ;; figure out the Y-extent from the print function.
2371 (define pure-print-to-height-conversions
2373 (,ly:arpeggio::print . ,ly:arpeggio::pure-height)
2374 (,ly:arpeggio::brew-chord-bracket . ,ly:arpeggio::pure-height)
2375 (,ly:hairpin::print . ,ly:hairpin::pure-height)
2376 (,ly:volta-bracket-interface::print . ,volta-bracket-interface::pure-height)))
2378 ;; ly:grob::stencil-extent is safe if the print callback is safe too
2379 (define (pure-stencil-height grob start stop)
2380 (let* ((sten (ly:grob-property-data grob 'stencil))
2381 (pure-height-callback (assoc-get sten pure-print-to-height-conversions)))
2384 (memq sten pure-print-callbacks))
2385 (ly:grob::stencil-height grob))
2386 ((procedure? pure-height-callback)
2387 (pure-height-callback grob start stop))
2391 ;; Sometimes, a pure callback will be chained to a non-pure callback via
2392 ;; chain_offset_callback, in which case this provides a default by simply
2393 ;; passing through the value from the pure callback.
2394 (define (pure-chain-offset-callback grob start end prev-offset) prev-offset)
2396 (define pure-conversions-alist
2398 (,ly:accidental-interface::height . ,ly:accidental-interface::pure-height)
2399 (,ly:axis-group-interface::calc-next-staff-spacing . ,ly:axis-group-interface::calc-pure-next-staff-spacing)
2400 (,ly:axis-group-interface::height . ,ly:axis-group-interface::pure-height)
2401 (,ly:grob::stencil-height . ,pure-stencil-height)
2402 (,ly:hara-kiri-group-spanner::y-extent . ,ly:hara-kiri-group-spanner::pure-height)
2403 (,ly:rest-collision::force-shift-callback-rest . ,pure-chain-offset-callback)
2404 (,ly:rest::height . ,ly:rest::pure-height)
2405 (,ly:self-alignment-interface::y-aligned-on-self . ,ly:self-alignment-interface::pure-y-aligned-on-self)
2406 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)
2407 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)
2408 (,ly:slur::height . ,ly:slur::pure-height)
2409 (,ly:slur::outside-slur-callback . ,ly:slur::pure-outside-slur-callback)
2410 (,ly:stem::height . ,ly:stem::pure-height)))
2412 (define pure-functions
2414 parenthesize-elements
2415 laissez-vibrer::print
2416 ly:rest::y-offset-callback
2417 ly:staff-symbol-referencer::callback
2418 ly:staff-symbol::height))
2420 (define-public (pure-relevant? grob)
2421 (let ((extent-callback (ly:grob-property-data grob 'Y-extent)))
2424 (pair? extent-callback)
2425 (memq extent-callback pure-functions)
2427 (pair? (assq extent-callback pure-conversions-alist))
2428 (let ((stencil (ly:grob-property-data grob 'stencil)))
2430 (not (eq? extent-callback ly:grob::stencil-height))
2431 (memq stencil pure-print-callbacks)
2432 (assq stencil pure-print-to-height-conversions)
2433 (ly:stencil? stencil)))))))))
2435 (define-public (call-pure-function unpure args start end)
2436 (if (ly:simple-closure? unpure)
2437 (ly:eval-simple-closure (car args) unpure start end)
2438 (if (not (procedure? unpure))
2440 (if (memq unpure pure-functions)
2442 (let ((pure (assq unpure pure-conversions-alist)))
2446 (list (car args) start end)