1 ;;;; grob-description.scm -- part of generated backend documentation
3 ;;;; source file of the GNU LilyPond music typesetter
5 ;;;; (c) 1998--2002 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-bass-figure)
119 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
121 (font-family . number)
122 (font-relative-size . -1)
126 (meta . ((interfaces . (text-interface bass-figure-interface item-interface 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 (key-signature . (minimum-space . 1.5))
200 (staff-bar . (minimum-space . 1.5))
201 (clef . (minimum-space . 2.0))
202 (first-note . (minimum-space . 1.0))
204 (molecule-callback . ,Text_item::brew_molecule)
206 (font-family . music)
207 (text . "scripts-rcomma")
208 (Y-offset-callbacks . (,Breathing_sign::offset_callback))
209 (break-visibility . ,begin-of-line-invisible)
210 (meta . ((interfaces . (break-aligned-interface breathing-sign-interface text-interface font-interface item-interface ))))
215 (molecule-callback . ,Clef::brew_molecule)
216 (before-line-breaking-callback . ,Clef::before_line_breaking)
218 (font-family . music)
219 (break-align-symbol . clef)
220 (break-visibility . ,begin-of-line-visible)
222 (ambitus . (extra-space . 2.0))
223 (staff-bar . (minimum-space . 3.7))
224 (key-signature . (minimum-space . 4.0))
225 (time-signature . (minimum-space . 4.2))
226 (first-note . (minimum-space . 5.0))
227 (next-note . (extra-space . 0.5))
228 (right-edge . (extra-space . 0.5))
230 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
231 (meta . ((interfaces . (clef-interface staff-symbol-referencer-interface font-interface break-aligned-interface item-interface ))))
236 (molecule-callback . ,Cluster::brew_molecule)
237 (spacing-procedure . ,Spanner::set_spacing_rods)
238 (minimum-length . 0.0)
240 (shape . leftsided-stairs)
241 (meta . ((interfaces . (cluster-interface spanner-interface))))
246 (molecule-callback . ,Chord_name::brew_molecule)
247 (after-line-breaking-callback . ,Chord_name::after_line_breaking)
248 (chord-name-function . ,default-chord-name-function)
249 (font-family . roman)
250 (meta . ((interfaces . (font-interface text-interface chord-name-interface item-interface ))))
255 (break-align-symbol . custos)
257 (molecule-callback . ,Custos::brew_molecule)
258 (break-visibility . ,end-of-line-visible)
260 (neutral-position . 0)
261 (neutral-direction . -1)
262 (adjust-if-on-staffline . #t)
263 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
264 (font-family . ancient)
266 (first-note . (minimum-space . 0.0))
267 (right-edge . (extra-space . 0.1))
270 . (custos-interface staff-symbol-referencer-interface
272 break-aligned-interface item-interface ))))
280 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
281 (X-offset-callbacks . (,Dot_column::side_position))
282 (meta . ((interfaces . (dot-column-interface axis-group-interface item-interface ))))
287 (molecule-callback . ,Dots::brew_molecule)
289 (Y-offset-callbacks . (,Dots::quantised_position_callback ,Staff_symbol_referencer::callback))
290 (meta . ((interfaces . (font-interface staff-symbol-referencer-interface dots-interface item-interface ))))
293 (DoublePercentRepeat .
295 (molecule-callback . ,Percent_repeat_item_interface::double_percent)
298 (font-family . music)
301 (break-align-symbol . staff-bar)
302 (break-visibility . ,begin-of-line-invisible)
303 (meta . ((interfaces . (font-interface
304 break-aligned-interface
305 percent-repeat-interface item-interface ))))
310 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
311 (molecule-callback . ,Text_item::brew_molecule)
312 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
313 ,Self_alignment_interface::centered_on_parent))
314 (self-alignment-X . 0)
315 (no-spacing-rods . #t)
316 (script-priority . 100)
318 (font-family . dynamic)
319 (font-shape . italic)
320 (self-alignment-Y . 0)
321 (meta . ((interfaces . (font-interface text-interface self-alignment-interface dynamic-interface script-interface item-interface ))))
327 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
328 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
330 (minimum-space . 1.2)
332 (meta . ((interfaces . (dynamic-interface axis-group-interface side-position-interface spanner-interface))))
337 (break-align-symbol . left-edge)
338 (X-extent-callback . ,Grob::point_dimension_callback)
341 (custos . (extra-space . 0.0))
342 (ambitus . (extra-space . 2.0))
343 (time-signature . (extra-space . 0.0))
344 (staff-bar . (extra-space . 0.0))
345 (breathing-sign . (minimum-space . 0.0))
346 (clef . (extra-space . 1.0))
347 (first-note . (extra-space . 1.0))
348 (right-edge . (extra-space . 0.0))
349 (key-signature . (extra-space . 0.0))
351 (meta . ((interfaces . (break-aligned-interface item-interface ))))
356 (molecule-callback . ,Text_item::brew_molecule)
359 (self-alignment-X . 0)
360 (self-alignment-Y . 0)
361 (script-priority . 100)
362 (font-family . number)
363 (font-relative-size . -3)
364 (font-shape . upright)
365 (meta . ((interfaces . (finger-interface font-interface text-script-interface text-interface side-position-interface self-alignment-interface item-interface ))))
369 (HaraKiriVerticalGroup
371 (Y-offset-callbacks . (,Hara_kiri_group_spanner::force_hara_kiri_callback))
372 (Y-extent-callback . ,Hara_kiri_group_spanner::y_extent)
374 (meta . ((interfaces . (axis-group-interface hara-kiri-group-interface item-interface spanner-interface))))
379 (molecule-callback . ,Hairpin::brew_molecule)
382 (spacing-procedure . ,Spanner::set_spacing_rods)
383 (minimum-length . 2.0)
384 (if-text-padding . 1.0)
385 (width-correct . -1.0)
387 (dash-thickness . 1.2)
389 (self-alignment-Y . 0)
390 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
391 (meta . ((interfaces . (hairpin-interface self-alignment-interface dynamic-interface spanner-interface))))
397 (molecule-callback . ,Horizontal_bracket::brew_molecule)
398 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
401 (meta . ((interfaces . (horizontal-bracket-interface side-position-interface spanner-interface))))
406 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self
407 ,Side_position_interface::aligned_on_support_refpoints))
408 ;; huh? what's this for?
411 (left-edge . (extra-space . 1.0))
414 (self-alignment-Y . 0)
415 (molecule-callback . ,Text_item::brew_molecule)
416 (break-align-symbol . instrument-name)
417 (break-visibility . ,begin-of-line-visible)
419 (font-family . roman)
420 (meta . ((interfaces . (font-interface self-alignment-interface side-position-interface text-interface break-aligned-interface item-interface ))))
425 (molecule-callback . ,Key_signature_interface::brew_molecule)
427 (time-signature . (extra-space . 1.25))
428 (staff-bar . (extra-space . 1.1))
429 (right-edge . (extra-space . 0.5))
430 (first-note . (extra-space . 2.5))
432 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
433 (break-align-symbol . key-signature)
434 (break-visibility . ,begin-of-line-visible)
436 (meta . ((interfaces . (key-signature-interface font-interface break-aligned-interface item-interface ))))
441 (molecule-callback . ,Ligature_bracket::brew_molecule)
442 (meta . ((interfaces . (ligature-interface))))
449 (ligature-primitive-callback . ,Note_head::brew_molecule)
450 (molecule-callback . ,Ligature_bracket::brew_molecule)
451 (meta . ((interfaces . (ligature-bracket-interface spanner-interface))))
456 (ligature-primitive-callback . ,Note_head::brew_molecule)
457 (molecule-callback . ,Ligature_head::brew_molecule)
458 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
459 (stem-attachment-function . ,note-head-style->attachment-coordinates)
460 (font-family . ancient)
462 (glyph-name-procedure . ,find-notehead-symbol)
463 (meta . ((interfaces . (ligature-head-interface rhythmic-head-interface
465 note-head-interface staff-symbol-referencer-interface))))
472 (minimum-length . 0.5)
473 (maximum-length . 100)
474 (molecule-callback . ,Hyphen_spanner::brew_molecule)
475 (Y-extent-callback . ,Grob::point_dimension_callback)
476 (meta . ((interfaces . (lyric-hyphen-interface spanner-interface))))
481 (molecule-callback . ,Lyric_extender::brew_molecule)
482 (height . 0.8) ; stafflinethickness;
483 (right-trim-amount . 0.5)
484 (Y-extent-callback . ,Grob::point_dimension_callback)
485 (meta . ((interfaces . (lyric-extender-interface spanner-interface))))
490 (molecule-callback . ,Text_item::brew_molecule)
491 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent
492 ,Self_alignment_interface::aligned_on_self))
493 (self-alignment-X . 0)
495 (ignore-length-mismatch . #f)
496 (begin-alignment . 4)
498 (font-family . roman)
499 (font-shape . upright)
501 ;; duh, side-position-interface?
502 (meta . ((interfaces . (lyric-syllable-interface self-alignment-interface text-interface font-interface item-interface ))))
509 (ligature-primitive-callback . ,Mensural_ligature::brew_ligature_primitive)
510 (molecule-callback . ,Mensural_ligature::brew_molecule)
511 (font-family . ancient)
512 (meta . ((interfaces . (mensural-ligature-interface font-interface))))
518 (auto-properties . #f)
524 (molecule-callback . ,Porrectus::brew_molecule)
525 (meta . ((interfaces . (porrectus-interface))))
530 (molecule-callback . ,Text_item::brew_molecule)
531 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
532 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
533 (self-alignment-X . 0)
537 (font-family . roman)
539 (break-visibility . ,end-of-line-invisible)
541 (meta . ((interfaces . (text-interface side-position-interface font-interface mark-interface self-alignment-interface item-interface ))))
546 (Y-offset-callbacks . (,Side_position_interface::out_of_staff
547 ,Side_position_interface::aligned_side))
548 (molecule-callback . ,Measure_grouping::brew_molecule)
554 (meta . ((interfaces . (spanner-interface side-position-interface measure-grouping-interface))))
558 (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
559 (molecule-callback . ,Multi_measure_rest::brew_molecule)
560 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
563 (thick-thickness . 6.6)
564 (hair-thickness . 2.0)
566 (meta . ((interfaces . (multi-measure-rest-interface rest-interface font-interface staff-symbol-referencer-interface spanner-interface))))
569 (MultiMeasureRestNumber
571 (molecule-callback . ,Text_item::brew_molecule)
572 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
573 ,Self_alignment_interface::centered_on_other_axis_parent))
574 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
575 (self-alignment-X . 0)
578 (font-family . number)
579 (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 (glyph-name-procedure . ,find-notehead-symbol)
606 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
607 (stem-attachment-function . ,note-head-style->attachment-coordinates)
608 (meta . ((interfaces . (rhythmic-head-interface font-interface note-head-interface staff-symbol-referencer-interface item-interface ))))
615 (zigzag-width . 0.75)
617 (X-extent-callback . #f)
618 (Y-extent-callback . #f)
619 (molecule-callback . ,Line_spanner::brew_molecule)
620 (meta . ((interfaces . (line-spanner-interface spanner-interface))))
628 (X-extent-callback . #f)
629 (Y-extent-callback . #f)
630 (molecule-callback . ,Line_spanner::brew_molecule)
631 (meta . ((interfaces . (line-spanner-interface spanner-interface))))
636 (molecule-callback . ,Text_item::brew_molecule)
637 (font-family . roman)
638 (meta . ((interfaces . (note-name-interface text-interface font-interface item-interface ))))
643 (self-alignment-X . 0)
645 (break-visibility . ,begin-of-line-visible)
646 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent ,Self_alignment_interface::aligned_on_self))
647 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
648 (molecule-callback . ,Text_item::brew_molecule)
649 (font-shape . italic)
651 (font-relative-size . -2)
652 (font-family . roman)
653 (meta . ((interfaces . (text-interface self-alignment-interface side-position-interface font-interface item-interface ))))
659 (before-line-breaking-callback . ,Paper_column::before_line_breaking)
660 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
662 ; (molecule-callback . ,Paper_column::brew_molecule) (font-name . "cmr8") (Y-extent-callback . #f)
663 (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
668 (molecule-callback . ,Slur::brew_molecule)
670 (spacing-procedure . ,Spanner::set_spacing_rods)
671 (minimum-length . 1.5)
672 (after-line-breaking-callback . ,Slur::after_line_breaking)
673 (extremity-rules . ,default-slur-extremity-rules)
674 (extremity-offset-alist . ,default-phrasing-slur-extremity-offset-alist)
675 (de-uglify-parameters . (1.5 0.8 -2.0))
676 (Y-extent-callback . ,Slur::height)
681 (attachment . (#f . #f))
682 (attachment-offset . ((0 . 0) . (0 . 0)))
684 (details . ((force-blowfit . 0.5)
685 (bezier-pct-c0 . -0.2) (bezier-pct-c3 . 0.000006)
686 (bezier-pct-out-max . 0.8) (bezier-pct-in-max . 1.2)
687 (bezier-area-steps . 1.0)))
688 (meta . ((interfaces . (slur-interface spanner-interface))))
691 (NonMusicalPaperColumn
694 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
695 (before-line-breaking-callback . ,Paper_column::before_line_breaking)
696 ;; debugging stuff: print column number.
697 ; (molecule-callback . ,Paper_column::brew_molecule) (font-name . "cmr8") (Y-extent-callback . #f)
700 (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
705 (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
706 (molecule-callback . ,Multi_measure_rest::percent)
709 (minimum-width . 12.5) ; staffspace
710 (font-family . music)
711 (meta . ((interfaces . (multi-measure-rest-interface spanner-interface font-interface percent-repeat-interface))))
714 (PianoPedalBracket ;; an example of a text spanner
716 (molecule-callback . ,Text_spanner::brew_molecule)
717 (font-family . roman)
719 (if-text-padding . 1.0)
723 (edge-widen . (0.5 . 0.5))
724 (edge-height . (1.0 . 1.0))
725 (shorten-pair . (0.0 . 0.0))
727 (meta . ((interfaces . (text-spanner-interface piano-pedal-interface spanner-interface))))
732 (molecule-callback . , Percent_repeat_item_interface::beat_slash)
735 (meta . ((interfaces . (percent-repeat-interface item-interface ))))
739 (after-line-breaking-callback . ,Rest::after_line_breaking)
740 (X-extent-callback . ,Rest::extent_callback)
741 (Y-extent-callback . ,Rest::extent_callback)
742 (molecule-callback . ,Rest::brew_molecule)
743 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
744 (minimum-beam-collision-distance . 0.75)
746 (interfaces . (font-interface
747 rhythmic-head-interface
748 staff-symbol-referencer-interface
749 rest-interface item-interface ))
754 (minimum-distance . 0.75)
755 (meta . ((interfaces . (rest-collision-interface item-interface ))))
760 ;; don't set direction here: it breaks staccato.
761 (molecule-callback . ,Script_interface::brew_molecule)
763 ;; This value is sensitive: if too large, staccato dots will move a
766 ;; (script-priority . 0) priorities for scripts, see script.scm
767 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent))
768 (before-line-breaking-callback . ,Script_interface::before_line_breaking)
769 (font-family . music)
770 (meta . ((interfaces . (script-interface side-position-interface font-interface item-interface ))))
775 (before-line-breaking-callback . ,Script_column::before_line_breaking)
776 (meta . ((interfaces . (script-column-interface item-interface ))))
781 (molecule-callback . ,Slur::brew_molecule)
783 (spacing-procedure . ,Spanner::set_spacing_rods)
784 (minimum-length . 1.5)
785 (after-line-breaking-callback . ,Slur::after_line_breaking)
786 (extremity-rules . ,default-slur-extremity-rules)
787 (extremity-offset-alist . ,default-slur-extremity-offset-alist)
788 (de-uglify-parameters . (1.5 0.8 -2.0))
789 (Y-extent-callback . ,Slur::height)
794 (attachment . (#f . #f))
795 (attachment-offset . ((0 . 0) . (0 . 0)))
797 (details . ((force-blowfit . 0.5)
798 (bezier-pct-c0 . -0.2) (bezier-pct-c3 . 0.000006)
799 (bezier-pct-out-max . 0.8) (bezier-pct-in-max . 1.2)
800 (bezier-area-steps . 1.0)))
801 (meta . ((interfaces . (slur-interface spanner-interface))))
806 (spacing-procedure . ,Spacing_spanner::set_springs)
807 (grace-space-factor . 0.6)
808 (shortest-duration-space . 2.0)
809 (spacing-increment . 1.2)
810 (base-shortest-duration . ,(ly:make-moment 1 8))
811 (meta . ((interfaces . (spacing-interface spacing-spanner-interface spanner-interface))))
816 (break-align-symbol . staff-bar)
817 (bar-size-procedure . ,Span_bar::get_bar_size)
818 (molecule-callback . ,Span_bar::brew_molecule)
819 (break-visibility . ,begin-of-line-invisible)
820 (X-extent-callback . ,Span_bar::width_callback)
821 (Y-extent-callback . ())
824 (before-line-breaking-callback . ,Span_bar::before_line_breaking)
828 ;; Ross. page 151 lists other values, we opt for a leaner look
832 (hair-thickness . 1.6)
833 (thick-thickness . 6.0)
834 (meta . ((interfaces . (span-bar-interface font-interface
835 bar-line-interface item-interface ))))
841 (molecule-callback . ,Text_item::brew_molecule)
842 (break-align-symbol . clef)
843 (break-visibility . ,begin-of-line-visible)
844 (font-family . roman)
845 (meta . ((interfaces . (break-aligned-interface text-interface font-interface item-interface ))))
851 (stem-spacing-correction . 0.4)
852 (knee-spacing-correction . 0.75)
853 (meta . ((interfaces . (spacing-interface staff-spacing-interface item-interface ))))
857 (stem-spacing-correction . 0.5)
858 (knee-spacing-correction . 0.75)
859 (meta . ((interfaces . (spacing-interface note-spacing-interface item-interface ))))
864 (molecule-callback . ,Staff_symbol::brew_molecule)
867 (meta . ((interfaces . (staff-symbol-interface spanner-interface))))
872 (molecule-callback . ,Text_item::brew_molecule)
874 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
875 (no-spacing-rods . #t)
876 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
878 (font-family . roman)
879 (font-shape . italic)
880 (self-alignment-X . 0)
881 (meta . ((interfaces . (text-interface self-alignment-interface font-interface item-interface))))
884 (SostenutoPedalLineSpanner
887 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
888 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
892 (minimum-space . 1.0)
894 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
899 (before-line-breaking-callback . ,Stem::before_line_breaking)
900 (molecule-callback . ,Stem::brew_molecule)
903 ;; 3.5 (or 3 measured from note head) is standar length
904 ;; 32nd, 64th flagged stems should be longer
905 (lengths . (3.5 3.5 3.5 4.5 5.0))
907 ;; Stems in unnatural (forced) direction should be shortened by
908 ;; one staff space, according to [Roush & Gourlay].
909 ;; Flagged stems we shorten only half a staff space.
910 (stem-shorten . (1.0 0.5))
912 ;; default stem direction for note on middle line
913 (neutral-direction . -1)
915 ;; [Wanske]: standard length (but no shorter than minimum).
916 ;; (beamed-lengths . (3.5))
918 ;; FIXME. 3.5 yields too long beams (according to Ross and
919 ;; looking at Baerenreiter examples) for a number of common
920 ;; boundary cases. Subtracting half a beam thickness fixes
921 ;; this, but the bug may well be somewhere else.
922 (beamed-lengths . (3.26))
924 ;; [Wanske] lists three sets of minimum lengths. One
925 ;; set for the nomal case, and one set for beams with `der
926 ;; Balkenendpunkt weiter "uber bzw. unter die Systemgrenze
927 ;; hinaus (bei Gruppen mit grossem Tonumfang)' and the extreme
930 ;; Note that Wanske lists numbers lengths starting from top of
931 ;; head, so we must add half a staff space.
933 ;; We use the normal minima as minimum for the ideal lengths,
934 ;; and the extreme minima as abolute minimum length.
936 ;; The 'normal' minima
937 (beamed-minimum-free-lengths . (2.5 2.0 1.5))
939 ;; The 'far outside staff' minima, not used
940 ;(beamed-far-minimum-free-lengths . (1.83))
942 ;; The 'extreme case' minima
943 (beamed-extreme-minimum-free-lengths . (1.83 1.5))
945 (X-offset-callbacks . (,Stem::off_callback))
946 (X-extent-callback . ,Stem::dim_callback)
947 (Y-extent-callback . ,Stem::height)
948 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
949 (adjust-if-on-staffline . #t)
950 (font-family . music)
951 (avoid-note-head . #f)
953 (meta . ((interfaces . (stem-interface font-interface item-interface ))))
958 (molecule-callback . ,Stem_tremolo::brew_molecule)
959 (Y-extent-callback . ,Stem_tremolo::height)
960 (X-extent-callback . #f)
962 (beam-width . 1.6) ; staff-space
963 (beam-thickness . 0.48) ; staff-space
964 (meta . ((interfaces . (stem-tremolo-interface item-interface ))))
969 (meta . ((interfaces . (spacing-interface separation-item-interface item-interface ))))
972 (SeparatingGroupSpanner
974 (spacing-procedure . ,Separating_group_spanner::set_spacing_rods)
975 (meta . ((interfaces . (spacing-interface separation-spanner-interface spanner-interface))))
980 (no-spacing-rods . #t)
981 (molecule-callback . ,Sustain_pedal::brew_molecule)
982 (self-alignment-X . 0)
984 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
986 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
987 (meta . ((interfaces . (piano-pedal-interface text-spanner-interface text-interface self-alignment-interface font-interface item-interface))))
990 (SustainPedalLineSpanner
993 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
994 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
997 (minimum-space . 1.0)
999 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
1005 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1006 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1007 (meta . ((interfaces . (system-interface axis-group-interface spanner-interface))))
1013 (molecule-callback . ,System_start_delimiter::brew_molecule)
1014 (collapse-height . 5.0)
1015 (font-family . braces)
1016 (Y-extent-callback . #f)
1017 (meta . ((interfaces . (system-start-delimiter-interface font-interface))))
1022 (Y-extent-callback . #f)
1023 (molecule-callback . ,System_start_delimiter::brew_molecule)
1029 (bracket-collapse-height . 1)
1031 (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1036 (Y-extent-callback . #f)
1037 (molecule-callback . ,System_start_delimiter::brew_molecule)
1038 (glyph . "bar-line")
1040 (after-line-breaking-callback . ,System_start_delimiter::after_line_breaking)
1041 (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1046 (molecule-callback . ,Text_item::brew_molecule)
1047 (no-spacing-rods . #t)
1048 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1051 (script-priority . 200)
1052 ;; todo: add X self alignment?
1054 (font-family . roman)
1055 (meta . ((interfaces . (text-script-interface text-interface side-position-interface font-interface item-interface ))))
1060 (molecule-callback . ,Text_spanner::brew_molecule)
1061 (font-family . roman)
1064 ;; urg, only for (de)cresc. text spanners
1065 (if-text-padding . 1.0)
1066 (width-correct . -1)
1069 (meta . ((interfaces . (text-spanner-interface side-position-interface font-interface spanner-interface))))
1074 (font-family . roman)
1076 (molecule-callback . ,tablature-molecule-callback)
1077 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
1078 (extra-offset . (0 . -0.65)) ;; UGH! TODO: Clean this up!
1079 (stem-attachment-function . ,tablature-stem-attachment-function)
1080 (meta . ((interfaces
1081 . (rhythmic-head-interface
1083 note-head-interface staff-symbol-referencer-interface
1084 text-interface item-interface ))))
1090 (molecule-callback . ,Tie::brew_molecule)
1091 (spacing-procedure . ,Spanner::set_spacing_rods)
1092 (staffline-clearance . 0.35)
1093 (details . ((ratio . 0.333) (height-limit . 1.0)))
1097 (minimum-length . 2.5)
1098 (meta . ((interfaces . (tie-interface spanner-interface))))
1103 (after-line-breaking-callback . ,Tie_column::after_line_breaking)
1104 (X-extent-callback . ())
1105 (Yoo-extent-callback . ())
1106 (meta . ((interfaces . (tie-column-interface spanner-interface))))
1111 (molecule-callback . ,Time_signature::brew_molecule)
1112 (break-align-symbol . time-signature)
1113 (break-visibility . ,all-visible)
1115 (first-note . (extra-space . 2.0))
1116 (right-edge . (extra-space . 0.5))
1117 (staff-bar . (minimum-space . 2.0))
1121 (font-family . number)
1122 (meta . ((interfaces . (time-signature-interface break-aligned-interface font-interface item-interface ))))
1130 (edge-widen . (0.0 . 0.0))
1131 (edge-height . (0.7 . 0.7))
1132 (shorten-pair . (-0.2 . -0.2))
1133 (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
1134 (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
1135 (molecule-callback . ,Tuplet_bracket::brew_molecule)
1136 (font-family . roman)
1137 (font-shape . italic)
1139 (font-relative-size . -1)
1140 (meta . ((interfaces . (text-interface tuplet-bracket-interface font-interface spanner-interface))))
1145 (molecule-callback . ,Text_item::brew_molecule)
1146 (font-family . roman)
1147 (font-shape . italic)
1148 (no-spacing-rods . #t)
1149 (self-alignment-X . 0)
1152 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
1153 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1154 (meta . ((interfaces . (text-interface self-alignment-interface font-interface item-interface ))))
1157 (UnaCordaPedalLineSpanner
1160 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1161 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1164 (minimum-space . 1.0)
1166 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
1171 (molecule-callback . ,Volta_bracket_interface::brew_molecule)
1174 (font-style . volta)
1175 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1176 (thickness . 1.6) ; stafflinethickness
1177 (height . 2.0) ; staffspace;
1179 (font-family . number)
1180 (font-relative-size . -2)
1181 (meta . ((interfaces . (volta-bracket-interface text-interface side-position-interface font-interface spanner-interface))))
1187 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1189 (meta . ((interfaces . (align-interface axis-group-interface spanner-interface))))
1195 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1197 (meta . ((interfaces . (axis-group-interface spanner-interface))))
1205 (define (completize-grob-entry x)
1206 "transplant assoc key into 'name entry of 'meta of X
1208 (let* ((name-sym (car x))
1209 (grob-entry (cdr x))
1210 (metaentry (cdr (assoc 'meta grob-entry)))
1212 (cdr (assoc 'interfaces metaentry)))
1215 (set! metaentry (assoc-set! metaentry 'name name-sym))
1216 (set! metaentry (assoc-set! metaentry 'interfaces
1217 (cons 'grob-interface ifaces-entry)))
1218 (set! grob-entry (assoc-set! grob-entry 'meta metaentry))
1219 (cons name-sym grob-entry)))
1221 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
1225 ; (display (map pair? all-grob-descriptions))
1228 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
1231 ; (display (car x)) (newline)
1233 (set-object-property! (car x) 'translation-type? list?)
1234 (set-object-property! (car x) 'is-grob? #t))
1235 all-grob-descriptions)
1238 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))