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 (first-note . (extra-space . 1.3))
81 (right-edge . (extra-space . 0.0))
85 ;; Ross. page 151 lists other values, we opt for a leaner look
89 (hair-thickness . 1.6)
90 (thick-thickness . 6.0)
91 (meta . ((interfaces . (bar-line-interface item-interface break-aligned-interface font-interface))))
97 (molecule-callback . ,Text_item::brew_molecule)
99 (break-visibility . ,begin-of-line-visible)
102 (font-family . roman)
103 (font-relative-size . -1)
104 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
105 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
106 (self-alignment-X . 1)
107 (extra-offset . (1.3 . 0))
109 ((interfaces . (side-position-interface
111 self-alignment-interface
112 font-interface item-interface break-aligned-interface))))
118 (molecule-callback . ,brew-new-markup-molecule)
119 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
121 (font-family . number)
122 (font-relative-size . -1)
124 (meta . ((interfaces . (text-interface rhythmic-grob-interface
125 bass-figure-interface item-interface
126 self-alignment-interface font-interface))))
130 ;; todo: clean this up a bit: the list is getting
132 (molecule-callback . ,Beam::brew_molecule)
133 (concaveness-gap . 2.0)
134 (concaveness-threshold . 0.08)
135 (positions . (#f . #f))
136 (position-callbacks . (,Beam::least_squares
139 ,Beam::shift_region_to_valid
143 ;; TODO: should be in SLT.
144 (thickness . 0.48) ; in staff-space
145 (before-line-breaking-callback . ,Beam::before_line_breaking)
146 (after-line-breaking-callback . ,Beam::after_line_breaking)
147 (neutral-direction . -1)
148 (dir-function . ,beam-dir-majority-median)
150 ;; Whe have some unreferenced problems here.
152 ;; If we shorten beamed stems less than normal stems (1 staffspace),
153 ;; or high order less than 8th beams, patterns like
154 ;; c''4 [c''8 c''] c''4 [c''16 c]
155 ;; are ugly (different stem lengths).
157 ;; But if we shorten 16th beams as much as 8th beams, a single
158 ;; forced 16th beam looks *very* short.
160 ;; We choose to shorten 8th beams the same as single stems,
161 ;; and high order beams less than 8th beams, so that all
162 ;; isolated shortened beams look nice and a bit shortened,
163 ;; sadly possibly breaking patterns with high order beams.
164 (beamed-stem-shorten . (1.0 0.5 0.25))
166 (outer-stem-length-limit . 0.2)
168 (flag-width-function . ,beam-flag-width-function)
170 (auto-knee-gap . 5.5)
171 (font-name . "cmr10")
172 (space-function . ,Beam::space_function)
173 (meta . ((interfaces . (staff-symbol-referencer-interface beam-interface spanner-interface))))
181 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
182 (meta . ((interfaces . (break-alignment-interface item-interface axis-group-interface)))))
188 (X-offset-callbacks . (,Break_align_interface::alignment_callback))
189 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
190 (meta . ((interfaces . (break-aligned-interface item-interface axis-group-interface item-interface ))))
195 (break-align-symbol . breathing-sign)
198 (ambitus . (extra-space . 2.0))
199 (custos . (minimum-space . 1.0))
200 (key-signature . (minimum-space . 1.5))
201 (staff-bar . (minimum-space . 1.5))
202 (clef . (minimum-space . 2.0))
203 (first-note . (minimum-space . 1.0))
204 (right-edge . (extra-space . 0.1))
206 (molecule-callback . ,Breathing_sign::brew_molecule)
208 (font-family . music)
209 (text . "scripts-rcomma")
210 (Y-offset-callbacks . (,Breathing_sign::offset_callback))
211 (break-visibility . ,begin-of-line-invisible)
212 (meta . ((interfaces . (break-aligned-interface breathing-sign-interface text-interface font-interface item-interface ))))
217 (molecule-callback . ,Clef::brew_molecule)
218 (before-line-breaking-callback . ,Clef::before_line_breaking)
220 (font-family . music)
221 (break-align-symbol . clef)
222 (break-visibility . ,begin-of-line-visible)
224 (ambitus . (extra-space . 2.0))
225 (staff-bar . (minimum-space . 3.7))
226 (key-signature . (minimum-space . 4.0))
227 (time-signature . (minimum-space . 4.2))
228 (first-note . (minimum-space . 5.0))
229 (next-note . (extra-space . 0.5))
230 (right-edge . (extra-space . 0.5))
232 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
233 (meta . ((interfaces . (clef-interface staff-symbol-referencer-interface font-interface break-aligned-interface item-interface ))))
238 (molecule-callback . ,Cluster::brew_molecule)
239 (spacing-procedure . ,Spanner::set_spacing_rods)
240 (minimum-length . 0.0)
242 (shape . leftsided-stairs)
243 (meta . ((interfaces . (cluster-interface spanner-interface))))
248 (molecule-callback . ,new-chord-name-brew-molecule)
249 (after-line-breaking-callback . ,Chord_name::after_line_breaking)
251 (font-family . roman)
252 (meta . ((interfaces . (font-interface rhythmic-grob-interface
253 text-interface chord-name-interface item-interface ))))
258 (break-align-symbol . custos)
260 (molecule-callback . ,Custos::brew_molecule)
261 (break-visibility . ,end-of-line-visible)
263 (neutral-position . 0)
264 (neutral-direction . -1)
265 (adjust-if-on-staffline . #t)
266 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
268 (first-note . (minimum-space . 0.0))
269 (right-edge . (extra-space . 0.1))
272 . (custos-interface staff-symbol-referencer-interface
274 break-aligned-interface item-interface ))))
282 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
283 (X-offset-callbacks . (,Dot_column::side_position))
284 (meta . ((interfaces . (dot-column-interface axis-group-interface item-interface ))))
289 (molecule-callback . ,Dots::brew_molecule)
291 (Y-offset-callbacks . (,Dots::quantised_position_callback ,Staff_symbol_referencer::callback))
292 (meta . ((interfaces . (font-interface staff-symbol-referencer-interface dots-interface item-interface ))))
295 (DoublePercentRepeat .
297 (molecule-callback . ,Percent_repeat_item_interface::double_percent)
300 (font-family . music)
303 (break-align-symbol . staff-bar)
304 (break-visibility . ,begin-of-line-invisible)
305 (meta . ((interfaces . (font-interface
306 break-aligned-interface
307 percent-repeat-interface item-interface ))))
312 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
313 (molecule-callback . ,Text_item::brew_molecule)
314 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
315 ,Self_alignment_interface::centered_on_parent))
316 (self-alignment-X . 0)
317 (no-spacing-rods . #t)
318 (script-priority . 100)
320 (font-family . dynamic)
321 (font-shape . italic)
322 (self-alignment-Y . 0)
323 (meta . ((interfaces . (font-interface text-interface self-alignment-interface dynamic-interface script-interface item-interface ))))
329 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
330 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
332 (minimum-space . 1.2)
334 (meta . ((interfaces . (dynamic-interface axis-group-interface side-position-interface spanner-interface))))
339 (break-align-symbol . left-edge)
340 (X-extent-callback . ,Grob::point_dimension_callback)
343 (custos . (extra-space . 0.0))
344 (ambitus . (extra-space . 2.0))
345 (time-signature . (extra-space . 0.0))
346 (staff-bar . (extra-space . 0.0))
347 (breathing-sign . (minimum-space . 0.0))
348 (clef . (extra-space . 1.0))
349 (first-note . (extra-space . 1.0))
350 (right-edge . (extra-space . 0.0))
351 (key-signature . (extra-space . 0.0))
353 (meta . ((interfaces . (break-aligned-interface item-interface ))))
358 (molecule-callback . ,Text_item::brew_molecule)
361 (self-alignment-X . 0)
362 (self-alignment-Y . 0)
363 (script-priority . 100)
364 (font-family . number)
365 (font-relative-size . -3)
366 (font-shape . upright)
367 (meta . ((interfaces . (finger-interface font-interface text-script-interface text-interface side-position-interface self-alignment-interface item-interface ))))
371 (HaraKiriVerticalGroup
373 (Y-offset-callbacks . (,Hara_kiri_group_spanner::force_hara_kiri_callback))
374 (Y-extent-callback . ,Hara_kiri_group_spanner::y_extent)
376 (meta . ((interfaces . (axis-group-interface hara-kiri-group-interface item-interface spanner-interface))))
381 (molecule-callback . ,Hairpin::brew_molecule)
384 (spacing-procedure . ,Spanner::set_spacing_rods)
385 (minimum-length . 2.0)
386 (if-text-padding . 1.0)
387 (width-correct . -1.0)
389 (dash-thickness . 1.2)
391 (self-alignment-Y . 0)
392 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
393 (meta . ((interfaces . (hairpin-interface self-alignment-interface dynamic-interface spanner-interface))))
399 (molecule-callback . ,Horizontal_bracket::brew_molecule)
400 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
403 (meta . ((interfaces . (horizontal-bracket-interface side-position-interface spanner-interface))))
408 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self
409 ,Side_position_interface::aligned_on_support_refpoints))
410 ;; huh? what's this for?
413 (left-edge . (extra-space . 1.0))
416 (self-alignment-Y . 0)
417 (molecule-callback . ,Text_item::brew_molecule)
418 (break-align-symbol . instrument-name)
419 (break-visibility . ,begin-of-line-visible)
421 (font-family . roman)
422 (meta . ((interfaces . (font-interface self-alignment-interface side-position-interface text-interface break-aligned-interface item-interface ))))
427 (molecule-callback . ,Key_signature_interface::brew_molecule)
429 (time-signature . (extra-space . 1.25))
430 (staff-bar . (extra-space . 1.1))
431 (right-edge . (extra-space . 0.5))
432 (first-note . (extra-space . 2.5))
434 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
435 (break-align-symbol . key-signature)
436 (break-visibility . ,begin-of-line-visible)
438 (meta . ((interfaces . (key-signature-interface font-interface break-aligned-interface item-interface ))))
443 (ligature-primitive-callback . ,Note_head::brew_molecule)
448 (edge-widen . (0.0 . 0.0))
449 (edge-height . (0.7 . 0.7))
450 (shorten-pair . (-0.2 . -0.2))
451 (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
452 (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
453 (molecule-callback . ,Tuplet_bracket::brew_molecule)
454 (meta . ((interfaces . (tuplet-bracket-interface spanner-interface))))
461 (minimum-length . 0.5)
462 (maximum-length . 100)
463 (molecule-callback . ,Hyphen_spanner::brew_molecule)
464 (Y-extent-callback . ,Grob::point_dimension_callback)
465 (meta . ((interfaces . (lyric-hyphen-interface spanner-interface))))
470 (molecule-callback . ,Lyric_extender::brew_molecule)
471 (height . 0.8) ; stafflinethickness;
472 (right-trim-amount . 0.5)
473 (Y-extent-callback . ,Grob::point_dimension_callback)
474 (meta . ((interfaces . (lyric-extender-interface spanner-interface))))
479 (molecule-callback . ,Text_item::brew_molecule)
480 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent
481 ,Self_alignment_interface::aligned_on_self))
482 (self-alignment-X . 0)
484 (ignore-length-mismatch . #f)
485 (begin-alignment . 4)
487 (font-family . roman)
488 (font-shape . upright)
490 ;; duh, side-position-interface?
491 (meta . ((interfaces . (rhythmic-grob-interface lyric-syllable-interface self-alignment-interface text-interface font-interface item-interface ))))
498 (ligature-primitive-callback . ,Mensural_ligature::brew_ligature_primitive)
499 (molecule-callback . ,Mensural_ligature::brew_molecule)
500 (meta . ((interfaces . (mensural-ligature-interface font-interface))))
505 (molecule-callback . ,brew-new-markup-molecule)
506 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
507 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
508 (self-alignment-X . 0)
509 (break-align-symbol . time-signature)
512 (font-family . roman)
514 (break-visibility . ,end-of-line-invisible)
516 (meta . ((interfaces . (text-interface side-position-interface font-interface mark-interface self-alignment-interface item-interface ))))
520 (molecule-callback . ,brew-new-markup-molecule)
521 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
524 (font-family . roman)
525 (break-visibility . ,end-of-line-invisible)
527 (meta . ((interfaces . (text-interface side-position-interface font-interface metronome-mark-interface item-interface))))
531 (Y-offset-callbacks . (,Side_position_interface::out_of_staff
532 ,Side_position_interface::aligned_side))
533 (molecule-callback . ,Measure_grouping::brew_molecule)
539 (meta . ((interfaces . (spanner-interface side-position-interface measure-grouping-interface))))
543 (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
544 (molecule-callback . ,Multi_measure_rest::brew_molecule)
545 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
548 (thick-thickness . 6.6)
549 (hair-thickness . 2.0)
551 (meta . ((interfaces . (multi-measure-rest-interface rest-interface font-interface staff-symbol-referencer-interface))))
554 (MultiMeasureRestNumber
556 (molecule-callback . ,brew-new-markup-molecule)
557 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
558 ,Self_alignment_interface::centered_on_other_axis_parent))
559 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
560 (self-alignment-X . 0)
563 (font-family . number)
564 (meta . ((interfaces . (side-position-interface self-alignment-interface font-interface spanner-interface text-interface))))
566 (MultiMeasureRestText
568 (molecule-callback . ,brew-new-markup-molecule)
569 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
570 ,Self_alignment_interface::centered_on_other_axis_parent))
571 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
572 (self-alignment-X . 0)
575 (font-family . roman)
576 (meta . ((interfaces . (side-position-interface self-alignment-interface font-interface spanner-interface text-interface))))
581 ;; Ugh, should not be hard-coded.
583 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
584 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
585 (meta . ((interfaces . (note-collision-interface axis-group-interface item-interface ))))
591 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
592 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
593 (meta . ((interfaces . (axis-group-interface note-column-interface item-interface ))))
599 (molecule-callback . ,Note_head::brew_molecule)
600 (ligature-primitive-callback . ,Note_head::brew_molecule)
601 (glyph-name-procedure . ,find-notehead-symbol)
602 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
603 (stem-attachment-function . ,note-head-style->attachment-coordinates)
604 (meta . ((interfaces . (rhythmic-grob-interface rhythmic-head-interface font-interface note-head-interface staff-symbol-referencer-interface item-interface ))))
611 (zigzag-width . 0.75)
613 (X-extent-callback . #f)
614 (Y-extent-callback . #f)
615 (molecule-callback . ,Line_spanner::brew_molecule)
616 (meta . ((interfaces . (line-spanner-interface spanner-interface))))
624 (X-extent-callback . #f)
625 (Y-extent-callback . #f)
626 (molecule-callback . ,Line_spanner::brew_molecule)
627 (meta . ((interfaces . (line-spanner-interface spanner-interface))))
632 (molecule-callback . ,Text_item::brew_molecule)
633 (font-family . roman)
634 (meta . ((interfaces . (note-name-interface text-interface font-interface item-interface ))))
639 (self-alignment-X . 0)
641 (break-visibility . ,begin-of-line-visible)
642 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent ,Self_alignment_interface::aligned_on_self))
643 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
644 (molecule-callback . ,Text_item::brew_molecule)
645 (font-shape . italic)
647 (font-relative-size . -2)
648 (font-family . roman)
649 (meta . ((interfaces . (text-interface self-alignment-interface side-position-interface font-interface item-interface ))))
655 (before-line-breaking-callback . ,Paper_column::before_line_breaking)
656 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
658 ; (molecule-callback . ,Paper_column::brew_molecule) (font-name . "cmr8") (Y-extent-callback . #f)
659 (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
664 (molecule-callback . ,Slur::brew_molecule)
666 (spacing-procedure . ,Spanner::set_spacing_rods)
667 (minimum-length . 1.5)
668 (after-line-breaking-callback . ,Slur::after_line_breaking)
669 (extremity-rules . ,default-slur-extremity-rules)
670 (extremity-offset-alist . ,default-phrasing-slur-extremity-offset-alist)
671 (de-uglify-parameters . (1.5 0.8 -2.0))
672 (Y-extent-callback . ,Slur::height)
677 (attachment . (#f . #f))
678 (attachment-offset . ((0 . 0) . (0 . 0)))
680 (details . ((force-blowfit . 0.5)
681 (bezier-pct-c0 . -0.2) (bezier-pct-c3 . 0.000006)
682 (bezier-pct-out-max . 0.8) (bezier-pct-in-max . 1.2)
683 (bezier-area-steps . 1.0)))
684 (meta . ((interfaces . (slur-interface spanner-interface))))
687 (NonMusicalPaperColumn
690 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
691 (before-line-breaking-callback . ,Paper_column::before_line_breaking)
692 ;; debugging stuff: print column number.
693 ; (molecule-callback . ,Paper_column::brew_molecule) (font-name . "cmr8") (Y-extent-callback . #f)
696 (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
701 (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
702 (molecule-callback . ,Multi_measure_rest::percent)
705 (minimum-width . 12.5) ; staffspace
706 (font-family . music)
707 (meta . ((interfaces . (multi-measure-rest-interface spanner-interface font-interface percent-repeat-interface))))
710 (PianoPedalBracket ;; an example of a text spanner
712 (molecule-callback . ,Text_spanner::brew_molecule)
713 (font-family . roman)
715 (if-text-padding . 1.0)
719 (edge-widen . (0.5 . 0.5))
720 (edge-height . (1.0 . 1.0))
721 (shorten-pair . (0.0 . 0.0))
723 (meta . ((interfaces . (text-spanner-interface piano-pedal-interface spanner-interface))))
728 (molecule-callback . , Percent_repeat_item_interface::beat_slash)
731 (meta . ((interfaces . (percent-repeat-interface item-interface ))))
735 (after-line-breaking-callback . ,Rest::after_line_breaking)
736 (X-extent-callback . ,Rest::extent_callback)
737 (Y-extent-callback . ,Rest::extent_callback)
738 (molecule-callback . ,Rest::brew_molecule)
739 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
740 (minimum-beam-collision-distance . 0.75)
742 (interfaces . (font-interface
743 rhythmic-head-interface
744 rhythmic-grob-interface
746 staff-symbol-referencer-interface
747 rest-interface item-interface ))
752 (minimum-distance . 0.75)
753 (meta . ((interfaces . (rest-collision-interface item-interface ))))
758 ;; don't set direction here: it breaks staccato.
759 (molecule-callback . ,Script_interface::brew_molecule)
761 ;; This value is sensitive: if too large, staccato dots will move a
764 ;; (script-priority . 0) priorities for scripts, see script.scm
765 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent))
766 (before-line-breaking-callback . ,Script_interface::before_line_breaking)
767 (font-family . music)
768 (meta . ((interfaces . (script-interface side-position-interface font-interface item-interface ))))
773 (before-line-breaking-callback . ,Script_column::before_line_breaking)
774 (meta . ((interfaces . (script-column-interface item-interface ))))
779 (molecule-callback . ,Slur::brew_molecule)
781 (spacing-procedure . ,Spanner::set_spacing_rods)
782 (minimum-length . 1.5)
783 (after-line-breaking-callback . ,Slur::after_line_breaking)
784 (extremity-rules . ,default-slur-extremity-rules)
785 (extremity-offset-alist . ,default-slur-extremity-offset-alist)
786 (de-uglify-parameters . (1.5 0.8 -2.0))
787 (Y-extent-callback . ,Slur::height)
792 (attachment . (#f . #f))
793 (attachment-offset . ((0 . 0) . (0 . 0)))
795 (details . ((force-blowfit . 0.5)
796 (bezier-pct-c0 . -0.2) (bezier-pct-c3 . 0.000006)
797 (bezier-pct-out-max . 0.8) (bezier-pct-in-max . 1.2)
798 (bezier-area-steps . 1.0)))
799 (meta . ((interfaces . (slur-interface spanner-interface))))
804 (spacing-procedure . ,Spacing_spanner::set_springs)
805 (grace-space-factor . 0.6)
806 (shortest-duration-space . 2.0)
807 (spacing-increment . 1.2)
808 (base-shortest-duration . ,(ly:make-moment 1 8))
809 (meta . ((interfaces . (spacing-interface spacing-spanner-interface spanner-interface))))
814 (break-align-symbol . staff-bar)
815 (bar-size-procedure . ,Span_bar::get_bar_size)
816 (molecule-callback . ,Span_bar::brew_molecule)
817 (break-visibility . ,begin-of-line-invisible)
818 (X-extent-callback . ,Span_bar::width_callback)
819 (Y-extent-callback . ())
822 (before-line-breaking-callback . ,Span_bar::before_line_breaking)
826 ;; Ross. page 151 lists other values, we opt for a leaner look
830 (hair-thickness . 1.6)
831 (thick-thickness . 6.0)
832 (meta . ((interfaces . (span-bar-interface font-interface
833 bar-line-interface item-interface ))))
839 (molecule-callback . ,Text_item::brew_molecule)
840 (break-align-symbol . clef)
841 (break-visibility . ,begin-of-line-visible)
842 (font-family . roman)
843 (meta . ((interfaces . (break-aligned-interface text-interface font-interface item-interface ))))
849 (stem-spacing-correction . 0.4)
850 (knee-spacing-correction . 0.75)
851 (meta . ((interfaces . (spacing-interface staff-spacing-interface item-interface ))))
855 (stem-spacing-correction . 0.5)
856 (knee-spacing-correction . 0.75)
857 (meta . ((interfaces . (spacing-interface note-spacing-interface item-interface ))))
862 (molecule-callback . ,Staff_symbol::brew_molecule)
865 (meta . ((interfaces . (staff-symbol-interface spanner-interface))))
870 (molecule-callback . ,Text_item::brew_molecule)
872 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
873 (no-spacing-rods . #t)
874 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
876 (font-family . roman)
877 (font-shape . italic)
878 (self-alignment-X . 0)
879 (meta . ((interfaces . (text-interface self-alignment-interface font-interface item-interface))))
882 (SostenutoPedalLineSpanner
885 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
886 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
890 (minimum-space . 1.0)
892 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
897 (before-line-breaking-callback . ,Stem::before_line_breaking)
898 (molecule-callback . ,Stem::brew_molecule)
901 ;; 3.5 (or 3 measured from note head) is standar length
902 ;; 32nd, 64th flagged stems should be longer
903 (lengths . (3.5 3.5 3.5 4.5 5.0))
905 ;; Stems in unnatural (forced) direction should be shortened by
906 ;; one staff space, according to [Roush & Gourlay].
907 ;; Flagged stems we shorten only half a staff space.
908 (stem-shorten . (1.0 0.5))
910 ;; default stem direction for note on middle line
911 (neutral-direction . -1)
913 ;; [Wanske]: standard length (but no shorter than minimum).
914 ;; (beamed-lengths . (3.5))
916 ;; FIXME. 3.5 yields too long beams (according to Ross and
917 ;; looking at Baerenreiter examples) for a number of common
918 ;; boundary cases. Subtracting half a beam thickness fixes
919 ;; this, but the bug may well be somewhere else.
920 (beamed-lengths . (3.26))
922 ;; [Wanske] lists three sets of minimum lengths. One
923 ;; set for the nomal case, and one set for beams with `der
924 ;; Balkenendpunkt weiter "uber bzw. unter die Systemgrenze
925 ;; hinaus (bei Gruppen mit grossem Tonumfang)' and the extreme
928 ;; Note that Wanske lists numbers lengths starting from top of
929 ;; head, so we must add half a staff space.
931 ;; We use the normal minima as minimum for the ideal lengths,
932 ;; and the extreme minima as abolute minimum length.
934 ;; The 'normal' minima
935 (beamed-minimum-free-lengths . (2.5 2.0 1.5))
937 ;; The 'far outside staff' minima, not used
938 ;(beamed-far-minimum-free-lengths . (1.83))
940 ;; The 'extreme case' minima
941 (beamed-extreme-minimum-free-lengths . (1.83 1.5))
943 (X-offset-callbacks . (,Stem::off_callback))
944 (X-extent-callback . ,Stem::dim_callback)
945 (Y-extent-callback . ,Stem::height)
946 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
947 (adjust-if-on-staffline . #t)
948 (font-family . music)
949 (avoid-note-head . #f)
951 (meta . ((interfaces . (stem-interface font-interface item-interface ))))
956 (molecule-callback . ,Stem_tremolo::brew_molecule)
957 (Y-extent-callback . ,Stem_tremolo::height)
958 (X-extent-callback . #f)
960 (beam-width . 1.6) ; staff-space
961 (beam-thickness . 0.48) ; staff-space
962 (meta . ((interfaces . (stem-tremolo-interface item-interface ))))
967 (meta . ((interfaces . (spacing-interface separation-item-interface item-interface ))))
970 (SeparatingGroupSpanner
972 (spacing-procedure . ,Separating_group_spanner::set_spacing_rods)
973 (meta . ((interfaces . (spacing-interface separation-spanner-interface spanner-interface))))
978 (no-spacing-rods . #t)
979 (molecule-callback . ,Sustain_pedal::brew_molecule)
980 (self-alignment-X . 0)
982 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
984 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
985 (meta . ((interfaces . (piano-pedal-interface text-spanner-interface text-interface self-alignment-interface font-interface item-interface))))
988 (SustainPedalLineSpanner
991 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
992 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
995 (minimum-space . 1.0)
997 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
1003 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1004 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1005 (meta . ((interfaces . (system-interface axis-group-interface spanner-interface))))
1011 (molecule-callback . ,System_start_delimiter::brew_molecule)
1012 (collapse-height . 5.0)
1013 (font-family . braces)
1014 (Y-extent-callback . #f)
1015 (meta . ((interfaces . (system-start-delimiter-interface font-interface))))
1020 (Y-extent-callback . #f)
1021 (molecule-callback . ,System_start_delimiter::brew_molecule)
1027 (bracket-collapse-height . 1)
1029 (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1034 (Y-extent-callback . #f)
1035 (molecule-callback . ,System_start_delimiter::brew_molecule)
1036 (glyph . "bar-line")
1038 (after-line-breaking-callback . ,System_start_delimiter::after_line_breaking)
1039 (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1044 (molecule-callback . ,Text_item::brew_molecule)
1045 (no-spacing-rods . #t)
1046 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1049 (script-priority . 200)
1050 ;; todo: add X self alignment?
1052 (font-family . roman)
1053 (meta . ((interfaces . (text-script-interface text-interface side-position-interface font-interface item-interface ))))
1058 (molecule-callback . ,Text_spanner::brew_molecule)
1059 (font-family . roman)
1062 ;; urg, only for (de)cresc. text spanners
1063 (if-text-padding . 1.0)
1064 (width-correct . -1)
1067 (meta . ((interfaces . (text-spanner-interface side-position-interface font-interface spanner-interface))))
1072 (font-family . roman)
1074 (molecule-callback . ,tablature-molecule-callback)
1075 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
1076 (extra-offset . (0 . -0.65)) ;; UGH! TODO: Clean this up!
1077 (stem-attachment-function . ,tablature-stem-attachment-function)
1078 (meta . ((interfaces
1079 . (rhythmic-head-interface
1081 note-head-interface staff-symbol-referencer-interface
1082 text-interface item-interface ))))
1088 (molecule-callback . ,Tie::brew_molecule)
1089 (spacing-procedure . ,Spanner::set_spacing_rods)
1090 (staffline-clearance . 0.35)
1091 (details . ((ratio . 0.333) (height-limit . 1.0)))
1095 (minimum-length . 2.5)
1096 (meta . ((interfaces . (tie-interface spanner-interface))))
1101 (after-line-breaking-callback . ,Tie_column::after_line_breaking)
1102 (X-extent-callback . ())
1103 (Yoo-extent-callback . ())
1104 (meta . ((interfaces . (tie-column-interface spanner-interface))))
1109 (molecule-callback . ,Time_signature::brew_molecule)
1110 (break-align-symbol . time-signature)
1111 (break-visibility . ,all-visible)
1113 (first-note . (extra-space . 2.0))
1114 (right-edge . (extra-space . 0.5))
1115 (staff-bar . (minimum-space . 2.0))
1119 (font-family . number)
1120 (meta . ((interfaces . (time-signature-interface break-aligned-interface font-interface item-interface ))))
1128 (edge-widen . (0.0 . 0.0))
1129 (edge-height . (0.7 . 0.7))
1130 (shorten-pair . (-0.2 . -0.2))
1131 (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
1132 (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
1133 (molecule-callback . ,Tuplet_bracket::brew_molecule)
1134 (font-family . roman)
1135 (font-shape . italic)
1137 (font-relative-size . -1)
1138 (meta . ((interfaces . (text-interface tuplet-bracket-interface font-interface spanner-interface))))
1143 (molecule-callback . ,Text_item::brew_molecule)
1144 (font-family . roman)
1145 (font-shape . italic)
1146 (no-spacing-rods . #t)
1147 (self-alignment-X . 0)
1150 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
1151 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1152 (meta . ((interfaces . (text-interface self-alignment-interface font-interface item-interface ))))
1155 (UnaCordaPedalLineSpanner
1158 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1159 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1162 (minimum-space . 1.0)
1164 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
1171 (ligature-primitive-callback . ,Vaticana_ligature::brew_ligature_primitive)
1172 (molecule-callback . ,Vaticana_ligature::brew_molecule)
1173 (meta . ((interfaces . (vaticana-ligature-interface font-interface))))
1178 (molecule-callback . ,Volta_bracket_interface::brew_molecule)
1181 (font-style . volta)
1182 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1183 (thickness . 1.6) ; stafflinethickness
1184 (height . 2.0) ; staffspace;
1186 (font-family . number)
1187 (font-relative-size . -2)
1188 (meta . ((interfaces . (volta-bracket-interface text-interface side-position-interface font-interface spanner-interface))))
1194 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1196 (meta . ((interfaces . (align-interface axis-group-interface spanner-interface))))
1202 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1204 (meta . ((interfaces . (axis-group-interface spanner-interface))))
1212 (define (completize-grob-entry x)
1213 "transplant assoc key into 'name entry of 'meta of X
1215 (let* ((name-sym (car x))
1216 (grob-entry (cdr x))
1217 (metaentry (cdr (assoc 'meta grob-entry)))
1219 (cdr (assoc 'interfaces metaentry)))
1222 (set! metaentry (assoc-set! metaentry 'name name-sym))
1223 (set! metaentry (assoc-set! metaentry 'interfaces
1224 (cons 'grob-interface ifaces-entry)))
1225 (set! grob-entry (assoc-set! grob-entry 'meta metaentry))
1226 (cons name-sym grob-entry)))
1228 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
1232 ; (display (map pair? all-grob-descriptions))
1235 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
1238 ; (display (car x)) (newline)
1240 (set-object-property! (car x) 'translation-type? list?)
1241 (set-object-property! (car x) 'is-grob? #t))
1242 all-grob-descriptions)
1245 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))