1 ;;;; grob-description.scm -- part of generated backend documentation
3 ;;;; source file of the GNU LilyPond music typesetter
5 ;;;; (c) 1998--2004 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?
15 (define-public all-grob-descriptions
19 (print-function . ,Accidental_interface::print)
21 (cautionary-style . parentheses)
22 (after-line-breaking-callback . ,Accidental_interface::after_line_breaking) (meta . ((interfaces . (item-interface accidental-interface font-interface))))
27 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
30 ;; this is quite small, but it is very ugly to have
31 ;; accs closer to the previous note than to the next one.
32 (right-padding . 0.25)
33 (meta . ((interfaces . (item-interface accidental-placement-interface))))
39 (break-align-symbol . ambitus)
40 (print-function . ,Ambitus::print)
42 (note-head-style . "noteheads-2")
43 (break-visibility . ,begin-of-line-visible)
46 (clef . (extra-space . 0.0))
47 (key-signature . (extra-space . 0.0))
48 (staff-bar . (extra-space . 0.0))
49 (time-signature . (extra-space . 0.0))
50 (first-note . (fixed-space . 0.0))
52 (meta . ((interfaces . (ambitus-interface staff-symbol-referencer-interface break-aligned-interface item-interface font-interface))))
57 (X-extent-callback . ,Arpeggio::width_callback)
58 (Y-extent-callback . #f)
59 (print-function . ,Arpeggio::print)
60 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
61 (X-offset-callbacks . (,Side_position_interface::aligned_side))
63 (staff-position . 0.0)
64 (meta . ((interfaces . (arpeggio-interface staff-symbol-referencer-interface side-position-interface item-interface font-interface))))
69 (break-align-symbol . staff-bar)
71 (break-glyph-function . ,default-break-barline)
72 (bar-size-procedure . ,Bar_line::get_staff_bar_size)
73 (print-function . ,Bar_line::print)
74 (break-visibility . ,all-visible)
76 (before-line-breaking-callback . ,Bar_line::before_line_breaking)
78 (time-signature . (extra-space . 0.75))
79 (custos . (minimum-space . 2.0))
80 (clef . (minimum-space . 1.0))
81 (key-signature . (extra-space . 1.0))
82 (first-note . (fixed-space . 1.3))
83 (next-note . (semi-fixed-space . 1.3))
84 (right-edge . (extra-space . 0.0))
88 ;; Ross. page 151 lists other values, we opt for a leaner look
92 (hair-thickness . 1.6)
93 (thick-thickness . 6.0)
94 (meta . ((interfaces . (bar-line-interface item-interface break-aligned-interface font-interface))))
100 (print-function . ,Text_item::print)
102 (break-visibility . ,begin-of-line-visible)
105 (font-family . roman)
107 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
108 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
109 (self-alignment-X . 1)
110 (extra-offset . (1.3 . 0))
112 ((interfaces . (side-position-interface
114 self-alignment-interface
115 font-interface item-interface break-aligned-interface))))
121 (print-function . ,Text_item::print)
122 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
124 (font-family . number)
126 ;; We must do this, other BFs in
127 ;; paper16 become too small.
129 (font-magnification . 0.8)
131 (meta . ((interfaces . (text-interface rhythmic-grob-interface
132 bass-figure-interface item-interface
133 self-alignment-interface font-interface))))
137 ;; todo: clean this up a bit: the list is getting
139 (print-function . ,Beam::print)
140 (concaveness-gap . 2.0)
141 (concaveness-threshold . 0.08)
143 (positions . (#f . #f))
144 (position-callbacks . (,Beam::least_squares
147 ,Beam::shift_region_to_valid
151 ;; TODO: should be in SLT.
152 (thickness . 0.48) ; in staff-space
153 (before-line-breaking-callback . ,Beam::before_line_breaking)
154 (after-line-breaking-callback . ,Beam::after_line_breaking)
155 (neutral-direction . -1)
156 (dir-function . ,beam-dir-majority-median)
158 ;; Whe have some unreferenced problems here.
160 ;; If we shorten beamed stems less than normal stems (1 staffspace),
161 ;; or high order less than 8th beams, patterns like
162 ;; c''4 [c''8 c''] c''4 [c''16 c]
163 ;; are ugly (different stem lengths).
165 ;; But if we shorten 16th beams as much as 8th beams, a single
166 ;; forced 16th beam looks *very* short.
168 ;; We choose to shorten 8th beams the same as single stems,
169 ;; and high order beams less than 8th beams, so that all
170 ;; isolated shortened beams look nice and a bit shortened,
171 ;; sadly possibly breaking patterns with high order beams.
172 (beamed-stem-shorten . (1.0 0.5 0.25))
175 (flag-width-function . ,beam-flag-width-function)
177 (auto-knee-gap . 5.5)
179 ;; only for debugging.
180 (font-family . roman)
182 (space-function . ,Beam::space_function)
183 (meta . ((interfaces . (staff-symbol-referencer-interface beam-interface spanner-interface))))
191 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
192 (meta . ((interfaces . (break-alignment-interface item-interface axis-group-interface)))))
198 (X-offset-callbacks . (,Break_align_interface::alignment_callback))
199 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
200 (meta . ((interfaces . (break-aligned-interface item-interface axis-group-interface item-interface ))))
205 (break-align-symbol . breathing-sign)
208 (ambitus . (extra-space . 2.0))
209 (custos . (minimum-space . 1.0))
210 (key-signature . (minimum-space . 1.5))
211 (staff-bar . (minimum-space . 1.5))
212 (clef . (minimum-space . 2.0))
213 (first-note . (fixed-space . 1.0)) ;huh?
214 (right-edge . (extra-space . 0.1))
216 (print-function . ,Text_item::print)
217 (text . ,(make-musicglyph-markup "scripts-rcomma"))
218 (Y-offset-callbacks . (,Breathing_sign::offset_callback))
219 (break-visibility . ,begin-of-line-invisible)
220 (meta . ((interfaces . (break-aligned-interface breathing-sign-interface text-interface font-interface item-interface ))))
225 (print-function . ,Clef::print)
226 (before-line-breaking-callback . ,Clef::before_line_breaking)
228 (font-family . music)
229 (break-align-symbol . clef)
230 (break-visibility . ,begin-of-line-visible)
231 (space-alist . ((ambitus . (extra-space . 2.0))
232 (staff-bar . (extra-space . 0.7))
233 (key-signature . (minimum-space . 4.0))
234 (time-signature . (minimum-space . 4.2))
235 (first-note . (minimum-fixed-space . 5.0))
236 (next-note . (extra-space . 0.5))
237 (right-edge . (extra-space . 0.5))
239 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
240 (meta . ((interfaces . (clef-interface staff-symbol-referencer-interface font-interface break-aligned-interface item-interface ))))
243 (ClusterSpannerBeacon
245 (print-function . #f)
246 (meta . ((interfaces . (cluster-beacon-interface item-interface))))
251 (print-function . ,Cluster::print)
252 (spacing-procedure . ,Spanner::set_spacing_rods)
253 (minimum-length . 0.0)
256 (meta . ((interfaces . (cluster-interface spanner-interface))))
261 (print-function . ,Text_item::print)
262 (after-line-breaking-callback . ,Chord_name::after_line_breaking)
266 (meta . ((interfaces . (font-interface rhythmic-grob-interface
267 text-interface chord-name-interface item-interface ))))
272 (break-align-symbol . custos)
274 (print-function . ,Custos::print)
275 (break-visibility . ,end-of-line-visible)
277 (neutral-position . 0)
278 (neutral-direction . -1)
279 (adjust-if-on-staffline . #t)
280 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
282 (first-note . (minimum-fixed-space . 0.0))
283 (right-edge . (extra-space . 0.1))
286 . (custos-interface staff-symbol-referencer-interface
288 break-aligned-interface item-interface ))))
296 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
297 (X-offset-callbacks . (,Dot_column::side_position))
298 (meta . ((interfaces . (dot-column-interface axis-group-interface item-interface ))))
303 (print-function . ,Dots::print)
305 (meta . ((interfaces . (font-interface staff-symbol-referencer-interface dots-interface item-interface ))))
308 (DoublePercentRepeat .
310 (print-function . ,Percent_repeat_item_interface::double_percent)
313 (font-family . music)
316 (break-align-symbol . staff-bar)
317 (break-visibility . ,begin-of-line-invisible)
318 (meta . ((interfaces . (font-interface
319 break-aligned-interface
320 percent-repeat-interface item-interface ))))
325 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
326 (print-function . ,Text_item::print)
327 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
328 ,Self_alignment_interface::centered_on_parent))
329 (self-alignment-X . 0)
330 (no-spacing-rods . #t)
331 (script-priority . 100)
333 (font-family . dynamic)
334 (font-shape . italic)
335 (self-alignment-Y . 0)
336 (meta . ((interfaces . (font-interface text-interface self-alignment-interface dynamic-interface script-interface item-interface))))
342 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
343 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
344 (staff-padding . 0.1)
346 (minimum-space . 1.2)
348 (meta . ((interfaces . (dynamic-interface axis-group-interface side-position-interface spanner-interface))))
353 (break-align-symbol . left-edge)
357 (custos . (extra-space . 0.0))
358 (ambitus . (extra-space . 2.0))
359 (time-signature . (extra-space . 0.0))
360 (staff-bar . (extra-space . 0.0))
361 (breathing-sign . (minimum-space . 0.0))
362 (clef . (extra-space . 0.85))
363 (first-note . (fixed-space . 1.0))
364 (right-edge . (extra-space . 0.0))
365 (key-signature . (extra-space . 0.0))
367 (meta . ((interfaces . (break-aligned-interface item-interface ))))
372 (print-function . ,Text_item::print)
374 (staff-padding . 0.6)
375 (self-alignment-X . 0)
376 (self-alignment-Y . 0)
377 (script-priority . 100)
378 (font-family . number)
379 (font-size . -5) ; don't overlap when next to heads.
380 (font-shape . upright)
381 (meta . ((interfaces . (finger-interface font-interface text-script-interface text-interface side-position-interface self-alignment-interface item-interface ))))
385 (RemoveEmptyVerticalGroup
387 (Y-offset-callbacks . (,Hara_kiri_group_spanner::force_hara_kiri_callback))
388 (Y-extent-callback . ,Hara_kiri_group_spanner::y_extent)
391 (meta . ((interfaces . (axis-group-interface hara-kiri-group-interface item-interface spanner-interface))))
396 (print-function . ,Hairpin::print)
399 (spacing-procedure . ,Spanner::set_spacing_rods)
400 (minimum-length . 2.0)
401 (if-text-padding . 1.0)
402 (self-alignment-Y . 0)
403 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
404 (meta . ((interfaces . (hairpin-interface line-interface self-alignment-interface dynamic-interface spanner-interface))))
410 (print-function . ,Horizontal_bracket::print)
411 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
414 (meta . ((interfaces . (horizontal-bracket-interface side-position-interface spanner-interface))))
419 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self
420 ,Side_position_interface::aligned_on_support_refpoints))
421 ;; This direction is for aligned_on_support_refpoints
425 (left-edge . (extra-space . 1.0))
428 (self-alignment-Y . 0)
429 (print-function . ,Text_item::print)
430 (break-align-symbol . instrument-name)
431 (break-visibility . ,begin-of-line-visible)
433 (font-family . roman)
434 (meta . ((interfaces . (font-interface self-alignment-interface side-position-interface text-interface break-aligned-interface item-interface ))))
440 (Y-offset-callbacks . (,Side_position_interface::aligned_on_support_refpoints))
442 (space-alist . ((left-edge . (extra-space . 1.0))
444 (print-function . ,Text_item::print)
445 (break-align-symbol . clef)
446 (break-visibility . ,begin-of-line-visible)
448 (font-family . roman)
449 (meta . ((interfaces . (font-interface
450 self-alignment-interface
451 side-position-interface text-interface
452 break-aligned-interface item-interface ))))
457 (print-function . ,Key_signature_interface::print)
459 (time-signature . (extra-space . 1.25))
460 (staff-bar . (extra-space . 1.1))
461 (right-edge . (extra-space . 0.5))
462 (first-note . (fixed-space . 2.5))
464 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
465 (break-align-symbol . key-signature)
466 (break-visibility . ,begin-of-line-visible)
468 (meta . ((interfaces . (key-signature-interface font-interface break-aligned-interface item-interface ))))
473 (ligature-primitive-callback . ,Note_head::print)
478 (edge-height . (0.7 . 0.7))
479 (shorten-pair . (-0.2 . -0.2))
480 (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
481 (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
482 (print-function . ,Tuplet_bracket::print)
483 (meta . ((interfaces . (tuplet-bracket-interface spanner-interface))))
492 (spacing-procedure . ,Hyphen_spanner::set_spacing_rods)
493 (print-function . ,Hyphen_spanner::print)
495 (meta . ((interfaces . (lyric-interface lyric-hyphen-interface
496 spanner-interface))))
501 (print-function . ,Lyric_extender::print)
502 (thickness . 0.8) ; linethickness
503 (minimum-length . 1.5)
505 (meta . ((interfaces . (lyric-interface
506 lyric-extender-interface spanner-interface))))
510 . ((print-function . ,Text_item::print)
511 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_parent))
512 (self-alignment-X . 0)
514 (font-family . roman)
515 (font-series . bold-narrow)
516 (font-shape . upright)
518 (meta . ((interfaces . (rhythmic-grob-interface lyric-syllable-interface self-alignment-interface text-interface font-interface item-interface ))))
525 (ligature-primitive-callback . ,Mensural_ligature::brew_ligature_primitive)
526 (print-function . ,Mensural_ligature::print)
527 (meta . ((interfaces . (mensural-ligature-interface font-interface))))
532 (print-function . ,Text_item::print)
533 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
534 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
535 (after-line-breaking-callback . ,shift-right-at-line-begin)
536 (self-alignment-X . 0)
540 (font-family . roman)
542 (break-visibility . ,end-of-line-invisible)
544 (meta . ((interfaces . (text-interface side-position-interface font-interface mark-interface self-alignment-interface item-interface ))))
548 (print-function . ,Text_item::print)
549 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
552 (font-family . roman)
553 (break-visibility . ,end-of-line-invisible)
555 (meta . ((interfaces . (text-interface side-position-interface font-interface metronome-mark-interface item-interface))))
559 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
560 (print-function . ,Measure_grouping::print)
566 (meta . ((interfaces . (spanner-interface side-position-interface measure-grouping-interface))))
570 (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
571 (print-function . ,Multi_measure_rest::print)
572 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
575 (thick-thickness . 6.6)
576 (hair-thickness . 2.0)
578 (meta . ((interfaces . (multi-measure-rest-interface multi-measure-interface rest-interface font-interface staff-symbol-referencer-interface))))
581 (MultiMeasureRestNumber
583 (print-function . ,Text_item::print)
584 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
585 ,Self_alignment_interface::centered_on_other_axis_parent))
586 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
587 (self-alignment-X . 0)
590 (staff-padding . 1.3)
591 (font-family . number)
592 (meta . ((interfaces . (side-position-interface multi-measure-interface self-alignment-interface font-interface spanner-interface text-interface))))
594 (MultiMeasureRestText
596 (print-function . ,Text_item::print)
597 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
598 ,Self_alignment_interface::centered_on_other_axis_parent))
599 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
600 (self-alignment-X . 0)
603 (staff-padding . 1.5)
604 (font-family . roman)
605 (meta . ((interfaces . (side-position-interface multi-measure-interface self-alignment-interface font-interface spanner-interface text-interface))))
610 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
611 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
612 (meta . ((interfaces . (note-collision-interface axis-group-interface item-interface ))))
618 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
619 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
620 (meta . ((interfaces . (axis-group-interface note-column-interface item-interface ))))
626 (print-function . ,Note_head::print)
627 (ligature-primitive-callback . ,Note_head::print)
628 (glyph-name-procedure . ,find-notehead-symbol)
629 (X-extent-callback . ,Note_head::extent)
630 (Y-extent-callback . ,Note_head::extent)
631 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
632 (stem-attachment-function . ,note-head-style->attachment-coordinates)
633 (meta . ((interfaces . (rhythmic-grob-interface rhythmic-head-interface font-interface note-head-interface staff-symbol-referencer-interface item-interface ))))
640 (zigzag-width . 0.75)
642 (X-extent-callback . #f)
643 (Y-extent-callback . #f)
644 (after-line-breaking-callback . ,Line_spanner::after_line_breaking)
645 (print-function . ,Line_spanner::print)
646 (meta . ((interfaces . (line-spanner-interface spanner-interface))))
654 (X-extent-callback . #f)
655 (Y-extent-callback . #f)
656 (print-function . ,Line_spanner::print)
657 (after-line-breaking-callback . ,Line_spanner::after_line_breaking)
658 (meta . ((interfaces . (line-spanner-interface spanner-interface))))
663 (print-function . ,Text_item::print)
664 (font-family . roman)
665 (meta . ((interfaces . (note-name-interface text-interface font-interface item-interface ))))
670 (self-alignment-X . 0)
671 (break-visibility . ,begin-of-line-visible)
672 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent ,Self_alignment_interface::aligned_on_self))
673 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
674 (print-function . ,Text_item::print)
675 (font-shape . italic)
677 (staff-padding . 0.2)
679 (font-family . roman)
680 (meta . ((interfaces . (text-interface self-alignment-interface side-position-interface font-interface item-interface ))))
686 (before-line-breaking-callback . ,Paper_column::before_line_breaking)
687 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
689 ; (print-function . ,Paper_column::print) (font-name . "cmr8") (Y-extent-callback . #f)
690 (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
695 (print-function . ,Slur::print)
697 (spacing-procedure . ,Spanner::set_spacing_rods)
698 (minimum-length . 1.5)
699 (after-line-breaking-callback . ,Slur::after_line_breaking)
700 (extremity-rules . ,default-slur-extremity-rules)
701 (extremity-offset-alist . ,default-phrasing-slur-extremity-offset-alist)
702 (de-uglify-parameters . (1.5 0.8 -2.0))
703 (Y-extent-callback . ,Slur::height)
708 (attachment . (#f . #f))
709 (attachment-offset . ((0 . 0) . (0 . 0)))
711 (details . ((force-blowfit . 0.5)
712 (bezier-pct-c0 . -0.2) (bezier-pct-c3 . 0.000006)
713 (bezier-pct-out-max . 0.8) (bezier-pct-in-max . 1.2)
714 (bezier-area-steps . 1.0)))
715 (meta . ((interfaces . (slur-interface spanner-interface))))
718 (NonMusicalPaperColumn
721 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
722 (before-line-breaking-callback . ,Paper_column::before_line_breaking)
723 ;; debugging stuff: print column number.
724 ; (print-function . ,Paper_column::print) (font-name . "cmr8") (Y-extent-callback . #f)
727 (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
732 (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
733 (print-function . ,Multi_measure_rest::percent)
736 (font-family . music)
737 (meta . ((interfaces . (multi-measure-rest-interface spanner-interface font-interface percent-repeat-interface))))
740 (PianoPedalBracket ;; an example of a text spanner
742 (print-function . ,Piano_pedal_bracket::print)
743 (font-family . roman)
745 (if-text-padding . 1.0)
747 (bracket-flare . (0.5 . 0.5))
748 (edge-height . (1.0 . 1.0))
749 (shorten-pair . (0.0 . 0.0))
751 (meta . ((interfaces . (line-interface piano-pedal-interface piano-pedal-bracket-interface spanner-interface))))
756 (print-function . ,Percent_repeat_item_interface::beat_slash)
759 (meta . ((interfaces . (percent-repeat-interface item-interface ))))
763 (after-line-breaking-callback . ,Rest::after_line_breaking)
764 (X-extent-callback . ,Rest::extent_callback)
765 (Y-extent-callback . ,Rest::extent_callback)
766 (print-function . ,Rest::print)
767 (Y-offset-callbacks . (,Staff_symbol_referencer::callback
768 ,Rest::polyphonic_offset_callback
770 (minimum-distance . 0.25)
772 (interfaces . (font-interface
773 rhythmic-head-interface
774 rhythmic-grob-interface
776 staff-symbol-referencer-interface
777 rest-interface item-interface ))
782 (minimum-distance . 0.75)
783 (meta . ((interfaces . (rest-collision-interface item-interface ))))
788 ;; don't set direction here: it breaks staccato.
789 (print-function . ,Script_interface::print)
791 ;; This value is sensitive: if too large, staccato dots will move a
794 (staff-padding . 0.25)
795 ;; (script-priority . 0) priorities for scripts, see script.scm
796 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent))
797 (before-line-breaking-callback . ,Script_interface::before_line_breaking)
798 (font-family . music)
799 (meta . ((interfaces . (script-interface side-position-interface font-interface item-interface ))))
804 (before-line-breaking-callback . ,Script_column::before_line_breaking)
805 (meta . ((interfaces . (script-column-interface item-interface ))))
810 (print-function . ,Slur::print)
812 (spacing-procedure . ,Spanner::set_spacing_rods)
813 (minimum-length . 1.5)
814 (after-line-breaking-callback . ,Slur::after_line_breaking)
815 (extremity-rules . ,default-slur-extremity-rules)
816 (extremity-offset-alist . ,default-slur-extremity-offset-alist)
817 (de-uglify-parameters . (1.5 0.8 -2.0))
818 (Y-extent-callback . ,Slur::height)
823 (attachment . (#f . #f))
824 (attachment-offset . ((0 . 0) . (0 . 0)))
826 (details . ((force-blowfit . 0.5)
827 (bezier-pct-c0 . -0.2) (bezier-pct-c3 . 0.000006)
828 (bezier-pct-out-max . 0.8) (bezier-pct-in-max . 1.2)
829 (bezier-area-steps . 1.0)))
830 (meta . ((interfaces . (slur-interface spanner-interface))))
835 (spacing-procedure . ,Spacing_spanner::set_springs)
836 (grace-space-factor . 0.6)
837 (shortest-duration-space . 2.0)
838 (spacing-increment . 1.2)
839 (base-shortest-duration . ,(ly:make-moment 1 8))
840 (meta . ((interfaces . (spacing-interface spacing-spanner-interface spanner-interface))))
845 (break-align-symbol . staff-bar)
846 (bar-size-procedure . ,Span_bar::get_bar_size)
847 (print-function . ,Span_bar::print)
848 (break-visibility . ,begin-of-line-invisible)
849 (X-extent-callback . ,Span_bar::width_callback)
850 (Y-extent-callback . ())
853 (before-line-breaking-callback . ,Span_bar::before_line_breaking)
857 ;; Ross. page 151 lists other values, we opt for a leaner look
861 (hair-thickness . 1.6)
862 (thick-thickness . 6.0)
863 (meta . ((interfaces . (span-bar-interface font-interface
864 bar-line-interface item-interface ))))
868 . ((print-function . ,Text_item::print)
869 (font-family . roman)
872 (X-offset-callbacks . (,Side_position_interface::aligned_side))
874 (meta . ((interfaces . (side-position-interface stanza-number-interface text-interface font-interface item-interface ))))
880 (stem-spacing-correction . 0.4)
882 (meta . ((interfaces . (spacing-interface staff-spacing-interface item-interface ))))
886 (stem-spacing-correction . 0.5)
888 ;; Changed this from 0.75.
889 ;; If you ever change this back, please document! --hwn
890 (knee-spacing-correction . 1.0)
892 (meta . ((interfaces . (spacing-interface note-spacing-interface item-interface ))))
897 (print-function . ,Staff_symbol::print)
899 (ledger-line-thickness . (1.0 . 0.1))
901 (meta . ((interfaces . (staff-symbol-interface spanner-interface))))
906 (print-function . ,Text_item::print)
908 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
909 (no-spacing-rods . #t)
910 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
911 (font-family . roman)
912 (font-shape . italic)
913 (self-alignment-X . 0)
914 (meta . ((interfaces . (text-interface self-alignment-interface font-interface item-interface))))
917 (SostenutoPedalLineSpanner
920 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
921 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
925 (minimum-space . 1.0)
927 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
933 ;; this list is rather long. Trim --hwn
934 (before-line-breaking-callback . ,Stem::before_line_breaking)
935 (print-function . ,Stem::print)
938 ;; 3.5 (or 3 measured from note head) is standar length
939 ;; 32nd, 64th flagged stems should be longer
940 (lengths . (3.5 3.5 3.5 4.5 5.0))
942 ;; Stems in unnatural (forced) direction should be shortened by
943 ;; one staff space, according to [Roush & Gourlay].
944 ;; Flagged stems we shorten only half a staff space.
945 (stem-shorten . (1.0 0.5))
947 ;; default stem direction for note on middle line
948 (neutral-direction . -1)
952 ;; FIXME. 3.5 yields too long beams (according to Ross and
953 ;; looking at Baerenreiter examples) for a number of common
954 ;; boundary cases. Subtracting half a beam thickness fixes
955 ;; this, but the bug may well be somewhere else.
957 ;; FIXME this should come from 'lengths
959 ; (beamed-lengths . (3.26 3.26 1.5))
960 (beamed-lengths . (3.5 3.5 3.5 4.5 5.0))
962 ;; We use the normal minima as minimum for the ideal lengths,
963 ;; and the extreme minima as abolute minimum length.
965 ;; The 'normal' minima
966 (beamed-minimum-free-lengths . (1.83 1.5 1.25))
968 ;; The 'extreme case' minima
969 (beamed-extreme-minimum-free-lengths . (2.0 1.25))
971 (X-offset-callbacks . (,Stem::off_callback))
972 (X-extent-callback . ,Stem::dim_callback)
973 (Y-extent-callback . ,Stem::height)
974 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
975 (adjust-if-on-staffline . #t)
976 (font-family . music)
977 (meta . ((interfaces . (stem-interface font-interface item-interface ))))
982 (print-function . ,Stem_tremolo::print)
983 (Y-extent-callback . ,Stem_tremolo::height)
984 (X-extent-callback . #f)
986 (beam-width . 1.6) ; staff-space
987 (beam-thickness . 0.48) ; staff-space
988 (meta . ((interfaces . (stem-tremolo-interface item-interface ))))
993 (X-extent-callback . #f)
994 (Y-extent-callback . #f)
995 (meta . ((interfaces . (spacing-interface separation-item-interface item-interface ))))
998 (SeparatingGroupSpanner
1000 (spacing-procedure . ,Separating_group_spanner::set_spacing_rods)
1001 (meta . ((interfaces . (only-prebreak-interface spacing-interface separation-spanner-interface spanner-interface))))
1006 (no-spacing-rods . #t)
1007 (print-function . ,Sustain_pedal::print)
1008 (self-alignment-X . 0)
1010 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
1011 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1012 (meta . ((interfaces . (piano-pedal-interface text-spanner-interface text-interface self-alignment-interface font-interface item-interface))))
1015 (SustainPedalLineSpanner
1018 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1019 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1022 (staff-padding . 1.2)
1023 (minimum-space . 1.0)
1025 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
1031 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1032 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1033 (meta . ((interfaces . (system-interface axis-group-interface spanner-interface))))
1039 (print-function . ,System_start_delimiter::print)
1040 (collapse-height . 5.0)
1041 (font-family . braces)
1042 (Y-extent-callback . #f)
1043 (meta . ((interfaces . (system-start-delimiter-interface font-interface))))
1048 (Y-extent-callback . #f)
1049 (print-function . ,System_start_delimiter::print)
1055 (collapse-height . 1)
1057 (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1062 (Y-extent-callback . #f)
1063 (print-function . ,System_start_delimiter::print)
1064 (glyph . "bar-line")
1066 (after-line-breaking-callback . ,System_start_delimiter::after_line_breaking)
1067 (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1072 (print-function . ,Text_item::print)
1073 (no-spacing-rods . #t)
1074 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1077 (staff-padding . 0.5)
1078 (script-priority . 200)
1079 ;; todo: add X self alignment?
1081 (font-family . roman)
1082 (meta . ((interfaces . (text-script-interface text-interface side-position-interface font-interface item-interface ))))
1086 (print-function . ,Text_item::print)
1087 (no-spacing-rods . #t)
1088 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1089 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1091 (extra-offset . (-1 . 0))
1093 (staff-padding . 0.5)
1094 (script-priority . 200)
1095 ;; todo: add X self alignment?
1097 (font-family . roman)
1098 (font-series . bold)
1099 (meta . ((interfaces . (text-script-interface text-interface side-position-interface font-interface item-interface ))))
1103 (print-function . ,Text_spanner::print)
1104 (font-family . roman)
1105 (style . dashed-line)
1106 (staff-padding . 0.1)
1108 ;; urg, only for (de)cresc. text spanners
1109 (if-text-padding . 1.0)
1110 (dash-fraction . 0.2)
1113 (meta . ((interfaces . (text-spanner-interface side-position-interface font-interface spanner-interface))))
1118 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1119 (print-function . ,Ottava_bracket::print)
1120 (font-shape . italic)
1121 (font-family . roman)
1122 (text-repeat-if-broken . #t)
1123 (shorten-pair . (0.0 . -0.6))
1124 (staff-padding . 1.0)
1126 (minimum-length . 1.0)
1127 (dash-fraction . 0.3)
1128 (edge-height . (0 . 1.2))
1130 (meta . ((interfaces . (ottava-bracket-interface
1131 line-interface side-position-interface
1132 font-interface text-interface spanner-interface))))
1137 (font-family . roman)
1139 (print-function . ,Text_item::print)
1140 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
1141 (extra-offset . (0 . -0.65)) ;; UGH! TODO: Clean this up!
1142 (stem-attachment-function . ,tablature-stem-attachment-function)
1143 (meta . ((interfaces
1144 . (rhythmic-head-interface
1146 note-head-interface staff-symbol-referencer-interface
1147 text-interface item-interface ))))
1153 (print-function . ,Tie::print)
1154 (spacing-procedure . ,Spanner::set_spacing_rods)
1155 (staffline-clearance . 0.35)
1156 (details . ((ratio . 0.333) (height-limit . 1.0)))
1160 (minimum-length . 2.5)
1161 (meta . ((interfaces . (tie-interface spanner-interface))))
1166 (after-line-breaking-callback . ,Tie_column::after_line_breaking)
1167 (X-extent-callback . #f)
1168 (Y-extent-callback . #f)
1169 (meta . ((interfaces . (tie-column-interface spanner-interface))))
1174 (print-function . ,Time_signature::print)
1175 ; (print-function . ,Text_item::print)
1176 (break-align-symbol . time-signature)
1177 (break-visibility . ,all-visible)
1179 (first-note . (fixed-space . 2.0))
1180 (right-edge . (extra-space . 0.5))
1181 (staff-bar . (minimum-space . 2.0))
1185 ; (text . (,time-signature-glue-markup))
1186 (font-family . number)
1187 (meta . ((interfaces . (time-signature-interface break-aligned-interface font-interface item-interface ))))
1195 (edge-height . (0.7 . 0.7))
1196 (shorten-pair . (-0.2 . -0.2))
1197 (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
1198 (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
1199 (print-function . ,Tuplet_bracket::print)
1200 (font-family . roman)
1201 (font-shape . italic)
1202 (font-series . bold)
1205 (meta . ((interfaces . (text-interface line-interface tuplet-bracket-interface font-interface spanner-interface))))
1210 (print-function . ,Text_item::print)
1211 (font-family . roman)
1212 (font-shape . italic)
1213 (no-spacing-rods . #t)
1214 (self-alignment-X . 0)
1216 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
1217 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1218 (meta . ((interfaces . (text-interface self-alignment-interface font-interface item-interface ))))
1221 (UnaCordaPedalLineSpanner
1224 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1225 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1227 (staff-padding . 1.2)
1228 (minimum-space . 1.0)
1230 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
1237 (ligature-primitive-callback . ,Vaticana_ligature::brew_ligature_primitive)
1238 (print-function . ,Vaticana_ligature::print)
1239 (meta . ((interfaces . (vaticana-ligature-interface font-interface))))
1244 (print-function . ,Volta_bracket_interface::print)
1247 (font-family . number)
1248 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1249 (thickness . 1.6) ; linethickness
1250 (height . 2.0) ; staffspace;
1252 (font-family . number)
1254 (meta . ((interfaces . (volta-bracket-interface line-interface text-interface side-position-interface font-interface spanner-interface))))
1260 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1261 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1263 (meta . ((interfaces . (align-interface axis-group-interface spanner-interface))))
1269 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1270 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1272 (meta . ((interfaces . (axis-group-interface spanner-interface))))
1280 (define (completize-grob-entry x)
1281 "transplant assoc key into 'name entry of 'meta of X
1283 (let* ((name-sym (car x))
1284 (grob-entry (cdr x))
1285 (metaentry (cdr (assoc 'meta grob-entry)))
1287 (cdr (assoc 'interfaces metaentry)))
1290 (set! metaentry (assoc-set! metaentry 'name name-sym))
1291 (set! metaentry (assoc-set! metaentry 'interfaces
1292 (cons 'grob-interface ifaces-entry)))
1293 (set! grob-entry (assoc-set! grob-entry 'meta metaentry))
1294 (cons name-sym grob-entry)))
1296 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
1300 ; (display (map pair? all-grob-descriptions))
1303 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
1306 ; (display (car x)) (newline)
1308 (set-object-property! (car x) 'translation-type? list?)
1309 (set-object-property! (car x) 'is-grob? #t))
1310 all-grob-descriptions)
1313 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))