1 ;;;; define-grobs.scm --
3 ;;;; source file of the GNU LilyPond music typesetter
5 ;;;; (c) 1998--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
6 ;;;; Jan Nieuwenhuizen <janneke@gnu.org>
8 ;;;; distances are given in linethickness (thicknesses) and
9 ;;;; staffspace (distances)
11 ;;;; WARNING: the meta field should be the last one.
12 ;;;; WARNING: don't use anonymous functions for initialization.
14 ;; TODO: junk the meta field in favor of something more compact?
16 ;;; todo:: reorder sensibly.
18 (define-public all-grob-descriptions
23 (cautionary-style . parentheses)
24 (callbacks . ((stencil . ,Accidental_interface::print)
25 (after-line-breaking . ,Accidental_interface::after_line_breaking)))
27 (meta . ((class . Item)
28 (interfaces . (accidental-interface
34 (callbacks . ((stencil . ,Accidental_interface::print)))
35 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent
36 ,Self_alignment_interface::aligned_on_self))
37 (self-alignment-X . ,CENTER)
39 (cautionary-style . smaller)
40 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
41 (cautionary-style . parentheses)
43 (staff-padding . 0.25)
45 (meta . ((class . Item)
46 (interfaces . (side-position-interface
49 accidental-suggestion-interface
50 self-alignment-interface
53 . ((X-extent-callback . ,Axis_group_interface::group_extent_callback)
55 (callbacks . ((positioning-done . ,Accidental_placement::calc_positioning_done)
57 ;; this is quite small, but it is very ugly to have
58 ;; accs closer to the previous note than to the next one.
59 (right-padding . 0.15)
60 (meta . ((class . Item)
61 (interfaces . (accidental-placement-interface))))))
65 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
66 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
68 (clef . (extra-space . 0.5))
69 (key-signature . (extra-space . 0.0))
70 (staff-bar . (extra-space . 0.0))
71 (time-signature . (extra-space . 0.0))
72 (first-note . (fixed-space . 0.0))))
74 (break-align-symbol . ambitus)
75 (break-visibility . ,begin-of-line-visible)
76 (meta . ((class . Item)
77 (interfaces . (axis-group-interface
78 break-aligned-interface
79 ambitus-interface))))))
83 (callbacks . ( (stencil . ,Ambitus::print)))
86 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent))
88 (meta . ((class . Item)
89 (interfaces . (ambitus-interface
90 staff-symbol-referencer-interface
96 (X-offset-callbacks . (,Side_position_interface::aligned_side))
98 (cautionary-style . parentheses)
99 (callbacks . ((stencil . ,Accidental_interface::print)
100 (after-line-breaking . ,Accidental_interface::after_line_breaking)
102 (meta . ((class . Item)
103 (interfaces . (item-interface
105 break-aligned-interface
106 side-position-interface
112 (callbacks . ((stencil . ,Note_head::print)
113 (glyph-name . ,note-head::calc-glyph-name)
115 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
116 (meta . ((class . Item)
117 (interfaces . (font-interface
120 staff-symbol-referencer-interface
121 rhythmic-head-interface
122 ledgered-interface))))))
126 (X-extent-callback . ,Arpeggio::width_callback)
127 (callbacks . ( (stencil . ,Arpeggio::print)))
128 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
129 (X-offset-callbacks . (,Side_position_interface::aligned_side))
132 (staff-position . 0.0)
133 (meta . ((class . Item)
134 (interfaces . (arpeggio-interface
135 staff-symbol-referencer-interface
136 side-position-interface
141 (break-align-symbol . staff-bar)
144 (break-visibility . ,all-visible)
146 (callbacks . ((stencil . ,Bar_line::print)
147 (glyph-name . ,bar-line::calc-glyph-name)
148 (bar-size . ,Bar_line::calc_bar_size)
151 (time-signature . (extra-space . 0.75))
152 (custos . (minimum-space . 2.0))
153 (clef . (minimum-space . 1.0))
154 (key-signature . (extra-space . 1.0))
155 (key-cancellation . (extra-space . 1.0))
156 (first-note . (fixed-space . 1.3))
157 (next-note . (semi-fixed-space . 1.3))
158 (right-edge . (extra-space . 0.0))))
161 ;; Ross. page 151 lists other values, we opt for a leaner look
164 ;; kern should scale with linethickness too.
167 (hair-thickness . 1.9)
168 (thick-thickness . 6.0)
169 (meta . ((class . Item)
170 (interfaces . (bar-line-interface
171 break-aligned-interface
176 (callbacks . ((stencil . ,Text_interface::print)))
178 (break-visibility . ,begin-of-line-visible)
181 (font-family . roman)
183 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
184 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
185 (self-alignment-X . 1)
189 (interfaces . (side-position-interface
191 self-alignment-interface
193 break-aligned-interface))))
198 (callbacks . ((stencil . ,Text_interface::print)))
199 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
201 (font-family . number)
203 ;; We must do this, other BFs in
204 ;; layout16 become too small.
207 (meta . ((class . Item)
208 (interfaces . (text-interface
209 rhythmic-grob-interface
210 bass-figure-interface
211 self-alignment-interface
216 (callbacks . ( (stencil . ,Text_interface::print)))
217 (meta . ((class . Item)
218 (interfaces . (text-interface
219 rhythmic-grob-interface
220 bass-figure-interface
223 . ((callbacks . ((stencil . ,Enclosing_bracket::print)))
224 (edge-height . (0.2 . 0.2))
225 (meta . ((class . Item)
226 (interfaces . (enclosing-bracket-interface)) ))
228 (BassFigureContinuation
230 (callbacks . ( (stencil . ,Figured_bass_continuation::print)))
231 (Y-offset-callbacks . (,Figured_bass_continuation::center_on_figures))
232 (meta . ((class . Spanner)
233 (interfaces . (figured-bass-continuation-interface))
238 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
239 (meta . ((class . Spanner)
240 (interfaces . (axis-group-interface
246 (threshold . (2 . 1000))
247 (callbacks . ((positioning-done . ,Align_interface::calc_positioning_done)
249 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
251 (meta . ((class . Spanner)
252 (interfaces . (align-interface
253 axis-group-interface))))))
257 ;; todo: clean this up a bit: the list is getting
260 (position-callbacks . (,Beam::least_squares
263 ,Beam::shift_region_to_valid
265 (callbacks . ((positions . ,Beam::calc_positions)
266 (direction . ,Beam::calc_direction)
267 (stencil . ,Beam::print)
270 ;; TODO: should be in SLT.
271 (thickness . 0.48) ; in staff-space
272 (neutral-direction . -1)
274 ;; Whe have some unreferenced problems here.
276 ;; If we shorten beamed stems less than normal stems (1 staffspace),
277 ;; or high order less than 8th beams, patterns like
278 ;; c''4 [c''8 c''] c''4 [c''16 c]
279 ;; are ugly (different stem lengths).
281 ;; But if we shorten 16th beams as much as 8th beams, a single
282 ;; forced 16th beam looks *very* short.
284 ;; We choose to shorten 8th beams the same as single stems,
285 ;; and high order beams less than 8th beams, so that all
286 ;; isolated shortened beams look nice and a bit shortened,
287 ;; sadly possibly breaking patterns with high order beams.
288 (beamed-stem-shorten . (1.0 0.5 0.25))
290 (auto-knee-gap . 5.5)
292 ;; only for debugging.
293 (font-family . roman)
294 (meta . ((class . Spanner)
295 (interfaces . (staff-symbol-referencer-interface
302 (callbacks . ((positioning-done . ,Break_align_interface::calc_positioning_done)
304 (break-align-orders . ;; end of line
326 time-signature custos)
340 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
341 (meta . ((class . Item)
342 (interfaces . (break-alignment-interface
343 axis-group-interface))))))
348 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
349 (meta . ((class . Item)
350 (interfaces . (break-aligned-interface
351 axis-group-interface))))))
355 (break-align-symbol . breathing-sign)
358 (ambitus . (extra-space . 2.0))
359 (custos . (minimum-space . 1.0))
360 (key-signature . (minimum-space . 1.5))
361 (staff-bar . (minimum-space . 1.5))
362 (clef . (minimum-space . 2.0))
363 (first-note . (fixed-space . 1.0)) ;huh?
364 (right-edge . (extra-space . 0.1))))
365 (callbacks . ((stencil . ,Text_interface::print)))
366 (text . ,(make-musicglyph-markup "scripts.rcomma"))
367 (Y-offset-callbacks . (,Breathing_sign::offset_callback))
368 (break-visibility . ,begin-of-line-invisible)
369 (meta . ((class . Item)
370 (interfaces . (break-aligned-interface
371 breathing-sign-interface
377 (callbacks . ((stencil . ,Clef::print)
378 (glyph-name . ,Clef::calc_glyph_name)
381 (font-family . music)
382 (break-align-symbol . clef)
383 (break-visibility . ,begin-of-line-visible)
384 (space-alist . ((ambitus . (extra-space . 2.0))
385 (staff-bar . (extra-space . 0.7))
386 (key-cancellation . (minimum-space . 4.0))
387 (key-signature . (minimum-space . 4.0))
388 (time-signature . (minimum-space . 4.2))
389 (first-note . (minimum-fixed-space . 5.0))
390 (next-note . (extra-space . 0.5))
391 (right-edge . (extra-space . 0.5))))
392 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
393 (meta . ((class . Item)
394 (interfaces . (clef-interface
395 staff-symbol-referencer-interface
397 break-aligned-interface))))))
399 (ClusterSpannerBeacon
401 (Y-extent-callback . ,Cluster_beacon::height)
402 (meta . ((class . Item)
403 (interfaces . (cluster-beacon-interface))))))
407 (callbacks . ((springs-and-rods . ,Spanner::set_spacing_rods)
408 (stencil . ,Cluster::print)))
410 (minimum-length . 0.0)
413 (meta . ((class . Spanner)
414 (interfaces . (cluster-interface))))))
418 (callbacks . ((stencil . ,Text_interface::print)
419 (after-line-breaking . ,Chord_name::after_line_breaking)
424 (meta . ((class . Item)
425 (interfaces . (font-interface
426 rhythmic-grob-interface
433 (callbacks . ((stencil . ,Text_interface::print)))
434 (no-spacing-rods . #t)
435 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
436 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
439 (staff-padding . 0.5)
440 (script-priority . 200)
441 ;; todo: add X self alignment?
444 (meta . ((class . Item)
445 (interfaces . (text-script-interface
447 side-position-interface
452 (break-align-symbol . custos)
454 (callbacks . ((stencil . ,Custos::print)))
455 (break-visibility . ,end-of-line-visible)
457 (neutral-direction . -1)
458 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
460 (first-note . (minimum-fixed-space . 0.0))
461 (right-edge . (extra-space . 0.1))))
462 (meta . ((class . Item)
465 staff-symbol-referencer-interface
467 break-aligned-interface))))))
473 (callbacks . ((positioning-done . ,Dot_column::calc_positioning_done)
475 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
476 (X-offset-callbacks . (,Dot_column::side_position))
477 (meta . ((class . Item)
478 (interfaces . (dot-column-interface
479 axis-group-interface))))))
483 (callbacks . ((stencil . ,Dots::print)))
485 (meta . ((class . Item)
486 (interfaces . (font-interface
487 staff-symbol-referencer-interface
492 (callbacks . ((stencil . ,Percent_repeat_item_interface::double_percent)))
495 (font-encoding . fetaMusic)
498 (break-align-symbol . staff-bar)
499 (break-visibility . ,begin-of-line-invisible)
500 (meta . ((class . Item)
501 (interfaces . (font-interface
502 break-aligned-interface
503 percent-repeat-interface))))))
505 (DoublePercentRepeatCounter
507 (callbacks . ((stencil . ,Text_interface::print)))
508 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
509 ,Self_alignment_interface::centered_on_other_axis_parent))
510 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
511 (font-encoding . fetaNumber)
512 (self-alignment-X . 0)
516 (staff-padding . 0.25)
517 (meta . ((class . Item)
518 (interfaces . (side-position-interface
519 self-alignment-interface
520 percent-repeat-interface
526 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
527 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
528 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
529 (staff-padding . 0.1)
531 (avoid-slur . outside)
533 (minimum-space . 1.2)
536 (meta . ((class . Spanner)
537 (interfaces . (axis-group-interface
539 dynamic-line-spanner-interface
540 side-position-interface))))))
546 (callbacks . ((stencil . ,Text_interface::print)
547 (direction . ,Script_interface::calc_direction)))
548 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
549 (self-alignment-X . 0)
550 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
551 (self-alignment-Y . 0)
553 (font-encoding . fetaDynamic)
554 (font-shape . italic)
555 (no-spacing-rods . #t)
556 (script-priority . 100)
557 (meta . ((class . Item)
558 (interfaces . (font-interface
560 self-alignment-interface
562 script-interface))))))
566 (callbacks . ((stencil . ,Dynamic_text_spanner::print)))
567 ;; rather ugh with NCSB
568 ;; (font-series . bold)
569 (font-shape . italic)
570 (style . dashed-line)
572 ;; need to blend with dynamic texts.
574 (bound-padding . 0.75)
575 (dash-fraction . 0.2)
577 (meta . ((class . Spanner)
578 (interfaces . (font-interface
581 dynamic-text-spanner-interface
582 spanner-interface))))))
587 ;; sync with TextScript (?)
590 (avoid-slur . around)
592 (staff-padding . 0.5)
593 (self-alignment-X . 0)
594 (self-alignment-Y . 0)
595 (script-priority . 100)
596 (callbacks . ((stencil . ,Text_interface::print)
597 (direction . ,Script_interface::calc_direction)))
598 (font-encoding . fetaNumber)
599 (font-size . -5) ; don't overlap when next to heads.
600 (meta . ((class . Item)
601 (interfaces . (finger-interface
603 text-script-interface
605 side-position-interface
606 self-alignment-interface
612 (zigzag-width . 0.75)
614 (X-extent-callback . #f)
615 (Y-extent-callback . #f)
616 (callbacks . ((stencil . ,Line_spanner::print)
617 (after-line-breaking . ,Line_spanner::after_line_breaking)
620 (meta . ((class . Spanner)
621 (interfaces . (line-interface
622 line-spanner-interface))))))
628 (meta . ((class . Item)
629 (interfaces . (grid-point-interface))))))
633 (callbacks . (stencil . ,Grid_line_interface::print))
634 (X-extent-callback . ,Grid_line_interface::width_callback)
635 (self-alignment-X . ,CENTER)
636 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
637 ,Self_alignment_interface::centered_on_parent))
639 (meta . ((class . Item)
640 (interfaces . (self-alignment-interface
641 grid-line-interface))))))
646 (callbacks . ((stencil . ,Hairpin::print)
647 (springs-and-rods . ,Spanner::set_spacing_rods)
648 (after-line-breaking . ,Hairpin::after_line_breaking)))
651 (minimum-length . 2.0)
652 (bound-padding . 1.0)
653 (self-alignment-Y . 0)
654 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
655 (meta . ((class . Spanner)
656 (interfaces . (hairpin-interface
658 self-alignment-interface
660 spanner-interface))))))
665 (callbacks . ((stencil . ,Horizontal_bracket::print)))
666 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
668 (staff-padding . 0.2)
670 (bracket-flare . (0.5 . 0.5))
671 (meta . ((class . Spanner)
672 (interfaces . (horizontal-bracket-interface
673 side-position-interface
675 spanner-interface))))))
679 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self
680 ,Side_position_interface::aligned_on_support_refpoints))
681 ;; This direction is for aligned_on_support_refpoints
685 (left-edge . (extra-space . 1.0))))
687 (self-alignment-Y . 0)
688 (callbacks . ((stencil . ,Text_interface::print)))
689 (break-align-symbol . instrument-name)
690 (break-visibility . ,begin-of-line-visible)
692 (meta . ((class . Item)
693 (interfaces . (font-interface
694 self-alignment-interface
695 side-position-interface
697 break-aligned-interface))))))
701 (callbacks . ((stencil . ,Key_signature_interface::print)))
703 (time-signature . (extra-space . 1.25))
704 (staff-bar . (extra-space . 0.6))
705 (key-signature . (extra-space . 0.5))
706 (right-edge . (extra-space . 0.5))
707 (first-note . (fixed-space . 2.5))))
708 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
709 (break-align-symbol . key-cancellation)
710 (break-visibility . ,begin-of-line-invisible)
713 (meta . ((class . Item)
714 (interfaces . (key-signature-interface
716 break-aligned-interface))))))
719 (callbacks . ((stencil . ,Key_signature_interface::print)))
721 (time-signature . (extra-space . 1.25))
722 (staff-bar . (extra-space . 1.1))
723 (right-edge . (extra-space . 0.5))
724 (first-note . (fixed-space . 2.5))))
725 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
726 (break-align-symbol . key-signature)
727 (break-visibility . ,begin-of-line-visible)
730 (meta . ((class . Item)
731 (interfaces . (key-signature-interface
733 break-aligned-interface))))))
736 (callbacks . ((stencil . ,Tie::print)
737 (control-points . ,Laissez_vibrer_tie::calc_control_points)
738 (direction . ,Laissez_vibrer_tie::calc_direction)
740 (details . ((ratio . 0.333)
741 (height-limit . 1.0)))
743 (meta . ((class . Item)
744 (interfaces . (laissez-vibrer-tie-interface))
748 (LaissezVibrerTieColumn
750 (X-extent-callback . #f)
751 (Y-extent-callback . #f)
752 (callbacks . ((positioning-done . ,Laissez_vibrer_tie_column::calc_positioning_done)
754 (meta . ((class . Item)
755 (interfaces . (laissez-vibrer-tie-column-interface))
761 (callbacks . ((springs-and-rods . ,Ledger_line_spanner::set_spacing_rods)
763 (stencil . ,Ledger_line_spanner::print)))
764 (X-extent-callback . #f)
765 (Y-extent-callback . #f)
766 (minimum-length-fraction . 0.25)
767 (length-fraction . 0.25)
769 (meta . ((class . Spanner)
770 (interfaces . (ledger-line-interface))))))
774 (break-align-symbol . left-edge)
777 (break-visibility . ,center-invisible)
779 (custos . (extra-space . 0.0))
780 (ambitus . (extra-space . 2.0))
781 (time-signature . (extra-space . 1.0))
782 (staff-bar . (extra-space . 0.0))
783 (breathing-sign . (minimum-space . 0.0))
784 (clef . (extra-space . 0.8))
785 (first-note . (fixed-space . 2.0))
786 (right-edge . (extra-space . 0.0))
787 (key-signature . (extra-space . 0.0))
788 (key-cancellation . (extra-space . 0.0))
790 (meta . ((class . Item)
791 (interfaces . (break-aligned-interface))))))
795 (ligature-primitive-callback . ,Note_head::print)
797 ;; ugh. A ligature bracket is totally different from
799 (callbacks . ((direction . ,Tuplet_bracket::calc_direction)
800 (positions . ,Tuplet_bracket::calc_positions)
801 (stencil . ,Tuplet_bracket::print)
807 (edge-height . (0.7 . 0.7))
808 (shorten-pair . (-0.2 . -0.2))
809 (meta . ((class . Spanner)
810 (interfaces . (tuplet-bracket-interface
819 (minimum-length . 0.3)
821 ; (springs-and-rods . ,Hyphen_spanner::set_spacing_rods)
822 (callbacks . ((stencil . ,Hyphen_spanner::print)))
824 (meta . ((class . Spanner)
825 (interfaces . (lyric-interface
826 lyric-hyphen-interface
827 spanner-interface))))))
831 (callbacks . ((stencil . ,Lyric_extender::print)))
832 (thickness . 0.8) ; linethickness
833 (minimum-length . 1.5)
835 (meta . ((class . Spanner)
836 (interfaces . (lyric-interface
837 lyric-extender-interface))))))
840 . ((callbacks . ((stencil . ,Text_interface::print)))
841 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_parent))
842 (self-alignment-X . 0)
844 (font-series . bold-narrow)
846 (meta . ((class . Item)
847 (interfaces . (rhythmic-grob-interface
848 lyric-syllable-interface
849 self-alignment-interface
857 (ligature-primitive-callback . ,Mensural_ligature::brew_ligature_primitive)
858 (callbacks . ((stencil . ,Mensural_ligature::print)))
859 (meta . ((class . Spanner)
860 (interfaces . (mensural-ligature-interface
865 (callbacks . ((stencil . ,Text_interface::print)))
866 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
869 (meta . ((class . Item)
870 (interfaces . (text-interface
871 side-position-interface
873 metronome-mark-interface))))))
876 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
877 (callbacks . (stencil . ,Measure_grouping::print))
883 (meta . ((class . Spanner)
884 (interfaces . (side-position-interface
885 measure-grouping-interface))))))
888 (callbacks . ((stencil . ,Multi_measure_rest::print)))
889 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
892 (thick-thickness . 6.6)
893 (hair-thickness . 2.0)
895 (meta . ((class . Spanner)
896 (interfaces . (multi-measure-rest-interface
897 multi-measure-interface
900 staff-symbol-referencer-interface))))))
902 (MultiMeasureRestNumber
904 (callbacks . ((springs-and-rods . ,Multi_measure_rest::set_spacing_rods)
905 (stencil . ,Text_interface::print)))
906 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
907 ,Self_alignment_interface::centered_on_other_axis_parent))
908 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
909 (self-alignment-X . 0)
912 (staff-padding . 0.4)
913 (font-encoding . fetaNumber)
914 (meta . ((class . Spanner)
915 (interfaces . (side-position-interface
916 multi-measure-interface
917 self-alignment-interface
921 (MultiMeasureRestText
923 (callbacks . ((stencil . ,Text_interface::print)))
924 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
925 ,Self_alignment_interface::centered_on_other_axis_parent))
926 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
927 (self-alignment-X . 0)
930 (staff-padding . 0.25)
931 (meta . ((class . Spanner)
932 (interfaces . (side-position-interface
933 multi-measure-interface
934 self-alignment-interface
941 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
942 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
943 (callbacks . ((positioning-done . ,Note_collision_interface::calc_positioning_done)
945 (meta . ((class . Item)
946 (interfaces . (note-collision-interface
947 axis-group-interface))))))
952 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
953 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
954 (meta . ((class . Item)
955 (interfaces . (axis-group-interface
956 note-column-interface))))))
960 (callbacks . ((stencil . ,Note_head::print)
961 (stem-attachment . ,Note_head::calc_stem_attachment)
962 (glyph-name . ,note-head::calc-glyph-name)
966 (ligature-primitive-callback . ,Note_head::print)
967 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
968 (X-offset-callbacks . (,Note_head::stem_x_shift))
969 (meta . ((class . Item)
970 (interfaces . (rhythmic-grob-interface
971 rhythmic-head-interface
975 staff-symbol-referencer-interface))))))
979 (stem-spacing-correction . 0.5)
980 (same-direction-correction . 0.25)
981 ;; Changed this from 0.75.
982 ;; If you ever change this back, please document! --hwn
983 (knee-spacing-correction . 1.0)
985 (meta . ((class . Item)
986 (interfaces . (spacing-interface
987 note-spacing-interface))))))
991 (callbacks . ((stencil . ,Text_interface::print)))
992 (meta . ((class . Item)
993 (interfaces . (note-name-interface
999 (self-alignment-X . 0)
1000 (break-visibility . ,begin-of-line-visible)
1001 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent
1002 ,Self_alignment_interface::aligned_on_self))
1003 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1004 (callbacks . ((stencil . ,Text_interface::print)))
1006 ;; no Y dimensions, because of lyrics under tenor clef.
1007 (Y-extent . (0 . 0))
1008 (font-shape . italic)
1010 (staff-padding . 0.2)
1012 (meta . ((class . Item)
1013 (interfaces . (text-interface
1014 self-alignment-interface
1015 side-position-interface
1016 font-interface))))))
1020 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1021 (callbacks . ((stencil . ,Ottava_bracket::print)))
1022 (font-shape . italic)
1023 (shorten-pair . (0.0 . -0.6))
1024 (staff-padding . 1.0)
1026 (minimum-length . 1.0)
1027 (dash-fraction . 0.3)
1028 (edge-height . (0 . 1.2))
1030 (meta . ((class . Spanner)
1031 (interfaces . (ottava-bracket-interface
1032 horizontal-bracket-interface
1034 side-position-interface
1036 text-interface))))))
1041 (callbacks . ((before-line-breaking . ,Paper_column::before_line_breaking)
1042 ;; (stencil . ,Paper_column::print)
1044 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1047 ;; (font-size . -6) (font-name . "sans") (Y-extent-callback . #f)
1048 (meta . ((class . Paper_column)
1049 (interfaces . (paper-column-interface
1050 axis-group-interface
1051 spaceable-grob-interface))))))
1054 . ((slur-details . ,default-slur-details)
1055 (callbacks . ((control-points . ,Slur::calc_control_points)
1056 (direction . ,Slur::calc_direction)
1057 (springs-and-rods . ,Spanner::set_spacing_rods)
1058 (stencil . ,Slur::print)
1062 (minimum-length . 1.5)
1063 (Y-extent-callback . ,Slur::height)
1064 (height-limit . 2.0)
1066 (meta . ((class . Spanner)
1067 (interfaces . (slur-interface))))))
1069 (NonMusicalPaperColumn
1072 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1073 (callbacks . ((before-line-breaking . ,Paper_column::before_line_breaking)
1074 ;; (stencil . ,Paper_column::print)
1078 ;; debugging stuff: print column number.
1079 ;; (font-size . -6) (font-name . "sans") (Y-extent-callback . #f)
1081 (meta . ((class . Paper_column)
1082 (interfaces . (paper-column-interface
1083 axis-group-interface
1084 spaceable-grob-interface))))))
1088 (callbacks . ((springs-and-rods . ,Multi_measure_rest::set_spacing_rods)
1089 (stencil . ,Multi_measure_rest::percent)))
1092 (font-encoding . fetaMusic)
1093 (meta . ((class . Spanner)
1094 (interfaces . (multi-measure-rest-interface
1096 percent-repeat-interface))))))
1097 (PercentRepeatCounter
1098 . ((callbacks . ((stencil . ,Text_interface::print)))
1099 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
1100 ,Self_alignment_interface::centered_on_other_axis_parent))
1101 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1102 (self-alignment-X . 0)
1105 (staff-padding . 0.25)
1107 (font-encoding . fetaNumber)
1108 (meta . ((class . Spanner)
1109 (interfaces . (side-position-interface
1110 self-alignment-interface
1111 percent-repeat-interface
1113 text-interface))))))
1115 ;; an example of a text spanner
1118 (callbacks . ((stencil . ,Piano_pedal_bracket::print)))
1120 (bound-padding . 1.0)
1122 (bracket-flare . (0.5 . 0.5))
1123 (edge-height . (1.0 . 1.0))
1124 (shorten-pair . (0.0 . 0.0))
1126 (meta . ((class . Spanner)
1127 (interfaces . (line-interface
1128 piano-pedal-interface
1129 piano-pedal-bracket-interface))))))
1133 (callbacks . ((stencil . ,Text_interface::print)))
1134 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1135 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1136 (callbacks . ((after-line-breaking . ,shift-right-at-line-begin)))
1137 (self-alignment-X . 0)
1142 (break-visibility . ,end-of-line-invisible)
1144 (meta . ((class . Item)
1145 (interfaces . (text-interface
1146 side-position-interface
1149 self-alignment-interface))))))
1151 (RemoveEmptyVerticalGroup
1153 (Y-offset-callbacks . (,Hara_kiri_group_spanner::force_hara_kiri_callback))
1154 (Y-extent-callback . ,Hara_kiri_group_spanner::y_extent)
1156 (meta . ((class . Spanner)
1157 (interfaces . (axis-group-interface
1158 vertically-spaceable-interface
1159 hara-kiri-group-interface
1160 spanner-interface))))))
1164 (callbacks . ((stencil . ,Percent_repeat_item_interface::beat_slash)))
1167 (meta . ((class . Item)
1168 (interfaces . (percent-repeat-interface))))))
1171 (X-extent-callback . ,Rest::extent_callback)
1172 (Y-extent-callback . ,Rest::extent_callback)
1173 (callbacks . ((stencil . ,Rest::print)))
1174 (Y-offset-callbacks . (
1175 ,Staff_symbol_referencer::callback
1176 ,Rest::polyphonic_offset_callback
1177 ,Rest::y_offset_callback
1179 (minimum-distance . 0.25)
1180 (meta . ((class . Item)
1181 (interfaces . (font-interface
1182 rhythmic-head-interface
1183 rhythmic-grob-interface
1184 staff-symbol-referencer-interface
1185 rest-interface))))))
1189 (minimum-distance . 0.75)
1190 (callbacks . ((positioning-done . ,Rest_collision::calc_positioning_done)
1192 (meta . ((class . Item)
1193 (interfaces . (rest-collision-interface))))))
1197 ;; don't set direction here: it breaks staccato.
1199 ;; This value is sensitive: if too large, staccato dots will move a
1202 (staff-padding . 0.25)
1203 ;; (script-priority . 0) priorities for scripts, see script.scm
1204 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent))
1205 (callbacks . ((stencil . ,Script_interface::print)
1206 (direction . ,Script_interface::calc_direction)))
1207 (font-encoding . fetaMusic)
1208 (meta . ((class . Item)
1209 (interfaces . (script-interface
1210 side-position-interface
1211 font-interface))))))
1215 (callbacks . ((before-line-breaking . ,Script_column::before_line_breaking)))
1216 (meta . ((class . Item)
1217 (interfaces . (script-column-interface))))))
1221 (X-extent-callback . #f)
1222 (Y-extent-callback . #f)
1223 (meta . ((class . Item)
1224 (interfaces . (spacing-interface
1225 separation-item-interface))))))
1227 (SeparatingGroupSpanner
1229 (callbacks . ((springs-and-rods . ,Separating_group_spanner::set_spacing_rods)
1231 (meta . ((class . Spanner)
1232 (interfaces . (only-prebreak-interface
1234 separation-spanner-interface))))))
1237 . ((slur-details . ,default-slur-details)
1238 (callbacks . ((control-points . ,Slur::calc_control_points)
1239 (direction . ,Slur::calc_direction)
1240 (springs-and-rods . ,Spanner::set_spacing_rods)
1241 (stencil . ,Slur::print)
1244 (minimum-length . 1.5)
1245 (Y-extent-callback . ,Slur::height)
1247 (height-limit . 2.0)
1249 (meta . ((class . Spanner)
1250 (interfaces . (slur-interface))))))
1254 (callbacks . ((springs-and-rods . ,Spacing_spanner::set_springs)))
1255 (grace-space-factor . 0.6)
1256 (shortest-duration-space . 2.0)
1257 (spacing-increment . 1.2)
1258 (base-shortest-duration . ,(ly:make-moment 3 16))
1259 (meta . ((class . Spanner)
1260 (interfaces . (spacing-interface
1261 spacing-spanner-interface))))))
1265 (break-align-symbol . staff-bar)
1266 (X-extent-callback . ,Span_bar::width_callback)
1267 (Y-extent-callback . ())
1270 (callbacks . ((stencil . ,Span_bar::print)
1271 (bar-size . ,Span_bar::calc_bar_size)
1272 (glyph-name . ,Span_bar::calc_glyph_name)
1273 (before-line-breaking . ,Span_bar::before_line_breaking)))
1277 ;; Ross. page 151 lists other values, we opt for a leaner look
1281 (hair-thickness . 1.6)
1282 (thick-thickness . 6.0)
1283 (meta . ((class . Item)
1284 (interfaces . (span-bar-interface
1286 bar-line-interface))))))
1289 . ((callbacks . ((stencil . ,Text_interface::print)))
1290 (font-series . bold)
1292 (X-offset-callbacks . (,Side_position_interface::aligned_side))
1294 (meta . ((class . Item)
1295 (interfaces . (side-position-interface
1296 stanza-number-interface
1298 font-interface))))))
1302 (callbacks . ((stencil . ,print-circled-text-callback)))
1304 (staff-padding . 0.5)
1305 (self-alignment-X . 0)
1306 (self-alignment-Y . 0)
1307 (script-priority . 100)
1308 (font-encoding . fetaNumber)
1309 (font-size . -5) ; don't overlap when next to heads.
1310 (meta . ((class . Item)
1311 (interfaces . (string-number-interface
1313 text-script-interface
1315 side-position-interface
1316 self-alignment-interface
1317 item-interface))))))
1322 (stem-spacing-correction . 0.4)
1323 (meta . ((class . Item)
1324 (interfaces . (spacing-interface
1325 staff-spacing-interface))))))
1329 (callbacks . ((stencil . ,Text_interface::print)))
1331 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1332 (no-spacing-rods . #t)
1333 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
1334 (font-shape . italic)
1335 (self-alignment-X . 0)
1336 (meta . ((class . Item)
1337 (interfaces . (text-interface
1338 self-alignment-interface
1339 font-interface))))))
1341 (SostenutoPedalLineSpanner
1344 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1345 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1348 (minimum-space . 1.0)
1350 (meta . ((class . Spanner)
1351 (interfaces . (piano-pedal-interface
1352 axis-group-interface
1353 side-position-interface))))))
1357 (callbacks . ((stencil . ,Staff_symbol::print)))
1359 (ledger-line-thickness . (1.0 . 0.1))
1361 (meta . ((class . Spanner)
1362 (interfaces . (staff-symbol-interface))))))
1366 ;; this list is rather long. Trim --hwn
1367 (callbacks . ((direction . ,Stem::calc_direction)
1368 (stem-end-position . ,Stem::calc_stem_end_position)
1369 (stem-info . ,Stem::calc_stem_info)
1370 (positioning-done . ,Stem::calc_positioning_done)
1371 (stencil . ,Stem::print)
1372 (length . ,Stem::calc_length)
1378 ;; 3.5 (or 3 measured from note head) is standard length
1379 ;; 32nd, 64th flagged stems should be longer
1380 (lengths . (3.5 3.5 3.5 4.5 5.0))
1382 ;; FIXME. 3.5 yields too long beams (according to Ross and
1383 ;; looking at Baerenreiter examples) for a number of common
1384 ;; boundary cases. Subtracting half a beam thickness fixes
1385 ;; this, but the bug may well be somewhere else.
1387 ;; FIXME this should come from 'lengths
1388 (beamed-lengths . (3.26 3.5 3.6))
1390 ;; The 'normal' minima
1391 (beamed-minimum-free-lengths . (1.83 1.5 1.25))
1392 ;(beamed-minimum-free-lengths . (2.0 1.83 1.25))
1394 ;; The 'extreme case' minima
1395 (beamed-extreme-minimum-free-lengths . (2.0 1.25))
1397 ;; Stems in unnatural (forced) direction should be shortened by
1398 ;; one staff space, according to [Roush & Gourlay].
1399 ;; Flagged stems we shorten only half a staff space.
1400 (stem-shorten . (1.0 0.5))
1405 ;; default stem direction for note on middle line
1406 (neutral-direction . -1)
1408 ;; We use the normal minima as minimum for the ideal lengths,
1409 ;; and the extreme minima as abolute minimum length.
1411 (X-offset-callbacks . (,Stem::offset_callback))
1412 (X-extent-callback . ,Stem::width_callback)
1413 (Y-extent-callback . ,Stem::height)
1414 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
1415 (meta . ((class . Item)
1416 (interfaces . (stem-interface
1417 font-interface))))))
1421 (callbacks . ((stencil . ,Stem_tremolo::print)))
1422 (Y-extent-callback . ,Stem_tremolo::height)
1423 (X-extent-callback . #f)
1425 (beam-width . 1.6) ; staff-space
1426 (beam-thickness . 0.48) ; staff-space
1427 (meta . ((class . Item)
1428 (interfaces . (stem-tremolo-interface))))))
1432 (no-spacing-rods . #t)
1433 (callbacks . ((stencil . ,Sustain_pedal::print)))
1434 (self-alignment-X . 0)
1436 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
1437 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1438 (meta . ((class . Item)
1439 (interfaces . (piano-pedal-interface
1440 text-spanner-interface
1442 self-alignment-interface
1443 font-interface))))))
1445 (SustainPedalLineSpanner
1448 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1449 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1452 (staff-padding . 1.2)
1453 (minimum-space . 1.0)
1455 (meta . ((class . Spanner)
1456 (interfaces . (piano-pedal-interface
1457 axis-group-interface
1458 side-position-interface))))))
1463 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1464 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1465 (meta . ((class . System)
1466 (interfaces . (system-interface
1467 axis-group-interface))))))
1472 (callbacks . ((stencil . ,System_start_delimiter::print)))
1473 (collapse-height . 5.0)
1474 (font-encoding . fetaBraces)
1475 (Y-extent-callback . #f)
1476 (meta . ((class . Spanner)
1477 (interfaces . (system-start-delimiter-interface
1478 font-interface))))))
1482 (Y-extent-callback . #f)
1483 (X-offset-callbacks . (,(lambda (g a) -0.8)))
1484 (callbacks . ((stencil . ,System_start_delimiter::print)))
1486 (collapse-height . 5.0)
1488 (meta . ((class . Spanner)
1489 (interfaces . (font-interface
1490 system-start-delimiter-interface))))))
1494 (Y-extent-callback . #f)
1495 (glyph . "bar-line")
1497 (callbacks . ((stencil . ,System_start_delimiter::print)
1499 (meta . ((class . Spanner)
1500 (interfaces . (system-start-delimiter-interface))))))
1504 (callbacks . ((stencil . ,Text_interface::print)))
1505 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
1507 (stem-attachment . (1.0 . 1.35))
1508 (font-series . bold)
1509 (meta . ((class . Item)
1511 . (rhythmic-head-interface
1514 staff-symbol-referencer-interface
1515 text-interface))))))
1519 (no-spacing-rods . #t)
1520 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1523 ;; sync with Fingering ?
1525 (staff-padding . 0.5)
1526 (callbacks . ((stencil . ,Text_interface::print)
1527 (direction . ,Script_interface::calc_direction)))
1528 (avoid-slur . around)
1529 (slur-padding . 0.5)
1530 (script-priority . 200)
1531 ;; todo: add X self alignment?
1532 (meta . ((class . Item)
1533 (interfaces . (text-script-interface
1535 side-position-interface
1536 font-interface))))))
1540 (callbacks .((stencil . ,Text_spanner::print)))
1541 (font-shape . italic)
1542 (style . dashed-line)
1543 (staff-padding . 0.8)
1544 (dash-fraction . 0.2)
1547 (meta . ((class . Spanner)
1548 (interfaces . (text-spanner-interface
1549 side-position-interface
1550 font-interface))))))
1554 (callbacks . ((control-points . ,Tie::calc_control_points)
1555 (direction . ,Tie::calc_direction)
1556 (stencil . ,Tie::print)
1558 (details . ((ratio . 0.333)
1559 (height-limit . 1.0)
1560 (between-length-limit . 1.0)))
1562 (meta . ((class . Spanner)
1563 (interfaces . (tie-interface))))
1568 (callbacks . ((positioning-done . ,Tie_column::calc_positioning_done)
1569 (before-line-breaking . ,Tie_column::before_line_breaking)
1571 (X-extent-callback . #f)
1572 (Y-extent-callback . #f)
1574 (meta . ((class . Spanner)
1575 (interfaces . (tie-column-interface))))))
1579 (callbacks . ((stencil . ,Time_signature::print)))
1580 (break-align-symbol . time-signature)
1581 (break-visibility . ,all-visible)
1583 (first-note . (fixed-space . 2.0))
1584 (right-edge . (extra-space . 0.5))
1585 (staff-bar . (minimum-space . 2.0))))
1588 (meta . ((class . Item)
1589 (interfaces . (time-signature-interface
1590 break-aligned-interface
1591 font-interface))))))
1595 (callbacks . ((stencil . ,Dynamic_text_spanner::print)))
1596 (edge-text . ,(cons (make-musicglyph-markup "scripts.trill")
1599 (staff-padding . 1.0)
1602 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1603 (meta . ((class . Spanner)
1604 (interfaces . (text-spanner-interface
1605 side-position-interface
1606 font-interface))))))
1608 (TrillPitchAccidental
1609 . ((X-offset-callbacks . (,Side_position_interface::aligned_side))
1613 (callbacks . ((stencil . ,Accidental_interface::print)))
1614 (meta . ((class . Item)
1615 (interfaces . (item-interface
1616 accidental-interface
1617 side-position-interface
1618 font-interface))))))
1621 . ((X-offset-callbacks . (,Side_position_interface::aligned_side))
1624 (callbacks . ((stencil . ,parenthesize-elements)))
1625 (direction . ,RIGHT)
1627 (meta . ((class . Item)
1628 (interfaces . (side-position-interface
1630 rhythmic-head-interface
1632 accidental-interface
1633 axis-group-interface))))))
1636 . ((callbacks . ((stencil . ,Note_head::print)))
1638 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
1640 (meta . ((class . Item)
1641 (interfaces . (item-interface
1642 rhythmic-head-interface
1644 pitched-trill-interface
1646 staff-symbol-referencer-interface))))))
1652 (edge-height . (0.7 . 0.7))
1653 (shorten-pair . (-0.2 . -0.2))
1654 (callbacks . ((direction . ,Tuplet_bracket::calc_direction)
1655 (positions . ,Tuplet_bracket::calc_positions)
1656 (stencil . ,Tuplet_bracket::print)
1658 (font-shape . italic)
1661 (meta . ((class . Spanner)
1662 (interfaces . (text-interface
1664 tuplet-bracket-interface
1665 font-interface))))))
1669 (callbacks . ((stencil . ,Text_interface::print)))
1670 (font-shape . italic)
1671 (no-spacing-rods . #t)
1672 (self-alignment-X . 0)
1674 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
1675 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1676 (meta . ((class . Item)
1677 (interfaces . (text-interface
1678 self-alignment-interface
1679 font-interface))))))
1681 (UnaCordaPedalLineSpanner
1684 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1685 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1687 (staff-padding . 1.2)
1688 (minimum-space . 1.0)
1690 (meta . ((class . Spanner)
1691 (interfaces . (piano-pedal-interface
1692 axis-group-interface
1693 side-position-interface))))))
1699 (ligature-primitive-callback . ,Vaticana_ligature::brew_ligature_primitive)
1700 (callbacks . ((stencil . ,Vaticana_ligature::print)))
1701 (meta . ((class . Spanner)
1702 (interfaces . (vaticana-ligature-interface
1703 font-interface))))))
1708 (callbacks . ((positioning-done . ,Align_interface::calc_positioning_done)
1709 (after-line-breaking . ,Align_interface::stretch_after_break)
1711 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1712 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1714 (meta . ((class . Spanner)
1715 (interfaces . (align-interface
1716 axis-group-interface))))))
1721 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1722 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1724 (meta . ((class . Spanner)
1725 (interfaces . (axis-group-interface
1726 vertically-spaceable-interface))))))
1731 (Y-offset-callbacks . (,Side_position_interface::aligned_on_support_refpoints))
1733 (space-alist . ((left-edge . (extra-space . 1.0))))
1734 (break-align-symbol . instrument-name)
1735 (callbacks . ((stencil . ,Text_interface::print)))
1736 (break-align-symbol . clef)
1737 (break-visibility . ,begin-of-line-visible)
1739 (meta . ((class . Item)
1740 (interfaces . (font-interface
1741 self-alignment-interface
1742 side-position-interface
1744 break-aligned-interface))))))
1748 (callbacks . ((stencil . ,Volta_bracket_interface::print)
1749 (after-line-breaking . ,Volta_bracket_interface::after_line_breaking)))
1752 (font-encoding . fetaNumber)
1753 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1754 (thickness . 1.6) ;; linethickness
1755 (edge-height . (2.0 . 2.0)) ;; staffspace;
1758 (meta . ((class . Spanner)
1759 (interfaces . (volta-bracket-interface
1760 horizontal-bracket-interface
1763 side-position-interface
1764 font-interface))))))
1772 (X-extent-callback . #f)
1773 (Y-extent-callback . #f)
1775 (callbacks . ((stencil . ,Line_spanner::print)
1776 (after-line-breaking . ,Line_spanner::after_line_breaking)))
1777 (meta . ((class . Spanner)
1778 (interfaces . (line-spanner-interface
1779 line-interface))))))))
1781 (define (completize-grob-entry x)
1782 "Transplant assoc key into 'name entry of 'meta of X. Set interfaces for Item, Spanner etc.
1784 ;; (display (car x))
1786 (let* ((name-sym (car x))
1787 (grob-entry (cdr x))
1788 (meta-entry (cdr (assoc 'meta grob-entry)))
1789 (class (cdr (assoc 'class meta-entry)))
1791 (cdr (assoc 'interfaces meta-entry))))
1795 (set! ifaces-entry (cons 'item-interface ifaces-entry)))
1796 ((eq? 'Spanner class)
1797 (set! ifaces-entry (cons 'spanner-interface ifaces-entry)))
1798 ((eq? 'Paper_column class)
1799 (set! ifaces-entry (cons 'item-interface
1800 (cons 'paper-column-interface ifaces-entry))))
1801 ((eq? 'System class)
1802 (set! ifaces-entry (cons 'system-interface
1803 (cons 'spanner-interface ifaces-entry))))
1805 (ly:warning "Unknown class ~a" class)))
1806 (set! ifaces-entry (cons 'grob-interface ifaces-entry))
1808 (set! meta-entry (assoc-set! meta-entry 'name name-sym))
1809 (set! meta-entry (assoc-set! meta-entry 'interfaces
1811 (set! grob-entry (assoc-set! grob-entry 'meta meta-entry))
1812 (cons name-sym grob-entry)))
1814 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
1816 ;; (display (map pair? all-grob-descriptions))
1818 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
1821 ;; (display (car x)) (newline)
1823 (set-object-property! (car x) 'translation-type? list?)
1824 (set-object-property! (car x) 'is-grob? #t))
1825 all-grob-descriptions)
1827 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))