1 ;;;; This file is part of LilyPond, the GNU music typesetter.
3 ;;;; Copyright (C) 1998--2009 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 (Y-offset . ,ly:staff-symbol-referencer::callback)
505 (meta . ((class . Item)
506 (interfaces . (break-aligned-interface
509 staff-symbol-referencer-interface))))))
513 (cross-staff . ,ly:cluster::calc-cross-staff)
514 (minimum-length . 0.0)
516 (springs-and-rods . ,ly:spanner::set-spacing-rods)
517 (stencil . ,ly:cluster::print)
519 (meta . ((class . Spanner)
520 (interfaces . (cluster-interface))))))
522 (ClusterSpannerBeacon
524 (Y-extent . ,ly:cluster-beacon::height)
525 (meta . ((class . Item)
526 (interfaces . (cluster-beacon-interface
527 rhythmic-grob-interface))))))
531 (avoid-slur . outside)
534 (extra-spacing-width . (+inf.0 . -inf.0))
537 (script-priority . 200)
539 (staff-padding . 0.5)
540 ;; todo: add X self alignment?
541 (stencil . ,ly:text-interface::print)
542 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
543 (Y-offset . ,ly:side-position-interface::y-aligned-side)
544 (meta . ((class . Item)
545 (interfaces . (font-interface
546 side-position-interface
548 text-script-interface))))))
552 (break-align-symbol . custos)
553 (break-visibility . ,end-of-line-visible)
554 (neutral-direction . ,DOWN)
557 (first-note . (minimum-fixed-space . 0.0))
558 (right-edge . (extra-space . 0.1))))
559 (stencil . ,ly:custos::print)
561 (Y-offset . ,ly:staff-symbol-referencer::callback)
562 (meta . ((class . Item)
563 (interfaces . (break-aligned-interface
566 staff-symbol-referencer-interface))))))
572 (positioning-done . ,ly:dot-column::calc-positioning-done)
573 (X-extent . ,ly:axis-group-interface::width)
574 (meta . ((class . Item)
575 (interfaces . (axis-group-interface
576 dot-column-interface))))))
580 (dot-count . ,dots::calc-dot-count)
581 (staff-position . ,dots::calc-staff-position)
582 (stencil . ,ly:dots::print)
583 (meta . ((class . Item)
584 (interfaces . (dots-interface
586 staff-symbol-referencer-interface))))))
590 (break-align-symbol . staff-bar)
591 (break-visibility . ,begin-of-line-invisible)
592 (dot-negative-kern . 0.75)
593 (font-encoding . fetaMusic)
595 (slash-negative-kern . 1.6)
597 (stencil . ,ly:percent-repeat-item-interface::double-percent)
600 (meta . ((class . Item)
601 (interfaces . (break-aligned-interface
603 percent-repeat-interface
604 percent-repeat-item-interface))))))
606 (DoublePercentRepeatCounter
609 (font-encoding . fetaNumber)
612 (self-alignment-X . ,CENTER)
614 (staff-padding . 0.25)
615 (stencil . ,ly:text-interface::print)
616 (X-offset . ,(ly:make-simple-closure
618 ,(ly:make-simple-closure
619 (list ly:self-alignment-interface::centered-on-y-parent))
620 ,(ly:make-simple-closure
621 (list ly:self-alignment-interface::x-aligned-on-self)))))
622 (Y-offset . ,ly:side-position-interface::y-aligned-side)
623 (meta . ((class . Item)
624 (interfaces . (font-interface
625 percent-repeat-interface
626 percent-repeat-item-interface
627 self-alignment-interface
628 side-position-interface
634 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
636 (minimum-space . 1.2)
637 (outside-staff-priority . 250)
641 (staff-padding . 0.1)
642 (X-extent . ,ly:axis-group-interface::width)
643 (Y-extent . ,ly:axis-group-interface::height)
644 (Y-offset . ,ly:side-position-interface::y-aligned-side)
645 (meta . ((class . Spanner)
646 (interfaces . (axis-group-interface
648 dynamic-line-spanner-interface
649 side-position-interface))))))
656 (direction . ,ly:script-interface::calc-direction)
657 (extra-spacing-width . (+inf.0 . -inf.0))
658 (font-encoding . fetaDynamic)
660 (font-shape . italic)
661 (outside-staff-priority . 250)
662 (positioning-done . ,ly:script-interface::calc-positioning-done)
663 (self-alignment-X . ,CENTER)
664 (self-alignment-Y . ,CENTER)
665 (stencil . ,ly:text-interface::print)
666 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
667 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
668 (meta . ((class . Item)
669 (interfaces . (dynamic-interface
672 self-alignment-interface
677 (bound-details . ((right . ((attach-dir . ,LEFT)
681 (right-broken . ((attach-dir . ,RIGHT)
685 (left . ((attach-dir . ,LEFT)
687 (stencil-offset . (0 . -0.5))
690 (left-broken . ((attach-dir . ,RIGHT)
693 (dash-fraction . 0.2)
696 ;; rather ugh with NCSB
697 ;; (font-series . bold)
698 (font-shape . italic)
700 ;; need to blend with dynamic texts.
703 (left-bound-info . ,ly:line-spanner::calc-left-bound-info-and-text)
705 ;; make sure the spanner doesn't get too close to notes
706 (minimum-Y-extent . (-1 . 1))
708 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
709 (stencil . ,ly:line-spanner::print)
710 (style . dashed-line)
711 (meta . ((class . Spanner)
712 (interfaces . (dynamic-interface
713 dynamic-text-spanner-interface
716 line-spanner-interface
724 ;; sync with TextScript (?)
726 (avoid-slur . around)
727 (cross-staff . ,ly:side-position-interface::calc-cross-staff)
728 (direction . ,ly:script-interface::calc-direction)
729 (font-encoding . fetaNumber)
730 (font-size . -5) ; don't overlap when next to heads.
732 (positioning-done . ,ly:script-interface::calc-positioning-done)
733 (script-priority . 100)
734 (self-alignment-X . ,CENTER)
735 (self-alignment-Y . ,CENTER)
737 (staff-padding . 0.5)
738 (stencil . ,ly:text-interface::print)
739 (text . ,fingering::calc-text)
740 (meta . ((class . Item)
741 (interfaces . (finger-interface
743 self-alignment-interface
744 side-position-interface
746 text-script-interface))))))
750 (after-line-breaking . ,ly:chord-name::after-line-breaking)
751 (fret-diagram-details . ((finger-code . below-string)))
752 (stencil . ,fret-board::calc-stencil)
753 (meta . ((class . Item)
754 (interfaces . (chord-name-interface
756 fret-diagram-interface
757 rhythmic-grob-interface))))))
762 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
763 (bound-details . ((right . ((attach-dir . ,CENTER)
766 (left . ((attach-dir . ,CENTER)
771 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
772 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
773 (stencil . ,ly:line-spanner::print)
777 (zigzag-width . 0.75)
778 (meta . ((class . Spanner)
779 (interfaces . (line-interface
780 line-spanner-interface
781 unbreakable-spanner-interface))))))
785 (common-shortest-duration . ,grace-spacing::calc-shortest-duration)
786 (shortest-duration-space . 1.6)
787 (spacing-increment . 0.8)
788 (meta . ((class . Spanner)
789 (interfaces . (grace-spacing-interface
790 spacing-options-interface
791 spanner-interface))))))
796 (self-alignment-X . ,CENTER)
797 (stencil . ,ly:grid-line-interface::print)
798 (X-extent . ,ly:grid-line-interface::width)
799 (X-offset . ,(ly:make-simple-closure
801 ,(ly:make-simple-closure
802 (list ly:self-alignment-interface::centered-on-x-parent))
803 ,(ly:make-simple-closure
804 (list ly:self-alignment-interface::x-aligned-on-self)))))
805 (meta . ((class . Item)
806 (interfaces . (grid-line-interface
807 self-alignment-interface))))))
813 (meta . ((class . Item)
814 (interfaces . (grid-point-interface))))))
819 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
820 (bound-padding . 1.0)
822 (grow-direction . ,hairpin::calc-grow-direction)
824 (minimum-length . 2.0)
825 (self-alignment-Y . ,CENTER)
826 (springs-and-rods . ,ly:spanner::set-spacing-rods)
827 (stencil . ,ly:hairpin::print)
830 (Y-offset . ,ly:self-alignment-interface::y-aligned-on-self)
831 (meta . ((class . Spanner)
832 (interfaces . (dynamic-interface
835 self-alignment-interface
836 spanner-interface))))))
838 (HarmonicParenthesesItem
841 (stencil . ,parentheses-item::print)
842 (stencils . ,parentheses-item::calc-angled-bracket-stencils)
843 (meta . ((class . Item)
844 (interfaces . (font-interface
845 parentheses-interface))))))
849 (bracket-flare . (0.5 . 0.5))
850 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
854 (staff-padding . 0.2)
855 (stencil . ,ly:horizontal-bracket::print)
857 (Y-offset . ,ly:side-position-interface::y-aligned-side)
858 (meta . ((class . Spanner)
859 (interfaces . (horizontal-bracket-interface
861 side-position-interface
862 spanner-interface))))))
869 (self-alignment-X . ,CENTER)
870 (self-alignment-Y . ,CENTER)
871 (stencil . ,system-start-text::print)
872 (X-offset . ,system-start-text::calc-x-offset)
873 (Y-offset . ,system-start-text::calc-y-offset)
874 (meta . ((class . Spanner)
875 (interfaces . (font-interface
876 self-alignment-interface
877 side-position-interface
878 system-start-text-interface))))))
883 (extra-spacing-width . (+inf.0 . -inf.0))
884 (outside-staff-priority . 500)
886 (self-alignment-X . ,LEFT)
888 (staff-padding . 0.5)
889 (stencil . ,ly:text-interface::print)
890 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
891 (Y-offset . ,ly:side-position-interface::y-aligned-side)
892 (meta . ((class . Item)
893 (interfaces . (font-interface
894 self-alignment-interface
895 side-position-interface
901 (break-align-symbol . key-cancellation)
902 (break-visibility . ,begin-of-line-invisible)
903 (glyph-name-alist . ,cancellation-glyph-name-alist)
906 (time-signature . (extra-space . 1.25))
907 (staff-bar . (extra-space . 0.6))
908 (key-signature . (extra-space . 0.5))
909 (right-edge . (extra-space . 0.5))
910 (first-note . (fixed-space . 2.5))))
911 (stencil . ,ly:key-signature-interface::print)
912 (Y-offset . ,ly:staff-symbol-referencer::callback)
913 (meta . ((class . Item)
914 (interfaces . (break-aligned-interface
916 key-cancellation-interface
917 key-signature-interface
918 staff-symbol-referencer-interface))))))
922 (avoid-slur . inside)
923 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
924 (break-align-symbol . key-signature)
925 (break-visibility . ,begin-of-line-visible)
926 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
929 (time-signature . (extra-space . 1.15))
930 (staff-bar . (extra-space . 1.1))
931 (right-edge . (extra-space . 0.5))
932 (first-note . (fixed-space . 2.5))))
933 (stencil . ,ly:key-signature-interface::print)
934 (Y-offset . ,ly:staff-symbol-referencer::callback)
935 (meta . ((class . Item)
936 (interfaces . (break-aligned-interface
938 key-signature-interface
939 staff-symbol-referencer-interface))))))
944 (control-points . ,ly:semi-tie::calc-control-points)
945 (details . ((ratio . 0.333)
946 (height-limit . 1.0)))
947 (direction . ,ly:tie::calc-direction)
948 (head-direction . ,LEFT)
949 (stencil . ,ly:tie::print)
951 (meta . ((class . Item)
952 (interfaces . (semi-tie-interface))))))
954 (LaissezVibrerTieColumn
956 (head-direction . ,LEFT)
957 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
960 (meta . ((class . Item)
961 (interfaces . (semi-tie-column-interface))))))
966 (length-fraction . 0.25)
967 (minimum-length-fraction . 0.25)
968 (springs-and-rods . ,ly:ledger-line-spanner::set-spacing-rods)
969 (stencil . ,ly:ledger-line-spanner::print)
972 (meta . ((class . Spanner)
973 (interfaces . (ledger-line-spanner-interface))))))
977 (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
978 (break-align-symbol . left-edge)
979 (break-visibility . ,center-invisible)
982 (custos . (extra-space . 0.0))
983 (ambitus . (extra-space . 2.0))
984 (time-signature . (extra-space . 1.0))
985 (staff-bar . (extra-space . 0.0))
986 (breathing-sign . (minimum-space . 0.0))
987 (clef . (extra-space . 0.8))
988 (first-note . (fixed-space . 2.0))
989 (right-edge . (extra-space . 0.0))
990 (key-signature . (extra-space . 0.8))
991 (key-cancellation . (extra-space . 0.0))
994 (meta . ((class . Item)
995 (interfaces . (break-aligned-interface))))))
999 ;; ugh. A ligature bracket is totally different from
1000 ;; a tuplet bracket.
1002 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
1003 (control-points . ,ly:tuplet-bracket::calc-control-points)
1005 (edge-height . (0.7 . 0.7))
1007 (positions . ,ly:tuplet-bracket::calc-positions)
1008 (shorten-pair . (-0.2 . -0.2))
1009 (staff-padding . 0.25)
1010 (stencil . ,ly:tuplet-bracket::print)
1012 (meta . ((class . Spanner)
1013 (interfaces . (line-interface
1014 tuplet-bracket-interface))))))
1018 (minimum-length . 1.5)
1019 (stencil . ,ly:lyric-extender::print)
1020 (thickness . 0.8) ; line-thickness
1021 (Y-extent . (0 . 0))
1022 (meta . ((class . Spanner)
1023 (interfaces . (lyric-extender-interface
1024 lyric-interface))))))
1028 (dash-period . 10.0)
1031 (minimum-distance . 0.1)
1032 (minimum-length . 0.3)
1034 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1035 (stencil . ,ly:lyric-hyphen::print)
1037 (Y-extent . (0 . 0))
1038 (meta . ((class . Spanner)
1039 (interfaces . (font-interface
1040 lyric-hyphen-interface
1042 spanner-interface))))))
1046 (minimum-distance . 0.45)
1048 (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1051 (meta . ((class . Spanner)
1052 (interfaces . (lyric-hyphen-interface
1053 spanner-interface))))))
1057 (extra-spacing-width . (0.0 . 0.0))
1058 (font-series . bold-narrow)
1060 (self-alignment-X . ,CENTER)
1061 (stencil . ,lyric-text::print)
1062 (text . ,(grob::calc-property-by-copy 'text))
1064 (X-offset . ,ly:self-alignment-interface::aligned-on-x-parent)
1065 (meta . ((class . Item)
1066 (interfaces . (font-interface
1067 lyric-syllable-interface
1068 rhythmic-grob-interface
1069 self-alignment-interface
1070 text-interface))))))
1080 (stencil . ,ly:measure-grouping::print)
1082 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1083 (meta . ((class . Spanner)
1084 (interfaces . (measure-grouping-interface
1085 side-position-interface))))))
1089 (neutral-direction . ,DOWN)
1090 (meta . ((class . Item)
1091 (interfaces . (melody-spanner-interface))))))
1096 (stencil . ,ly:mensural-ligature::print)
1098 (meta . ((class . Spanner)
1099 (interfaces . (font-interface
1100 mensural-ligature-interface))))))
1104 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1106 (extra-spacing-width . (+inf.0 . -inf.0))
1107 (outside-staff-priority . 1000)
1110 (stencil . ,ly:text-interface::print)
1111 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1112 (meta . ((class . Item)
1113 (interfaces . (font-interface
1114 metronome-mark-interface
1115 side-position-interface
1116 text-interface))))))
1121 (hair-thickness . 2.0)
1123 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1124 (staff-position . 0)
1125 (stencil . ,ly:multi-measure-rest::print)
1126 (thick-thickness . 6.6)
1127 (Y-offset . ,ly:staff-symbol-referencer::callback)
1128 (meta . ((class . Spanner)
1129 (interfaces . (font-interface
1130 multi-measure-interface
1131 multi-measure-rest-interface
1133 staff-symbol-referencer-interface))))))
1135 (MultiMeasureRestNumber
1137 (bound-padding . 2.0)
1139 (font-encoding . fetaNumber)
1141 (self-alignment-X . ,CENTER)
1143 (springs-and-rods . ,ly:multi-measure-rest::set-text-rods)
1144 (staff-padding . 0.4)
1145 (stencil . ,ly:text-interface::print)
1146 (X-offset . ,(ly:make-simple-closure
1148 ,(ly:make-simple-closure
1149 (list ly:self-alignment-interface::x-aligned-on-self))
1150 ,(ly:make-simple-closure
1151 (list ly:self-alignment-interface::x-centered-on-y-parent)))))
1152 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1153 (meta . ((class . Spanner)
1154 (interfaces . (font-interface
1155 multi-measure-interface
1156 self-alignment-interface
1157 side-position-interface
1158 text-interface))))))
1160 (MultiMeasureRestText
1163 (outside-staff-priority . 450)
1165 (self-alignment-X . ,CENTER)
1166 (staff-padding . 0.25)
1167 (stencil . ,ly:text-interface::print)
1168 (X-offset . ,(ly:make-simple-closure
1170 ,(ly:make-simple-closure
1171 (list ly:self-alignment-interface::x-centered-on-y-parent))
1172 ,(ly:make-simple-closure
1173 (list ly:self-alignment-interface::x-aligned-on-self)))))
1174 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1175 (meta . ((class . Spanner)
1176 (interfaces . (font-interface
1177 multi-measure-interface
1178 self-alignment-interface
1179 side-position-interface
1180 text-interface))))))
1183 (NonMusicalPaperColumn
1185 (allow-loose-spacing . #t)
1187 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1188 (full-measure-extra-space . 1.0)
1189 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1190 ;; (stencil . ,ly:paper-column::print)
1192 (line-break-permission . allow)
1194 (page-break-permission . allow)
1196 ;; debugging stuff: print column number.
1197 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1199 (X-extent . ,ly:axis-group-interface::width)
1200 (meta . ((class . Paper_column)
1201 (interfaces . (axis-group-interface
1203 paper-column-interface
1204 separation-item-interface
1205 spaceable-grob-interface))))))
1210 (positioning-done . ,ly:note-collision-interface::calc-positioning-done)
1211 (prefer-dotted-right . #t)
1212 (X-extent . ,ly:axis-group-interface::width)
1213 (Y-extent . ,ly:axis-group-interface::height)
1214 (meta . ((class . Item)
1215 (interfaces . (axis-group-interface
1216 note-collision-interface))))))
1221 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1222 (X-extent . ,ly:axis-group-interface::width)
1223 (Y-extent . ,ly:axis-group-interface::height)
1224 (meta . ((class . Item)
1225 (interfaces . (axis-group-interface
1226 note-column-interface
1227 separation-item-interface))))))
1231 (duration-log . ,note-head::calc-duration-log)
1232 (glyph-name . ,note-head::calc-glyph-name)
1233 (stem-attachment . ,ly:note-head::calc-stem-attachment)
1234 (stencil . ,ly:note-head::print)
1235 (X-offset . ,ly:note-head::stem-x-shift)
1236 (Y-offset . ,ly:staff-symbol-referencer::callback)
1237 (meta . ((class . Item)
1238 (interfaces . (font-interface
1239 gregorian-ligature-interface
1241 mensural-ligature-interface
1243 rhythmic-grob-interface
1244 rhythmic-head-interface
1245 staff-symbol-referencer-interface
1246 vaticana-ligature-interface))))))
1250 (stencil . ,ly:text-interface::print)
1251 (meta . ((class . Item)
1252 (interfaces . (font-interface
1254 text-interface))))))
1258 ;; Changed this from 0.75.
1259 ;; If you ever change this back, please document! --hwn
1260 (knee-spacing-correction . 1.0)
1261 (same-direction-correction . 0.25)
1262 (space-to-barline . #t)
1263 (stem-spacing-correction . 0.5)
1264 (meta . ((class . Item)
1265 (interfaces . (note-spacing-interface
1266 spacing-interface))))))
1271 (break-visibility . ,begin-of-line-visible)
1272 (font-shape . italic)
1274 (self-alignment-X . ,CENTER)
1275 (staff-padding . 0.2)
1276 (stencil . ,ly:text-interface::print)
1277 (X-offset . ,(ly:make-simple-closure
1279 ,(ly:make-simple-closure
1280 (list ly:self-alignment-interface::x-aligned-on-self))
1281 ,(ly:make-simple-closure
1282 (list ly:self-alignment-interface::centered-on-x-parent)))))
1283 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1284 (meta . ((class . Item)
1285 (interfaces . (font-interface
1286 self-alignment-interface
1287 side-position-interface
1288 text-interface))))))
1292 (dash-fraction . 0.3)
1294 (edge-height . (0 . 1.2))
1295 (font-shape . italic)
1296 (minimum-length . 1.0)
1297 (outside-staff-priority . 400)
1299 (shorten-pair . (0.0 . -0.6))
1300 (staff-padding . 1.0)
1301 (stencil . ,ly:ottava-bracket::print)
1302 (style . dashed-line)
1303 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1304 (meta . ((class . Spanner)
1305 (interfaces . (font-interface
1306 horizontal-bracket-interface
1308 ottava-bracket-interface
1309 side-position-interface
1310 text-interface))))))
1315 (allow-loose-spacing . #t)
1317 (before-line-breaking . ,ly:paper-column::before-line-breaking)
1318 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1319 ;; (stencil . ,ly:paper-column::print)
1320 (X-extent . ,ly:axis-group-interface::width)
1323 ;; (font-size . -6) (font-name . "sans") (Y-extent . #f)
1324 (meta . ((class . Paper_column)
1325 (interfaces . (axis-group-interface
1327 paper-column-interface
1328 separation-item-interface
1329 spaceable-grob-interface))))))
1335 (stencil . ,parentheses-item::print)
1336 (stencils . ,parentheses-item::calc-parenthesis-stencils)
1337 (meta . ((class . Item)
1338 (interfaces . (font-interface
1339 parentheses-interface))))))
1343 (dot-negative-kern . 0.75)
1344 (font-encoding . fetaMusic)
1346 (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1347 (stencil . ,ly:multi-measure-rest::percent)
1349 (meta . ((class . Spanner)
1350 (interfaces . (font-interface
1351 multi-measure-rest-interface
1352 percent-repeat-interface))))))
1354 (PercentRepeatCounter
1357 (font-encoding . fetaNumber)
1360 (self-alignment-X . ,CENTER)
1361 (staff-padding . 0.25)
1362 (stencil . ,ly:text-interface::print)
1363 (X-offset . ,(ly:make-simple-closure
1365 ,(ly:make-simple-closure
1366 (list ly:self-alignment-interface::x-centered-on-y-parent))
1367 ,(ly:make-simple-closure
1368 (list ly:self-alignment-interface::x-aligned-on-self)))))
1369 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1370 (meta . ((class . Spanner)
1371 (interfaces . (font-interface
1372 percent-repeat-interface
1373 self-alignment-interface
1374 side-position-interface
1375 text-interface))))))
1379 (control-points . ,ly:slur::calc-control-points)
1380 (cross-staff . ,ly:slur::calc-cross-staff)
1381 (details . ,default-slur-details)
1382 (direction . ,ly:slur::calc-direction)
1383 (height-limit . 2.0)
1384 (minimum-length . 1.5)
1386 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1387 (stencil . ,ly:slur::print)
1389 (Y-extent . ,ly:slur::height)
1390 (meta . ((class . Spanner)
1391 (interfaces . (slur-interface))))))
1393 ;; an example of a text spanner
1396 (bound-padding . 1.0)
1397 (bracket-flare . (0.5 . 0.5))
1399 (edge-height . (1.0 . 1.0))
1400 (shorten-pair . (0.0 . 0.0))
1401 (stencil . ,ly:piano-pedal-bracket::print)
1404 (meta . ((class . Spanner)
1405 (interfaces . (line-interface
1406 piano-pedal-bracket-interface
1407 piano-pedal-interface))))))
1412 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1414 (break-align-symbols . (staff-bar clef))
1415 (break-visibility . ,end-of-line-invisible)
1417 (extra-spacing-width . (+inf.0 . -inf.0))
1420 (outside-staff-priority . 1500)
1422 (self-alignment-X . ,CENTER)
1423 (stencil . ,ly:text-interface::print)
1424 (X-offset . ,(ly:make-simple-closure
1426 ,(ly:make-simple-closure
1427 (list ly:break-alignable-interface::self-align-callback))
1428 ,(ly:make-simple-closure
1429 (list ly:self-alignment-interface::x-aligned-on-self)))))
1430 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1431 (meta . ((class . Item)
1432 (interfaces . (break-alignable-interface
1435 self-alignment-interface
1436 side-position-interface
1437 text-interface))))))
1442 (stencil . ,ly:percent-repeat-item-interface::beat-slash)
1444 (meta . ((class . Item)
1445 (interfaces . (percent-repeat-interface
1446 percent-repeat-item-interface
1447 rhythmic-grob-interface))))))
1451 (control-points . ,ly:semi-tie::calc-control-points)
1452 (details . ((ratio . 0.333)
1453 (height-limit . 1.0)))
1454 (direction . ,ly:tie::calc-direction)
1455 (head-direction . ,RIGHT)
1456 (stencil . ,ly:tie::print)
1458 (meta . ((class . Item)
1459 (interfaces . (semi-tie-interface))))))
1463 (direction . ,ly:tie::calc-direction)
1464 (head-direction . ,ly:semi-tie-column::calc-head-direction)
1465 (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1468 (meta . ((class . Item)
1469 (interfaces . (semi-tie-column-interface))))))
1473 (cross-staff . ,ly:rest::calc-cross-staff)
1474 (duration-log . ,stem::calc-duration-log)
1475 (minimum-distance . 0.25)
1476 (stencil . ,ly:rest::print)
1477 (X-extent . ,ly:rest::width)
1478 (Y-extent . ,ly:rest::height)
1479 (Y-offset . ,ly:rest::y-offset-callback)
1480 (meta . ((class . Item)
1481 (interfaces . (font-interface
1483 rhythmic-grob-interface
1484 rhythmic-head-interface
1485 staff-symbol-referencer-interface))))))
1489 (minimum-distance . 0.75)
1490 (positioning-done . ,ly:rest-collision::calc-positioning-done)
1491 (meta . ((class . Item)
1492 (interfaces . (rest-collision-interface))))))
1497 (cross-staff . ,ly:script-interface::calc-cross-staff)
1498 (direction . ,ly:script-interface::calc-direction)
1499 (font-encoding . fetaMusic)
1500 (positioning-done . ,ly:script-interface::calc-positioning-done)
1503 ;; padding set in script definitions.
1504 (staff-padding . 0.25)
1506 (stencil . ,ly:script-interface::print)
1507 (X-offset . ,script-interface::calc-x-offset)
1508 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1509 (meta . ((class . Item)
1510 (interfaces . (font-interface
1512 side-position-interface))))))
1516 (before-line-breaking . ,ly:script-column::before-line-breaking)
1517 (meta . ((class . Item)
1518 (interfaces . (script-column-interface))))))
1522 (before-line-breaking . ,ly:script-column::row-before-line-breaking)
1523 (meta . ((class . Item)
1524 (interfaces . (script-column-interface))))))
1528 (avoid-slur . inside)
1529 (horizontal-skylines . ,ly:separation-item::calc-skylines)
1530 (stencil . ,ly:separation-item::print)
1531 (X-extent . ,ly:axis-group-interface::width)
1532 (Y-extent . ,ly:axis-group-interface::height)
1533 (meta . ((class . Item)
1534 (interfaces . (separation-item-interface))))))
1538 (avoid-slur . inside)
1539 (control-points . ,ly:slur::calc-control-points)
1540 (cross-staff . ,ly:slur::calc-cross-staff)
1541 (details . ,default-slur-details)
1542 (direction . ,ly:slur::calc-direction)
1543 (height-limit . 2.0)
1544 (line-thickness . 0.8)
1545 (minimum-length . 1.5)
1547 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1548 (stencil . ,ly:slur::print)
1550 (Y-extent . ,ly:slur::height)
1551 (meta . ((class . Spanner)
1552 (interfaces . (slur-interface))))))
1556 (direction . ,RIGHT)
1557 (extra-spacing-width . (+inf.0 . -inf.0))
1558 (font-shape . italic)
1559 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
1560 (self-alignment-X . ,CENTER)
1561 (stencil . ,ly:text-interface::print)
1562 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1563 (meta . ((class . Item)
1564 (interfaces . (font-interface
1565 piano-pedal-script-interface
1566 self-alignment-interface
1567 text-interface))))))
1569 (SostenutoPedalLineSpanner
1573 (minimum-space . 1.0)
1574 (outside-staff-priority . 1000)
1577 (staff-padding . 1.0)
1578 (X-extent . ,ly:axis-group-interface::width)
1579 (Y-extent . ,ly:axis-group-interface::height)
1580 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1581 (meta . ((class . Spanner)
1582 (interfaces . (axis-group-interface
1583 piano-pedal-interface
1584 side-position-interface))))))
1588 (average-spacing-wishes . #t)
1589 (base-shortest-duration . ,(ly:make-moment 3 16))
1590 (common-shortest-duration . ,ly:spacing-spanner::calc-common-shortest-duration)
1591 (shortest-duration-space . 2.0)
1592 (spacing-increment . 1.2)
1593 (springs-and-rods . ,ly:spacing-spanner::set-springs)
1594 (meta . ((class . Spanner)
1595 (interfaces . (spacing-options-interface
1596 spacing-spanner-interface))))))
1600 (allow-span-bar . #t)
1601 (bar-extent . ,ly:axis-group-interface::height)
1602 (bar-size . ,ly:span-bar::calc-bar-size)
1603 (before-line-breaking . ,ly:span-bar::before-line-breaking)
1604 (break-align-symbol . staff-bar)
1606 (glyph-name . ,ly:span-bar::calc-glyph-name)
1608 ;; ugh duplication! (these 4 properties were copied from Barline)
1610 ;; Ross. page 151 lists other values, we opt for a leaner look
1614 (hair-thickness . 1.6)
1615 (thick-thickness . 6.0)
1619 (stencil . ,ly:span-bar::print)
1620 (X-extent . ,ly:span-bar::width)
1621 (Y-extent . ,ly:axis-group-interface::height)
1622 (meta . ((class . Item)
1623 (interfaces . (bar-line-interface
1625 span-bar-interface))))))
1629 (between-staff-spacing . ((space . 9)
1630 (minimum-distance . 7)
1632 (after-last-staff-spacing . ((space . 10.5)
1633 (minimum-distance . 8)
1635 (meta . ((class . Spanner)
1636 (interfaces . (staff-grouper-interface))))))
1641 (stem-spacing-correction . 0.4)
1642 (meta . ((class . Item)
1643 (interfaces . (spacing-interface
1644 staff-spacing-interface))))))
1649 (ledger-line-thickness . (1.0 . 0.1))
1651 (stencil . ,ly:staff-symbol::print)
1652 (Y-extent . ,ly:staff-symbol::height)
1653 (meta . ((class . Spanner)
1654 (interfaces . (staff-symbol-interface))))))
1659 (font-series . bold)
1662 (stencil . ,ly:text-interface::print)
1663 (X-offset . ,ly:side-position-interface::x-aligned-side)
1664 (meta . ((class . Item)
1665 (interfaces . (font-interface
1666 side-position-interface
1667 stanza-number-interface
1668 text-interface))))))
1672 (beamlet-default-length . (1.1 . 1.1))
1673 (beamlet-max-length-proportion . (0.75 . 0.75))
1674 (cross-staff . ,ly:stem::calc-cross-staff)
1675 (default-direction . ,ly:stem::calc-default-direction)
1678 ;; 3.5 (or 3 measured from note head) is standard length
1679 ;; 32nd, 64th, 128th flagged stems should be longer
1680 (lengths . (3.5 3.5 3.5 4.5 5.0 6.0))
1682 ;; FIXME. 3.5 yields too long beams (according to Ross and
1683 ;; looking at Baerenreiter examples) for a number of common
1684 ;; boundary cases. Subtracting half a beam thickness fixes
1685 ;; this, but the bug may well be somewhere else.
1687 ;; FIXME this should come from 'lengths
1688 (beamed-lengths . (3.26 3.5 3.6))
1690 ;; The 'normal' minima
1691 (beamed-minimum-free-lengths . (1.83 1.5 1.25))
1692 ;(beamed-minimum-free-lengths . (2.0 1.83 1.25))
1694 ;; The 'extreme case' minima
1695 (beamed-extreme-minimum-free-lengths . (2.0 1.25))
1697 ;; Stems in unnatural (forced) direction should be shortened by
1698 ;; one staff space, according to [Roush & Gourlay].
1699 ;; Flagged stems we shorten only half a staff space.
1700 (stem-shorten . (1.0 0.5))
1704 ;; We use the normal minima as minimum for the ideal lengths,
1705 ;; and the extreme minima as abolute minimum length.
1707 (direction . ,ly:stem::calc-direction)
1708 (duration-log . ,stem::calc-duration-log)
1709 (flag . ,ly:stem::calc-flag)
1710 (length . ,ly:stem::calc-length)
1711 (neutral-direction . ,DOWN)
1712 (positioning-done . ,ly:stem::calc-positioning-done)
1713 (stem-end-position . ,ly:stem::calc-stem-end-position)
1714 (stem-info . ,ly:stem::calc-stem-info)
1715 (stencil . ,ly:stem::print)
1717 (X-extent . ,ly:stem::width)
1718 (X-offset . ,ly:stem::offset-callback)
1719 (Y-extent . ,ly:stem::height)
1720 (Y-offset . ,ly:staff-symbol-referencer::callback)
1721 (meta . ((class . Item)
1722 (interfaces . (font-interface
1723 stem-interface))))))
1727 (beam-thickness . 0.48) ; staff-space
1728 (beam-width . ,ly:stem-tremolo::calc-width) ; staff-space
1729 (slope . ,ly:stem-tremolo::calc-slope)
1730 (stencil . ,ly:stem-tremolo::print)
1731 (style . ,ly:stem-tremolo::calc-style)
1732 (X-extent . ,ly:stem-tremolo::width)
1733 (Y-extent . ,ly:stem-tremolo::height)
1734 (meta . ((class . Item)
1735 (interfaces . (stem-tremolo-interface))))))
1739 (avoid-slur . around)
1740 (font-encoding . fetaNumber)
1741 (font-size . -5) ; don't overlap when next to heads.
1743 (script-priority . 100)
1744 (self-alignment-X . ,CENTER)
1745 (self-alignment-Y . ,CENTER)
1746 (staff-padding . 0.5)
1747 (stencil . ,print-circled-text-callback)
1748 (text . ,string-number::calc-text)
1749 (meta . ((class . Item)
1750 (interfaces . (font-interface
1751 self-alignment-interface
1752 side-position-interface
1753 string-number-interface
1755 text-script-interface))))))
1759 (digit-names . #("p" "i" "m" "a" "x"))
1760 (font-shape . italic)
1761 (font-size . -4) ; don't overlap when next to heads.
1763 (script-priority . 100)
1764 (self-alignment-X . ,CENTER)
1765 (self-alignment-Y . ,CENTER)
1766 (staff-padding . 0.5)
1767 (stencil . ,ly:text-interface::print)
1768 (text . ,stroke-finger::calc-text)
1769 (meta . ((class . Item)
1770 (interfaces . (font-interface
1771 self-alignment-interface
1772 side-position-interface
1773 stroke-finger-interface
1775 text-script-interface))))))
1779 (direction . ,RIGHT)
1780 (extra-spacing-width . (+inf.0 . -inf.0))
1781 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
1782 (self-alignment-X . ,CENTER)
1783 (stencil . ,ly:sustain-pedal::print)
1784 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1785 (meta . ((class . Item)
1786 (interfaces . (font-interface
1787 piano-pedal-interface
1788 piano-pedal-script-interface
1789 self-alignment-interface
1790 text-interface))))))
1792 (SustainPedalLineSpanner
1796 (minimum-space . 1.0)
1797 (outside-staff-priority . 1000)
1800 (staff-padding . 1.2)
1801 (X-extent . ,ly:axis-group-interface::width)
1802 (Y-extent . ,ly:axis-group-interface::height)
1803 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1804 (meta . ((class . Spanner)
1805 (interfaces . (axis-group-interface
1806 piano-pedal-interface
1807 side-position-interface))))))
1812 (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
1813 (X-extent . ,ly:axis-group-interface::width)
1814 (Y-extent . ,ly:axis-group-interface::height)
1815 (meta . ((class . System)
1816 (interfaces . (axis-group-interface
1817 system-interface))))))
1821 (collapse-height . 5.0)
1825 (padding . -0.1) ;; bar must cover rounded ending of staff line.
1826 (stencil . ,ly:system-start-delimiter::print)
1829 (X-offset . ,ly:side-position-interface::x-aligned-side)
1831 (meta . ((class . Spanner)
1832 (interfaces . (side-position-interface
1833 system-start-delimiter-interface))))))
1837 (collapse-height . 5.0)
1839 (font-encoding . fetaBraces)
1841 (stencil . ,ly:system-start-delimiter::print)
1843 (X-offset . ,ly:side-position-interface::x-aligned-side)
1845 (meta . ((class . Spanner)
1846 (interfaces . (font-interface
1847 side-position-interface
1848 system-start-delimiter-interface))))))
1852 (collapse-height . 5.0)
1855 (stencil . ,ly:system-start-delimiter::print)
1858 (X-offset . ,ly:side-position-interface::x-aligned-side)
1860 (meta . ((class . Spanner)
1861 (interfaces . (font-interface
1862 side-position-interface
1863 system-start-delimiter-interface))))))
1868 (stencil . ,ly:system-start-delimiter::print)
1869 (style . line-bracket)
1871 (X-offset . ,ly:side-position-interface::x-aligned-side)
1873 (meta . ((class . Spanner)
1874 (interfaces . (font-interface
1875 side-position-interface
1876 system-start-delimiter-interface))))))
1881 (details . ((tied-properties . ((break-visibility . ,begin-of-line-visible)
1882 (parenthesize . #t)))
1883 (repeat-tied-properties . ((note-head-visible . #t)
1884 (parenthesize . #t)))))
1885 (direction . ,CENTER)
1886 (duration-log . ,note-head::calc-duration-log)
1887 (font-series . bold)
1889 (stem-attachment . (0.0 . 1.35))
1890 (stencil . ,ly:text-interface::print)
1892 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1893 (Y-offset . ,ly:staff-symbol-referencer::callback)
1894 (meta . ((class . Item)
1895 (interfaces . (font-interface
1897 rhythmic-grob-interface
1898 rhythmic-head-interface
1899 staff-symbol-referencer-interface
1900 tab-note-head-interface
1901 text-interface))))))
1905 (avoid-slur . around)
1906 (cross-staff . ,ly:script-interface::calc-cross-staff)
1908 (direction . ,ly:script-interface::calc-direction)
1909 (extra-spacing-width . (+inf.0 . -inf.0))
1910 (outside-staff-priority . 450)
1912 ;; sync with Fingering ?
1915 (positioning-done . ,ly:script-interface::calc-positioning-done)
1916 (script-priority . 200)
1918 (slur-padding . 0.5)
1919 (staff-padding . 0.5)
1920 (stencil . ,ly:text-interface::print)
1921 ;; todo: add X self alignment?
1922 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1923 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1924 (meta . ((class . Item)
1925 (interfaces . (font-interface
1926 instrument-specific-markup-interface
1927 self-alignment-interface
1928 side-position-interface
1930 text-script-interface))))))
1934 (bound-details . ((left . ((Y . 0)
1936 (attach-dir . ,LEFT)
1938 (left-broken . ((end-on-note . #t)))
1943 (dash-fraction . 0.2)
1946 (font-shape . italic)
1947 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
1948 (outside-staff-priority . 350)
1949 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
1951 (staff-padding . 0.8)
1952 (stencil . ,ly:line-spanner::print)
1953 (style . dashed-line)
1954 (Y-offset . ,ly:side-position-interface::y-aligned-side)
1956 (meta . ((class . Spanner)
1957 (interfaces . (font-interface
1959 line-spanner-interface
1960 side-position-interface))))))
1964 (avoid-slur . inside)
1965 (control-points . ,ly:tie::calc-control-points)
1967 ;; for a full list, see tie-details.cc
1969 (center-staff-line-clearance . 0.6)
1970 (tip-staff-line-clearance . 0.45)
1971 (note-head-gap . 0.2)
1973 (height-limit . 1.0)
1974 (horizontal-distance-penalty-factor . 10)
1975 (same-dir-as-stem-penalty . 8)
1976 (min-length-penalty-factor . 26)
1977 (tie-tie-collision-distance . 0.45)
1978 (tie-tie-collision-penalty . 25.0)
1979 (intra-space-threshold . 1.25)
1980 (outer-tie-vertical-distance-symmetry-penalty-factor . 10)
1981 (outer-tie-length-symmetry-penalty-factor . 10)
1982 (vertical-distance-penalty-factor . 7)
1983 (outer-tie-vertical-gap . 0.25)
1984 (multi-tie-region-size . 3)
1985 (single-tie-region-size . 4)
1986 (between-length-limit . 1.0)))
1988 (direction . ,ly:tie::calc-direction)
1990 (line-thickness . 0.8)
1991 (neutral-direction . ,UP)
1992 (springs-and-rods . ,ly:spanner::set-spacing-rods)
1993 (stencil . ,ly:tie::print)
1995 (meta . ((class . Spanner)
1996 (interfaces . (tie-interface))))))
2000 (before-line-breaking . ,ly:tie-column::before-line-breaking)
2001 (positioning-done . ,ly:tie-column::calc-positioning-done)
2004 (meta . ((class . Spanner)
2005 (interfaces . (tie-column-interface))))))
2009 (avoid-slur . inside)
2011 . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
2012 (break-align-symbol . time-signature)
2013 (break-visibility . ,all-visible)
2014 (extra-spacing-height . (-1.0 . 1.0))
2017 (first-note . (fixed-space . 2.0))
2018 (right-edge . (extra-space . 0.5))
2019 (staff-bar . (minimum-space . 2.0))))
2020 (stencil . ,ly:time-signature::print)
2022 (meta . ((class . Item)
2023 (interfaces . (break-aligned-interface
2025 time-signature-interface))))))
2027 (TrillPitchAccidental
2031 (glyph-name-alist . ,standard-alteration-glyph-name-alist)
2034 (stencil . ,ly:accidental-interface::print)
2035 (X-offset . ,ly:side-position-interface::x-aligned-side)
2036 (Y-extent . ,ly:accidental-interface::height)
2037 (meta . ((class . Item)
2038 (interfaces . (accidental-interface
2040 side-position-interface
2041 trill-pitch-accidental-interface))))))
2046 (direction . ,RIGHT)
2050 (stencil . ,parenthesize-elements)
2051 (stencils . ,parentheses-item::calc-parenthesis-stencils)
2052 (X-offset . ,ly:side-position-interface::x-aligned-side)
2053 (meta . ((class . Item)
2054 (interfaces . (axis-group-interface
2057 parentheses-interface
2058 side-position-interface))))))
2064 (stencil . ,ly:note-head::print)
2065 (Y-offset . ,ly:staff-symbol-referencer::callback)
2066 (meta . ((class . Item)
2067 (interfaces . (font-interface
2069 pitched-trill-interface
2070 rhythmic-head-interface
2071 staff-symbol-referencer-interface))))))
2075 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2076 (bound-details . ((left . ((text . ,(make-translate-scaled-markup
2078 (make-musicglyph-markup "scripts.trill")))
2080 (stencil-offset . (-0.5 . 0))
2082 (attach-dir . ,CENTER)
2083 ;; this isn't CENTER because the trill glyph's origin
2084 ;; is not centered in its extent; to have the trill
2085 ;; spanner aligned the same as a trill, we need a slight offset
2086 (anchor-alignment . 0.15)
2088 (left-broken . ((end-on-note . #t)))
2092 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2093 (outside-staff-priority . 50)
2095 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2097 (staff-padding . 1.0)
2098 (stencil . ,ly:line-spanner::print)
2100 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2101 (meta . ((class . Spanner)
2102 (interfaces . (font-interface
2104 line-spanner-interface
2105 side-position-interface
2106 trill-spanner-interface))))))
2110 (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
2111 (control-points . ,ly:tuplet-bracket::calc-control-points)
2112 (cross-staff . ,ly:tuplet-bracket::calc-cross-staff)
2113 (direction . ,ly:tuplet-bracket::calc-direction)
2114 (edge-height . (0.7 . 0.7))
2115 (full-length-to-extent . #t)
2117 (positions . ,ly:tuplet-bracket::calc-positions)
2118 (shorten-pair . (-0.2 . -0.2))
2119 (staff-padding . 0.25)
2120 (stencil . ,ly:tuplet-bracket::print)
2123 (meta . ((class . Spanner)
2124 (interfaces . (line-interface
2125 tuplet-bracket-interface))))))
2129 (avoid-slur . inside)
2130 (cross-staff . ,ly:tuplet-number::calc-cross-staff)
2131 (font-shape . italic)
2133 (stencil . ,ly:tuplet-number::print)
2134 (text . ,tuplet-number::calc-denominator-text)
2135 (meta . ((class . Spanner)
2136 (interfaces . (font-interface
2138 tuplet-number-interface))))))
2143 (direction . ,RIGHT)
2144 (extra-spacing-width . (+inf.0 . -inf.0))
2145 (font-shape . italic)
2146 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
2147 (self-alignment-X . ,CENTER)
2148 (stencil . ,ly:text-interface::print)
2149 (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2150 (meta . ((class . Item)
2151 (interfaces . (font-interface
2152 piano-pedal-script-interface
2153 self-alignment-interface
2154 text-interface))))))
2156 (UnaCordaPedalLineSpanner
2160 (minimum-space . 1.0)
2161 (outside-staff-priority . 1000)
2164 (staff-padding . 1.2)
2165 (X-extent . ,ly:axis-group-interface::width)
2166 (Y-extent . ,ly:axis-group-interface::height)
2167 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2168 (meta . ((class . Spanner)
2169 (interfaces . (axis-group-interface
2170 piano-pedal-interface
2171 side-position-interface))))))
2177 (stencil . ,ly:vaticana-ligature::print)
2179 (meta . ((class . Spanner)
2180 (interfaces . (font-interface
2181 vaticana-ligature-interface))))))
2186 (positioning-done . ,ly:align-interface::align-to-ideal-distances)
2188 (vertical-skylines . ,ly:axis-group-interface::combine-skylines)
2189 (X-extent . ,ly:axis-group-interface::width)
2190 (Y-extent . ,ly:axis-group-interface::height)
2191 (meta . ((class . Spanner)
2192 (object-callbacks . ((Y-common . ,ly:axis-group-interface::calc-y-common)))
2193 (interfaces . (align-interface
2194 axis-group-interface))))))
2198 (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2200 (default-next-staff-spacing . ((space . 9)
2201 (minimum-distance . 8)
2203 (next-staff-spacing . ,ly:axis-group-interface::calc-next-staff-spacing)
2204 (non-affinity-spacing . ((padding . 0.5)))
2205 (stencil . ,ly:axis-group-interface::print)
2206 (vertical-skylines . ,ly:hara-kiri-group-spanner::calc-skylines)
2207 (X-extent . ,ly:axis-group-interface::width)
2208 (Y-extent . ,ly:hara-kiri-group-spanner::y-extent)
2209 (Y-offset . ,ly:hara-kiri-group-spanner::force-hara-kiri-callback)
2210 (meta . ((class . Spanner)
2211 (object-callbacks . ((X-common . ,ly:axis-group-interface::calc-x-common)))
2212 (interfaces . (axis-group-interface
2213 hara-kiri-group-spanner-interface
2214 vertically-spaceable-interface))))))
2218 (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2219 (bound-details . ((right . ((attach-dir . ,CENTER)
2222 (left . ((attach-dir . ,CENTER)
2227 (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2229 (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2230 (stencil . ,ly:line-spanner::print)
2234 (meta . ((class . Spanner)
2235 (interfaces . (line-interface
2236 line-spanner-interface))))))
2241 (edge-height . (2.0 . 2.0)) ;; staff-space;
2242 (font-encoding . fetaNumber)
2244 (stencil . ,ly:volta-bracket-interface::print)
2245 (thickness . 1.6) ;; line-thickness
2247 (meta . ((class . Spanner)
2248 (interfaces . (font-interface
2249 horizontal-bracket-interface
2251 side-position-interface
2253 volta-bracket-interface
2254 volta-interface))))))
2256 (VoltaBracketSpanner
2258 (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
2262 (outside-staff-priority . 600)
2265 (X-extent . ,ly:axis-group-interface::width)
2266 (Y-extent . ,ly:axis-group-interface::height)
2267 (Y-offset . ,ly:side-position-interface::y-aligned-side)
2268 (meta . ((class . Spanner)
2269 (interfaces . (axis-group-interface
2270 side-position-interface
2271 volta-interface))))))
2275 (define (completize-grob-entry x)
2276 "Transplant assoc key into 'name entry of 'meta of X. Set interfaces for Item, Spanner etc.
2278 ;; (display (car x))
2280 (let* ((name-sym (car x))
2281 (grob-entry (cdr x))
2282 (meta-entry (assoc-get 'meta grob-entry))
2283 (class (assoc-get 'class meta-entry))
2285 (assoc-get 'interfaces meta-entry)))
2289 (set! ifaces-entry (cons 'item-interface ifaces-entry)))
2290 ((eq? 'Spanner class)
2291 (set! ifaces-entry (cons 'spanner-interface ifaces-entry)))
2292 ((eq? 'Paper_column class)
2293 (set! ifaces-entry (cons 'item-interface
2294 (cons 'paper-column-interface ifaces-entry))))
2295 ((eq? 'System class)
2296 (set! ifaces-entry (cons 'system-interface
2297 (cons 'spanner-interface ifaces-entry))))
2299 (ly:warning "Unknown class ~a" class)))
2301 (set! ifaces-entry (uniq-list (sort ifaces-entry symbol<?)))
2302 (set! ifaces-entry (cons 'grob-interface ifaces-entry))
2304 (set! meta-entry (assoc-set! meta-entry 'name name-sym))
2305 (set! meta-entry (assoc-set! meta-entry 'interfaces
2307 (set! grob-entry (assoc-set! grob-entry 'meta meta-entry))
2308 (cons name-sym grob-entry)))
2310 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
2312 ;; (display (map pair? all-grob-descriptions))
2314 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
2317 ;; (display (car x)) (newline)
2319 (set-object-property! (car x) 'translation-type? list?)
2320 (set-object-property! (car x) 'is-grob? #t))
2321 all-grob-descriptions)
2323 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))
2325 (define (volta-bracket-interface::pure-height grob start end)
2326 (let ((edge-height (ly:grob-property grob 'edge-height)))
2327 (if (number-pair? edge-height)
2328 (let ((smaller (min (car edge-height) (cdr edge-height)))
2329 (larger (max (car edge-height) (cdr edge-height))))
2330 (interval-union '(0 . 0) (cons smaller larger)))
2333 (define pure-print-callbacks
2335 fret-board::calc-stencil
2336 note-head::brew-ez-stencil
2337 print-circled-text-callback
2340 ly:mensural-ligature::brew-ligature-primitive
2344 ly:text-interface::print
2345 ly:script-interface::print))
2347 ;; Sometimes we have grobs with (Y-extent . ,ly:grob::stencil-height)
2348 ;; and the print function is not pure, but there is a easy way to
2349 ;; figure out the Y-extent from the print function.
2350 (define pure-print-to-height-conversions
2352 (,ly:arpeggio::print . ,ly:arpeggio::pure-height)
2353 (,ly:arpeggio::brew-chord-bracket . ,ly:arpeggio::pure-height)
2354 (,ly:hairpin::print . ,ly:hairpin::pure-height)
2355 (,ly:volta-bracket-interface::print . ,volta-bracket-interface::pure-height)))
2357 ;; ly:grob::stencil-extent is safe if the print callback is safe too
2358 (define (pure-stencil-height grob start stop)
2359 (let* ((sten (ly:grob-property-data grob 'stencil))
2360 (pure-height-callback (assoc-get sten pure-print-to-height-conversions)))
2363 (memq sten pure-print-callbacks))
2364 (ly:grob::stencil-height grob))
2365 ((procedure? pure-height-callback)
2366 (pure-height-callback grob start stop))
2370 (define pure-conversions-alist
2372 (,ly:accidental-interface::height . ,ly:accidental-interface::pure-height)
2373 (,ly:slur::outside-slur-callback . ,ly:slur::pure-outside-slur-callback)
2374 (,ly:stem::height . ,ly:stem::pure-height)
2375 (,ly:rest::height . ,ly:rest::pure-height)
2376 (,ly:grob::stencil-height . ,pure-stencil-height)
2377 (,ly:self-alignment-interface::y-aligned-on-self . ,ly:self-alignment-interface::pure-y-aligned-on-self)
2378 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)
2379 (,ly:axis-group-interface::height . ,ly:axis-group-interface::pure-height)
2380 (,ly:hara-kiri-group-spanner::y-extent . ,ly:hara-kiri-group-spanner::pure-height)
2381 (,ly:slur::height . ,ly:slur::pure-height)
2382 (,ly:side-position-interface::y-aligned-side . ,ly:side-position-interface::pure-y-aligned-side)))
2384 (define pure-functions
2386 parenthesize-elements
2387 ly:rest::y-offset-callback
2388 ly:staff-symbol-referencer::callback
2389 ly:staff-symbol::height))
2391 (define-public (pure-relevant? grob)
2392 (let ((extent-callback (ly:grob-property-data grob 'Y-extent)))
2395 (pair? extent-callback)
2396 (memq extent-callback pure-functions)
2398 (pair? (assq extent-callback pure-conversions-alist))
2399 (let ((stencil (ly:grob-property-data grob 'stencil)))
2401 (not (eq? extent-callback ly:grob::stencil-height))
2402 (memq stencil pure-print-callbacks)
2403 (assq stencil pure-print-to-height-conversions)
2404 (ly:stencil? stencil)))))))))
2406 (define-public (call-pure-function unpure args start end)
2407 (if (ly:simple-closure? unpure)
2408 (ly:eval-simple-closure (car args) unpure start end)
2409 (if (not (procedure? unpure))
2411 (if (memq unpure pure-functions)
2413 (let ((pure (assq unpure pure-conversions-alist)))
2417 (list (car args) start end)