1 ;;;; grob-description.scm -- part of generated backend documentation
3 ;;;; source file of the GNU LilyPond music typesetter
5 ;;;; (c) 1998--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
6 ;;;; Jan Nieuwenhuizen <janneke@gnu.org>
8 ;;;; distances are given in stafflinethickness (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 (molecule-callback . ,Accidental_interface::brew_molecule)
21 (cautionary-style . parentheses)
22 (after-line-breaking-callback . ,Accidental_interface::after_line_breaking) (meta . ((interfaces . (item-interface accidental-interface font-interface))))
26 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
29 ;; this is quite small, but it is very ugly to have
30 ;; accs closer to the previous note than to the next one.
31 (right-padding . 0.15)
32 (meta . ((interfaces . (item-interface accidental-placement-interface))))
38 (break-align-symbol . ambitus)
39 (molecule-callback . ,Ambitus::brew_molecule)
41 (note-head-style . "noteheads-2")
42 (visibility-lambda . ,begin-of-line-visible)
45 (clef . (extra-space . 0.0))
46 (key-signature . (extra-space . 0.0))
47 (staff-bar . (extra-space . 0.0))
48 (time-signature . (extra-space . 0.0))
49 (first-note . (extra-space . 0.0))
51 (meta . ((interfaces . (ambitus-interface staff-symbol-referencer-interface break-aligned-interface item-interface font-interface))))
56 (X-extent-callback . ,Arpeggio::width_callback)
57 (Y-extent-callback . #f)
58 (molecule-callback . ,Arpeggio::brew_molecule)
59 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
60 (X-offset-callbacks . (,Side_position_interface::aligned_side))
62 (staff-position . 0.0)
63 (meta . ((interfaces . (arpeggio-interface staff-symbol-referencer-interface side-position-interface item-interface font-interface))))
68 (break-align-symbol . staff-bar)
70 (break-glyph-function . ,default-break-barline)
71 (bar-size-procedure . ,Bar_line::get_staff_bar_size)
72 (molecule-callback . ,Bar_line::brew_molecule)
73 (break-visibility . ,all-visible)
75 (before-line-breaking-callback . ,Bar_line::before_line_breaking)
77 (time-signature . (extra-space . 0.75))
78 (custos . (minimum-space . 2.0))
79 (clef . (minimum-space . 1.0))
80 (key-signature . (extra-space . 1.0))
81 (first-note . (extra-space . 1.3))
82 (right-edge . (extra-space . 0.0))
86 ;; Ross. page 151 lists other values, we opt for a leaner look
90 (hair-thickness . 1.6)
91 (thick-thickness . 6.0)
92 (meta . ((interfaces . (bar-line-interface item-interface break-aligned-interface font-interface))))
98 (molecule-callback . ,brew-new-markup-molecule)
100 (break-visibility . ,begin-of-line-visible)
103 (font-family . roman)
104 (font-relative-size . -1)
105 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
106 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
107 (self-alignment-X . 1)
108 (extra-offset . (1.3 . 0))
110 ((interfaces . (side-position-interface
112 self-alignment-interface
113 font-interface item-interface break-aligned-interface))))
119 (molecule-callback . ,brew-new-markup-molecule)
120 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
122 (font-family . number)
123 (font-relative-size . -1)
125 (meta . ((interfaces . (text-interface rhythmic-grob-interface
126 bass-figure-interface item-interface
127 self-alignment-interface font-interface))))
131 ;; todo: clean this up a bit: the list is getting
133 (molecule-callback . ,Beam::brew_molecule)
134 (concaveness-gap . 2.0)
135 (concaveness-threshold . 0.08)
137 (positions . (#f . #f))
138 (position-callbacks . (,Beam::least_squares
141 ,Beam::shift_region_to_valid
145 ;; TODO: should be in SLT.
146 (thickness . 0.48) ; in staff-space
147 (before-line-breaking-callback . ,Beam::before_line_breaking)
148 (after-line-breaking-callback . ,Beam::after_line_breaking)
149 (neutral-direction . -1)
150 (dir-function . ,beam-dir-majority-median)
152 ;; Whe have some unreferenced problems here.
154 ;; If we shorten beamed stems less than normal stems (1 staffspace),
155 ;; or high order less than 8th beams, patterns like
156 ;; c''4 [c''8 c''] c''4 [c''16 c]
157 ;; are ugly (different stem lengths).
159 ;; But if we shorten 16th beams as much as 8th beams, a single
160 ;; forced 16th beam looks *very* short.
162 ;; We choose to shorten 8th beams the same as single stems,
163 ;; and high order beams less than 8th beams, so that all
164 ;; isolated shortened beams look nice and a bit shortened,
165 ;; sadly possibly breaking patterns with high order beams.
166 (beamed-stem-shorten . (1.0 0.5 0.25))
168 (outer-stem-length-limit . 0.2)
170 (flag-width-function . ,beam-flag-width-function)
172 (auto-knee-gap . 5.5)
174 ;; only for debugging.
175 ; (font-name . "cmr10")
177 (space-function . ,Beam::space_function)
178 (meta . ((interfaces . (staff-symbol-referencer-interface beam-interface spanner-interface))))
186 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
187 (meta . ((interfaces . (break-alignment-interface item-interface axis-group-interface)))))
193 (X-offset-callbacks . (,Break_align_interface::alignment_callback))
194 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
195 (meta . ((interfaces . (break-aligned-interface item-interface axis-group-interface item-interface ))))
200 (break-align-symbol . breathing-sign)
203 (ambitus . (extra-space . 2.0))
204 (custos . (minimum-space . 1.0))
205 (key-signature . (minimum-space . 1.5))
206 (staff-bar . (minimum-space . 1.5))
207 (clef . (minimum-space . 2.0))
208 (first-note . (minimum-space . 1.0))
209 (right-edge . (extra-space . 0.1))
211 (molecule-callback . ,Breathing_sign::brew_molecule)
213 (font-family . music)
214 (text . "scripts-rcomma")
215 (Y-offset-callbacks . (,Breathing_sign::offset_callback))
216 (break-visibility . ,begin-of-line-invisible)
217 (meta . ((interfaces . (break-aligned-interface breathing-sign-interface text-interface font-interface item-interface ))))
222 (molecule-callback . ,Clef::brew_molecule)
223 (before-line-breaking-callback . ,Clef::before_line_breaking)
225 (font-family . music)
226 (break-align-symbol . clef)
227 (break-visibility . ,begin-of-line-visible)
229 (ambitus . (extra-space . 2.0))
230 (staff-bar . (minimum-space . 3.7))
231 (key-signature . (minimum-space . 4.0))
232 (time-signature . (minimum-space . 4.2))
233 (first-note . (minimum-space . 5.0))
234 (next-note . (extra-space . 0.5))
235 (right-edge . (extra-space . 0.5))
237 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
238 (meta . ((interfaces . (clef-interface staff-symbol-referencer-interface font-interface break-aligned-interface item-interface ))))
243 (molecule-callback . ,Cluster::brew_molecule)
244 (spacing-procedure . ,Spanner::set_spacing_rods)
245 (minimum-length . 0.0)
247 (shape . leftsided-stairs)
248 (meta . ((interfaces . (cluster-interface spanner-interface))))
253 (molecule-callback . ,new-chord-name-brew-molecule)
254 (after-line-breaking-callback . ,Chord_name::after_line_breaking)
256 (font-family . roman)
257 (meta . ((interfaces . (font-interface rhythmic-grob-interface
258 text-interface chord-name-interface item-interface ))))
263 (break-align-symbol . custos)
265 (molecule-callback . ,Custos::brew_molecule)
266 (break-visibility . ,end-of-line-visible)
268 (neutral-position . 0)
269 (neutral-direction . -1)
270 (adjust-if-on-staffline . #t)
271 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
273 (first-note . (minimum-space . 0.0))
274 (right-edge . (extra-space . 0.1))
277 . (custos-interface staff-symbol-referencer-interface
279 break-aligned-interface item-interface ))))
287 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
288 (X-offset-callbacks . (,Dot_column::side_position))
289 (meta . ((interfaces . (dot-column-interface axis-group-interface item-interface ))))
294 (molecule-callback . ,Dots::brew_molecule)
296 (Y-offset-callbacks . (,Dots::quantised_position_callback ,Staff_symbol_referencer::callback))
297 (meta . ((interfaces . (font-interface staff-symbol-referencer-interface dots-interface item-interface ))))
300 (DoublePercentRepeat .
302 (molecule-callback . ,Percent_repeat_item_interface::double_percent)
305 (font-family . music)
308 (break-align-symbol . staff-bar)
309 (break-visibility . ,begin-of-line-invisible)
310 (meta . ((interfaces . (font-interface
311 break-aligned-interface
312 percent-repeat-interface item-interface ))))
317 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
318 (molecule-callback . ,brew-new-markup-molecule)
319 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
320 ,Self_alignment_interface::centered_on_parent))
321 (self-alignment-X . 0)
322 (no-spacing-rods . #t)
323 (script-priority . 100)
325 (font-family . dynamic)
326 (font-shape . italic)
327 (self-alignment-Y . 0)
328 (meta . ((interfaces . (font-interface text-interface self-alignment-interface dynamic-interface script-interface item-interface ))))
334 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
335 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
337 (minimum-space . 1.2)
339 (meta . ((interfaces . (dynamic-interface axis-group-interface side-position-interface spanner-interface))))
344 (break-align-symbol . left-edge)
345 (X-extent-callback . ,Grob::point_dimension_callback)
348 (custos . (extra-space . 0.0))
349 (ambitus . (extra-space . 2.0))
350 (time-signature . (extra-space . 0.0))
351 (staff-bar . (extra-space . 0.0))
352 (breathing-sign . (minimum-space . 0.0))
353 (clef . (extra-space . 1.0))
354 (first-note . (extra-space . 1.0))
355 (right-edge . (extra-space . 0.0))
356 (key-signature . (extra-space . 0.0))
358 (meta . ((interfaces . (break-aligned-interface item-interface ))))
363 (molecule-callback . ,brew-new-markup-molecule)
366 (self-alignment-X . 0)
367 (self-alignment-Y . 0)
368 (script-priority . 100)
369 (font-family . number)
370 (font-relative-size . -3)
371 (font-shape . upright)
372 (meta . ((interfaces . (finger-interface font-interface text-script-interface text-interface side-position-interface self-alignment-interface item-interface ))))
376 (HaraKiriVerticalGroup
378 (Y-offset-callbacks . (,Hara_kiri_group_spanner::force_hara_kiri_callback))
379 (Y-extent-callback . ,Hara_kiri_group_spanner::y_extent)
381 (meta . ((interfaces . (axis-group-interface hara-kiri-group-interface item-interface spanner-interface))))
386 (molecule-callback . ,Hairpin::brew_molecule)
389 (spacing-procedure . ,Spanner::set_spacing_rods)
390 (minimum-length . 2.0)
391 (if-text-padding . 1.0)
392 (width-correct . -1.0)
394 (dash-thickness . 1.2)
396 (self-alignment-Y . 0)
397 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
398 (meta . ((interfaces . (hairpin-interface self-alignment-interface dynamic-interface spanner-interface))))
404 (molecule-callback . ,Horizontal_bracket::brew_molecule)
405 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
408 (meta . ((interfaces . (horizontal-bracket-interface side-position-interface spanner-interface))))
413 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self
414 ,Side_position_interface::aligned_on_support_refpoints))
415 ;; huh? what's this for?
418 (left-edge . (extra-space . 1.0))
421 (self-alignment-Y . 0)
422 (molecule-callback . ,brew-new-markup-molecule)
423 (break-align-symbol . instrument-name)
424 (break-visibility . ,begin-of-line-visible)
426 (font-family . roman)
427 (meta . ((interfaces . (font-interface self-alignment-interface side-position-interface text-interface break-aligned-interface item-interface ))))
432 (molecule-callback . ,Key_signature_interface::brew_molecule)
434 (time-signature . (extra-space . 1.25))
435 (staff-bar . (extra-space . 1.1))
436 (right-edge . (extra-space . 0.5))
437 (first-note . (extra-space . 2.5))
439 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
440 (break-align-symbol . key-signature)
441 (break-visibility . ,begin-of-line-visible)
443 (meta . ((interfaces . (key-signature-interface font-interface break-aligned-interface item-interface ))))
448 (ligature-primitive-callback . ,Note_head::brew_molecule)
453 (edge-widen . (0.0 . 0.0))
454 (edge-height . (0.7 . 0.7))
455 (shorten-pair . (-0.2 . -0.2))
456 (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
457 (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
458 (molecule-callback . ,Tuplet_bracket::brew_molecule)
459 (meta . ((interfaces . (tuplet-bracket-interface spanner-interface))))
466 (minimum-length . 0.5)
467 (maximum-length . 100)
468 (molecule-callback . ,Hyphen_spanner::brew_molecule)
469 (Y-extent-callback . ,Grob::point_dimension_callback)
470 (meta . ((interfaces . (lyric-hyphen-interface spanner-interface))))
475 (molecule-callback . ,Lyric_extender::brew_molecule)
476 (height . 0.8) ; stafflinethickness;
477 (right-trim-amount . 0.5)
478 (Y-extent-callback . ,Grob::point_dimension_callback)
479 (meta . ((interfaces . (lyric-extender-interface spanner-interface))))
484 (molecule-callback . ,brew-new-markup-molecule)
485 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent
486 ,Self_alignment_interface::aligned_on_self))
487 (self-alignment-X . 0)
489 (ignore-length-mismatch . #f)
490 (begin-alignment . 4)
492 (font-family . roman)
493 (font-shape . upright)
495 ;; duh, side-position-interface?
496 (meta . ((interfaces . (rhythmic-grob-interface lyric-syllable-interface self-alignment-interface text-interface font-interface item-interface ))))
503 (ligature-primitive-callback . ,Mensural_ligature::brew_ligature_primitive)
504 (molecule-callback . ,Mensural_ligature::brew_molecule)
505 (meta . ((interfaces . (mensural-ligature-interface font-interface))))
510 (molecule-callback . ,brew-new-markup-molecule)
511 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
512 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
513 (self-alignment-X . 0)
514 (break-align-symbol . time-signature)
517 (font-family . roman)
519 (break-visibility . ,end-of-line-invisible)
521 (meta . ((interfaces . (text-interface side-position-interface font-interface mark-interface self-alignment-interface item-interface ))))
525 (molecule-callback . ,brew-new-markup-molecule)
526 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
529 (font-family . roman)
530 (break-visibility . ,end-of-line-invisible)
532 (meta . ((interfaces . (text-interface side-position-interface font-interface metronome-mark-interface item-interface))))
536 (Y-offset-callbacks . (,Side_position_interface::out_of_staff
537 ,Side_position_interface::aligned_side))
538 (molecule-callback . ,Measure_grouping::brew_molecule)
544 (meta . ((interfaces . (spanner-interface side-position-interface measure-grouping-interface))))
548 (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
549 (molecule-callback . ,Multi_measure_rest::brew_molecule)
550 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
553 (thick-thickness . 6.6)
554 (hair-thickness . 2.0)
556 (meta . ((interfaces . (multi-measure-rest-interface rest-interface font-interface staff-symbol-referencer-interface))))
559 (MultiMeasureRestNumber
561 (molecule-callback . ,brew-new-markup-molecule)
562 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
563 ,Self_alignment_interface::centered_on_other_axis_parent))
564 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
565 (self-alignment-X . 0)
568 (font-family . number)
569 (meta . ((interfaces . (side-position-interface self-alignment-interface font-interface spanner-interface text-interface))))
571 (MultiMeasureRestText
573 (molecule-callback . ,brew-new-markup-molecule)
574 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
575 ,Self_alignment_interface::centered_on_other_axis_parent))
576 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
577 (self-alignment-X . 0)
580 (font-family . roman)
581 (meta . ((interfaces . (side-position-interface self-alignment-interface font-interface spanner-interface text-interface))))
586 ;; Ugh, should not be hard-coded.
588 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
589 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
590 (meta . ((interfaces . (note-collision-interface axis-group-interface item-interface ))))
596 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
597 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
598 (meta . ((interfaces . (axis-group-interface note-column-interface item-interface ))))
604 (molecule-callback . ,Note_head::brew_molecule)
605 (ligature-primitive-callback . ,Note_head::brew_molecule)
606 (glyph-name-procedure . ,find-notehead-symbol)
607 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
608 (stem-attachment-function . ,note-head-style->attachment-coordinates)
609 (meta . ((interfaces . (rhythmic-grob-interface rhythmic-head-interface font-interface note-head-interface staff-symbol-referencer-interface item-interface ))))
616 (zigzag-width . 0.75)
618 (X-extent-callback . #f)
619 (Y-extent-callback . #f)
620 (after-line-breaking-callback . ,Line_spanner::after_line_breaking)
621 (molecule-callback . ,Line_spanner::brew_molecule)
622 (meta . ((interfaces . (line-spanner-interface spanner-interface))))
630 (X-extent-callback . #f)
631 (Y-extent-callback . #f)
632 (molecule-callback . ,Line_spanner::brew_molecule)
633 (after-line-breaking-callback . ,Line_spanner::after_line_breaking)
634 (meta . ((interfaces . (line-spanner-interface spanner-interface))))
639 (molecule-callback . ,brew-new-markup-molecule)
640 (font-family . roman)
641 (meta . ((interfaces . (note-name-interface text-interface font-interface item-interface ))))
646 (self-alignment-X . 0)
648 (break-visibility . ,begin-of-line-visible)
649 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent ,Self_alignment_interface::aligned_on_self))
650 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
651 (molecule-callback . ,brew-new-markup-molecule)
652 (font-shape . italic)
654 (font-relative-size . -2)
655 (font-family . roman)
656 (meta . ((interfaces . (text-interface self-alignment-interface side-position-interface font-interface item-interface ))))
662 (before-line-breaking-callback . ,Paper_column::before_line_breaking)
663 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
665 ; (molecule-callback . ,Paper_column::brew_molecule) (font-name . "cmr8") (Y-extent-callback . #f)
666 (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
671 (molecule-callback . ,Slur::brew_molecule)
673 (spacing-procedure . ,Spanner::set_spacing_rods)
674 (minimum-length . 1.5)
675 (after-line-breaking-callback . ,Slur::after_line_breaking)
676 (extremity-rules . ,default-slur-extremity-rules)
677 (extremity-offset-alist . ,default-phrasing-slur-extremity-offset-alist)
678 (de-uglify-parameters . (1.5 0.8 -2.0))
679 (Y-extent-callback . ,Slur::height)
684 (attachment . (#f . #f))
685 (attachment-offset . ((0 . 0) . (0 . 0)))
687 (details . ((force-blowfit . 0.5)
688 (bezier-pct-c0 . -0.2) (bezier-pct-c3 . 0.000006)
689 (bezier-pct-out-max . 0.8) (bezier-pct-in-max . 1.2)
690 (bezier-area-steps . 1.0)))
691 (meta . ((interfaces . (slur-interface spanner-interface))))
694 (NonMusicalPaperColumn
697 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
698 (before-line-breaking-callback . ,Paper_column::before_line_breaking)
699 ;; debugging stuff: print column number.
700 ; (molecule-callback . ,Paper_column::brew_molecule) (font-name . "cmr8") (Y-extent-callback . #f)
703 (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
708 (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
709 (molecule-callback . ,Multi_measure_rest::percent)
712 (minimum-width . 12.5) ; staffspace
713 (font-family . music)
714 (meta . ((interfaces . (multi-measure-rest-interface spanner-interface font-interface percent-repeat-interface))))
717 (PianoPedalBracket ;; an example of a text spanner
719 (molecule-callback . ,Text_spanner::brew_molecule)
720 (font-family . roman)
722 (if-text-padding . 1.0)
724 (enclose-bounds . #t)
726 (edge-widen . (0.5 . 0.5))
727 (edge-height . (1.0 . 1.0))
728 (shorten-pair . (0.0 . 0.0))
730 (meta . ((interfaces . (text-spanner-interface piano-pedal-interface spanner-interface))))
735 (molecule-callback . , Percent_repeat_item_interface::beat_slash)
738 (meta . ((interfaces . (percent-repeat-interface item-interface ))))
742 (after-line-breaking-callback . ,Rest::after_line_breaking)
743 (X-extent-callback . ,Rest::extent_callback)
744 (Y-extent-callback . ,Rest::extent_callback)
745 (molecule-callback . ,Rest::brew_molecule)
746 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
747 (minimum-beam-collision-distance . 0.75)
749 (interfaces . (font-interface
750 rhythmic-head-interface
751 rhythmic-grob-interface
753 staff-symbol-referencer-interface
754 rest-interface item-interface ))
759 (minimum-distance . 0.75)
760 (meta . ((interfaces . (rest-collision-interface item-interface ))))
765 ;; don't set direction here: it breaks staccato.
766 (molecule-callback . ,Script_interface::brew_molecule)
768 ;; This value is sensitive: if too large, staccato dots will move a
771 ;; (script-priority . 0) priorities for scripts, see script.scm
772 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent))
773 (before-line-breaking-callback . ,Script_interface::before_line_breaking)
774 (font-family . music)
775 (meta . ((interfaces . (script-interface side-position-interface font-interface item-interface ))))
780 (before-line-breaking-callback . ,Script_column::before_line_breaking)
781 (meta . ((interfaces . (script-column-interface item-interface ))))
786 (molecule-callback . ,Slur::brew_molecule)
788 (spacing-procedure . ,Spanner::set_spacing_rods)
789 (minimum-length . 1.5)
790 (after-line-breaking-callback . ,Slur::after_line_breaking)
791 (extremity-rules . ,default-slur-extremity-rules)
792 (extremity-offset-alist . ,default-slur-extremity-offset-alist)
793 (de-uglify-parameters . (1.5 0.8 -2.0))
794 (Y-extent-callback . ,Slur::height)
799 (attachment . (#f . #f))
800 (attachment-offset . ((0 . 0) . (0 . 0)))
802 (details . ((force-blowfit . 0.5)
803 (bezier-pct-c0 . -0.2) (bezier-pct-c3 . 0.000006)
804 (bezier-pct-out-max . 0.8) (bezier-pct-in-max . 1.2)
805 (bezier-area-steps . 1.0)))
806 (meta . ((interfaces . (slur-interface spanner-interface))))
811 (spacing-procedure . ,Spacing_spanner::set_springs)
812 (grace-space-factor . 0.6)
813 (shortest-duration-space . 2.0)
814 (spacing-increment . 1.2)
815 (base-shortest-duration . ,(ly:make-moment 1 8))
816 (meta . ((interfaces . (spacing-interface spacing-spanner-interface spanner-interface))))
821 (break-align-symbol . staff-bar)
822 (bar-size-procedure . ,Span_bar::get_bar_size)
823 (molecule-callback . ,Span_bar::brew_molecule)
824 (break-visibility . ,begin-of-line-invisible)
825 (X-extent-callback . ,Span_bar::width_callback)
826 (Y-extent-callback . ())
829 (before-line-breaking-callback . ,Span_bar::before_line_breaking)
833 ;; Ross. page 151 lists other values, we opt for a leaner look
837 (hair-thickness . 1.6)
838 (thick-thickness . 6.0)
839 (meta . ((interfaces . (span-bar-interface font-interface
840 bar-line-interface item-interface ))))
846 (molecule-callback . ,brew-new-markup-molecule)
847 (break-align-symbol . clef)
848 (break-visibility . ,begin-of-line-visible)
849 (font-family . roman)
850 (meta . ((interfaces . (break-aligned-interface text-interface font-interface item-interface ))))
856 (stem-spacing-correction . 0.4)
858 (meta . ((interfaces . (spacing-interface staff-spacing-interface item-interface ))))
862 (stem-spacing-correction . 0.5)
864 ;; Changed this from 0.75.
865 ;; If you ever change this back, please document! --hwn
866 (knee-spacing-correction . 1.0)
868 (meta . ((interfaces . (spacing-interface note-spacing-interface item-interface ))))
873 (molecule-callback . ,Staff_symbol::brew_molecule)
876 (meta . ((interfaces . (staff-symbol-interface spanner-interface))))
881 (molecule-callback . ,brew-new-markup-molecule)
883 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
884 (no-spacing-rods . #t)
885 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
887 (font-family . roman)
888 (font-shape . italic)
889 (self-alignment-X . 0)
890 (meta . ((interfaces . (text-interface self-alignment-interface font-interface item-interface))))
893 (SostenutoPedalLineSpanner
896 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
897 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
901 (minimum-space . 1.0)
903 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
909 ;; this list is rather long. Trim --hwn
910 (before-line-breaking-callback . ,Stem::before_line_breaking)
911 (molecule-callback . ,Stem::brew_molecule)
914 ;; 3.5 (or 3 measured from note head) is standar length
915 ;; 32nd, 64th flagged stems should be longer
916 (lengths . (3.5 3.5 3.5 4.5 5.0))
918 ;; Stems in unnatural (forced) direction should be shortened by
919 ;; one staff space, according to [Roush & Gourlay].
920 ;; Flagged stems we shorten only half a staff space.
921 (stem-shorten . (1.0 0.5))
923 ;; default stem direction for note on middle line
924 (neutral-direction . -1)
926 ;; [Wanske]: standard length (but no shorter than minimum).
927 ;; (beamed-lengths . (3.5))
929 ;; FIXME. 3.5 yields too long beams (according to Ross and
930 ;; looking at Baerenreiter examples) for a number of common
931 ;; boundary cases. Subtracting half a beam thickness fixes
932 ;; this, but the bug may well be somewhere else.
933 (beamed-lengths . (3.26 3.26 1.5))
935 ;; [Wanske] lists three sets of minimum lengths. One
936 ;; set for the nomal case, and one set for beams with `der
937 ;; Balkenendpunkt weiter "uber bzw. unter die Systemgrenze
938 ;; hinaus (bei Gruppen mit grossem Tonumfang)' and the extreme
941 ;; Note that Wanske lists numbers lengths starting from top of
942 ;; head, so we must add half a staff space.
944 ;; We use the normal minima as minimum for the ideal lengths,
945 ;; and the extreme minima as abolute minimum length.
947 ;; The 'normal' minima
948 (beamed-minimum-free-lengths . (2.5 2.0 1.0))
950 ;; The 'extreme case' minima
951 (beamed-extreme-minimum-free-lengths . (1.83 1.5 1.25))
953 (X-offset-callbacks . (,Stem::off_callback))
954 (X-extent-callback . ,Stem::dim_callback)
955 (Y-extent-callback . ,Stem::height)
956 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
957 (adjust-if-on-staffline . #t)
958 (font-family . music)
959 (avoid-note-head . #f)
961 (meta . ((interfaces . (stem-interface font-interface item-interface ))))
966 (molecule-callback . ,Stem_tremolo::brew_molecule)
967 (Y-extent-callback . ,Stem_tremolo::height)
968 (X-extent-callback . #f)
970 (beam-width . 1.6) ; staff-space
971 (beam-thickness . 0.48) ; staff-space
972 (meta . ((interfaces . (stem-tremolo-interface item-interface ))))
977 (meta . ((interfaces . (spacing-interface separation-item-interface item-interface ))))
980 (SeparatingGroupSpanner
982 (spacing-procedure . ,Separating_group_spanner::set_spacing_rods)
983 (meta . ((interfaces . (spacing-interface separation-spanner-interface spanner-interface))))
988 (no-spacing-rods . #t)
989 (molecule-callback . ,Sustain_pedal::brew_molecule)
990 (self-alignment-X . 0)
992 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
994 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
995 (meta . ((interfaces . (piano-pedal-interface text-spanner-interface text-interface self-alignment-interface font-interface item-interface))))
998 (SustainPedalLineSpanner
1001 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1002 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1005 (minimum-space . 1.0)
1007 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
1013 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1014 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1015 (meta . ((interfaces . (system-interface axis-group-interface spanner-interface))))
1021 (molecule-callback . ,System_start_delimiter::brew_molecule)
1022 (collapse-height . 5.0)
1023 (font-family . braces)
1024 (Y-extent-callback . #f)
1025 (meta . ((interfaces . (system-start-delimiter-interface font-interface))))
1030 (Y-extent-callback . #f)
1031 (molecule-callback . ,System_start_delimiter::brew_molecule)
1037 (bracket-collapse-height . 1)
1039 (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1044 (Y-extent-callback . #f)
1045 (molecule-callback . ,System_start_delimiter::brew_molecule)
1046 (glyph . "bar-line")
1048 (after-line-breaking-callback . ,System_start_delimiter::after_line_breaking)
1049 (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1054 (molecule-callback . ,brew-new-markup-molecule)
1055 (no-spacing-rods . #t)
1056 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1059 (script-priority . 200)
1060 ;; todo: add X self alignment?
1062 (font-family . roman)
1063 (meta . ((interfaces . (text-script-interface text-interface side-position-interface font-interface item-interface ))))
1068 (molecule-callback . ,Text_spanner::brew_molecule)
1069 (font-family . roman)
1072 ;; urg, only for (de)cresc. text spanners
1073 (if-text-padding . 1.0)
1074 (width-correct . -1)
1076 (meta . ((interfaces . (text-spanner-interface side-position-interface font-interface spanner-interface))))
1081 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1082 (molecule-callback . ,Text_spanner::brew_molecule)
1083 (font-family . roman)
1084 (enclose-bounds . #t)
1085 (width-correct . 0.0)
1086 (style . dashed-line)
1087 (edge-height . (0 . 1.5))
1089 (meta . ((interfaces . (text-spanner-interface side-position-interface font-interface spanner-interface))))
1094 (font-family . roman)
1096 (molecule-callback . ,tablature-molecule-callback)
1097 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
1098 (extra-offset . (0 . -0.65)) ;; UGH! TODO: Clean this up!
1099 (stem-attachment-function . ,tablature-stem-attachment-function)
1100 (meta . ((interfaces
1101 . (rhythmic-head-interface
1103 note-head-interface staff-symbol-referencer-interface
1104 text-interface item-interface ))))
1110 (molecule-callback . ,Tie::brew_molecule)
1111 (spacing-procedure . ,Spanner::set_spacing_rods)
1112 (staffline-clearance . 0.35)
1113 (details . ((ratio . 0.333) (height-limit . 1.0)))
1117 (minimum-length . 2.5)
1118 (meta . ((interfaces . (tie-interface spanner-interface))))
1123 (after-line-breaking-callback . ,Tie_column::after_line_breaking)
1124 (X-extent-callback . ())
1125 (Yoo-extent-callback . ())
1126 (meta . ((interfaces . (tie-column-interface spanner-interface))))
1131 (molecule-callback . ,Time_signature::brew_molecule)
1132 (break-align-symbol . time-signature)
1133 (break-visibility . ,all-visible)
1135 (first-note . (extra-space . 2.0))
1136 (right-edge . (extra-space . 0.5))
1137 (staff-bar . (minimum-space . 2.0))
1141 (font-family . number)
1142 (meta . ((interfaces . (time-signature-interface break-aligned-interface font-interface item-interface ))))
1150 (edge-widen . (0.0 . 0.0))
1151 (edge-height . (0.7 . 0.7))
1152 (shorten-pair . (-0.2 . -0.2))
1153 (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
1154 (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
1155 (molecule-callback . ,Tuplet_bracket::brew_molecule)
1156 (font-family . roman)
1157 (font-shape . italic)
1159 (font-relative-size . -1)
1160 (meta . ((interfaces . (text-interface tuplet-bracket-interface font-interface spanner-interface))))
1165 (molecule-callback . ,brew-new-markup-molecule)
1166 (font-family . roman)
1167 (font-shape . italic)
1168 (no-spacing-rods . #t)
1169 (self-alignment-X . 0)
1172 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
1173 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1174 (meta . ((interfaces . (text-interface self-alignment-interface font-interface item-interface ))))
1177 (UnaCordaPedalLineSpanner
1180 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1181 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1184 (minimum-space . 1.0)
1186 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
1193 (ligature-primitive-callback . ,Vaticana_ligature::brew_ligature_primitive)
1194 (molecule-callback . ,Vaticana_ligature::brew_molecule)
1195 (meta . ((interfaces . (vaticana-ligature-interface font-interface))))
1200 (molecule-callback . ,Volta_bracket_interface::brew_molecule)
1203 (font-style . volta)
1204 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1205 (thickness . 1.6) ; stafflinethickness
1206 (height . 2.0) ; staffspace;
1208 (font-family . number)
1209 (font-relative-size . -2)
1210 (meta . ((interfaces . (volta-bracket-interface text-interface side-position-interface font-interface spanner-interface))))
1216 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1218 (meta . ((interfaces . (align-interface axis-group-interface spanner-interface))))
1224 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1226 (meta . ((interfaces . (axis-group-interface spanner-interface))))
1234 (define (completize-grob-entry x)
1235 "transplant assoc key into 'name entry of 'meta of X
1237 (let* ((name-sym (car x))
1238 (grob-entry (cdr x))
1239 (metaentry (cdr (assoc 'meta grob-entry)))
1241 (cdr (assoc 'interfaces metaentry)))
1244 (set! metaentry (assoc-set! metaentry 'name name-sym))
1245 (set! metaentry (assoc-set! metaentry 'interfaces
1246 (cons 'grob-interface ifaces-entry)))
1247 (set! grob-entry (assoc-set! grob-entry 'meta metaentry))
1248 (cons name-sym grob-entry)))
1250 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
1254 ; (display (map pair? all-grob-descriptions))
1257 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
1260 ; (display (car x)) (newline)
1262 (set-object-property! (car x) 'translation-type? list?)
1263 (set-object-property! (car x) 'is-grob? #t))
1264 all-grob-descriptions)
1267 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))