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 . ,Chord_name::brew_molecule)
237 (after-line-breaking-callback . ,Chord_name::after_line_breaking)
238 (chord-name-function . ,default-chord-name-function)
239 (font-family . roman)
240 (meta . ((interfaces . (font-interface text-interface chord-name-interface item-interface ))))
245 (break-align-symbol . custos)
247 (molecule-callback . ,Custos::brew_molecule)
248 (break-visibility . ,end-of-line-visible)
250 (neutral-position . 0)
251 (neutral-direction . -1)
252 (adjust-if-on-staffline . #t)
253 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
254 (font-family . ancient)
256 (first-note . (minimum-space . 0.0))
257 (right-edge . (extra-space . 0.1))
260 . (custos-interface staff-symbol-referencer-interface
262 break-aligned-interface item-interface ))))
270 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
271 (X-offset-callbacks . (,Dot_column::side_position))
272 (meta . ((interfaces . (dot-column-interface axis-group-interface item-interface ))))
277 (molecule-callback . ,Dots::brew_molecule)
279 (Y-offset-callbacks . (,Dots::quantised_position_callback ,Staff_symbol_referencer::callback))
280 (meta . ((interfaces . (font-interface staff-symbol-referencer-interface dots-interface item-interface ))))
283 (DoublePercentRepeat .
285 (molecule-callback . ,Percent_repeat_item_interface::double_percent)
288 (font-family . music)
291 (break-align-symbol . staff-bar)
292 (break-visibility . ,begin-of-line-invisible)
293 (meta . ((interfaces . (font-interface
294 break-aligned-interface
295 percent-repeat-interface item-interface ))))
300 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
301 (molecule-callback . ,Text_item::brew_molecule)
302 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
303 ,Self_alignment_interface::centered_on_parent))
304 (self-alignment-X . 0)
305 (no-spacing-rods . #t)
306 (script-priority . 100)
308 (font-family . dynamic)
309 (font-shape . italic)
310 (self-alignment-Y . 0)
311 (meta . ((interfaces . (font-interface text-interface self-alignment-interface dynamic-interface script-interface item-interface ))))
317 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
318 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
320 (minimum-space . 1.2)
322 (meta . ((interfaces . (dynamic-interface axis-group-interface side-position-interface spanner-interface))))
327 (break-align-symbol . left-edge)
328 (X-extent-callback . ,Grob::point_dimension_callback)
331 (custos . (extra-space . 0.0))
332 (ambitus . (extra-space . 2.0))
333 (time-signature . (extra-space . 0.0))
334 (staff-bar . (extra-space . 0.0))
335 (breathing-sign . (minimum-space . 0.0))
336 (clef . (extra-space . 1.0))
337 (first-note . (extra-space . 1.0))
338 (right-edge . (extra-space . 0.0))
339 (key-signature . (extra-space . 0.0))
341 (meta . ((interfaces . (break-aligned-interface item-interface ))))
346 (molecule-callback . ,Text_item::brew_molecule)
349 (self-alignment-X . 0)
350 (self-alignment-Y . 0)
351 (script-priority . 100)
352 (font-family . number)
353 (font-relative-size . -3)
354 (font-shape . upright)
355 (meta . ((interfaces . (finger-interface font-interface text-script-interface text-interface side-position-interface self-alignment-interface item-interface ))))
359 (HaraKiriVerticalGroup
361 (Y-offset-callbacks . (,Hara_kiri_group_spanner::force_hara_kiri_callback))
362 (Y-extent-callback . ,Hara_kiri_group_spanner::y_extent)
364 (meta . ((interfaces . (axis-group-interface hara-kiri-group-interface item-interface spanner-interface))))
369 (molecule-callback . ,Hairpin::brew_molecule)
372 (spacing-procedure . ,Spanner::set_spacing_rods)
373 (minimum-length . 2.0)
374 (if-text-padding . 1.0)
375 (width-correct . -1.0)
377 (dash-thickness . 1.2)
379 (self-alignment-Y . 0)
380 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
381 (meta . ((interfaces . (hairpin-interface self-alignment-interface dynamic-interface spanner-interface))))
387 (molecule-callback . ,Horizontal_bracket::brew_molecule)
388 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
391 (meta . ((interfaces . (horizontal-bracket-interface spanner-interface))))
396 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self
397 ,Side_position_interface::aligned_on_support_refpoints))
398 ;; huh? what's this for?
401 (left-edge . (extra-space . 1.0))
404 (self-alignment-Y . 0)
405 (molecule-callback . ,Text_item::brew_molecule)
406 (break-align-symbol . instrument-name)
407 (break-visibility . ,begin-of-line-visible)
409 (font-family . roman)
410 (meta . ((interfaces . (font-interface self-alignment-interface side-position-interface text-interface break-aligned-interface item-interface ))))
415 (molecule-callback . ,Key_signature_interface::brew_molecule)
417 (time-signature . (extra-space . 1.25))
418 (staff-bar . (extra-space . 1.1))
419 (right-edge . (extra-space . 0.5))
420 (first-note . (extra-space . 2.5))
422 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
423 (break-align-symbol . key-signature)
424 (break-visibility . ,begin-of-line-visible)
426 (meta . ((interfaces . (key-signature-interface font-interface break-aligned-interface item-interface ))))
431 (molecule-callback . ,Ligature_bracket::brew_molecule)
432 (meta . ((interfaces . (ligature-interface))))
439 (ligature-primitive-callback . ,Note_head::brew_molecule)
440 (molecule-callback . ,Ligature_bracket::brew_molecule)
441 (meta . ((interfaces . (ligature-bracket-interface spanner-interface))))
446 (ligature-primitive-callback . ,Note_head::brew_molecule)
447 (molecule-callback . ,Ligature_head::brew_molecule)
448 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
449 (stem-attachment-function . ,note-head-style->attachment-coordinates)
450 (font-family . ancient)
452 (glyph-name-procedure . ,find-notehead-symbol)
453 (meta . ((interfaces . (ligature-head-interface rhythmic-head-interface
455 note-head-interface staff-symbol-referencer-interface))))
462 (minimum-length . 0.5)
463 (maximum-length . 100)
464 (molecule-callback . ,Hyphen_spanner::brew_molecule)
465 (Y-extent-callback . ,Grob::point_dimension_callback)
466 (meta . ((interfaces . (lyric-hyphen-interface spanner-interface))))
471 (molecule-callback . ,Lyric_extender::brew_molecule)
472 (height . 0.8) ; stafflinethickness;
473 (right-trim-amount . 0.5)
474 (Y-extent-callback . ,Grob::point_dimension_callback)
475 (meta . ((interfaces . (lyric-extender-interface spanner-interface))))
480 (molecule-callback . ,Text_item::brew_molecule)
481 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent
482 ,Self_alignment_interface::aligned_on_self))
483 (self-alignment-X . 0)
485 (ignore-length-mismatch . #f)
486 (begin-alignment . 4)
488 (font-family . roman)
489 (font-shape . upright)
491 ;; duh, side-position-interface?
492 (meta . ((interfaces . (lyric-syllable-interface self-alignment-interface text-interface font-interface item-interface ))))
499 (ligature-primitive-callback . ,Mensural_ligature::brew_ligature_primitive)
500 (molecule-callback . ,Mensural_ligature::brew_molecule)
501 (font-family . ancient)
502 (meta . ((interfaces . (mensural-ligature-interface font-interface))))
508 (auto-properties . #f)
514 (molecule-callback . ,Porrectus::brew_molecule)
515 (meta . ((interfaces . (porrectus-interface))))
520 (molecule-callback . ,Text_item::brew_molecule)
521 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
522 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
523 (self-alignment-X . 0)
527 (font-family . roman)
529 (break-visibility . ,end-of-line-invisible)
531 (meta . ((interfaces . (text-interface side-position-interface font-interface mark-interface self-alignment-interface item-interface ))))
536 (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
537 (molecule-callback . ,Multi_measure_rest::brew_molecule)
538 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
541 (thick-thickness . 6.6)
542 (hair-thickness . 2.0)
544 (meta . ((interfaces . (multi-measure-rest-interface rest-interface font-interface staff-symbol-referencer-interface spanner-interface))))
547 (MultiMeasureRestNumber
549 (molecule-callback . ,Text_item::brew_molecule)
550 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
551 ,Self_alignment_interface::centered_on_other_axis_parent))
552 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
553 (self-alignment-X . 0)
556 (font-family . number)
557 (meta . ((interfaces . (side-position-interface font-interface spanner-interface))))
564 ;; Ugh, should not be hard-coded.
566 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
567 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
568 (meta . ((interfaces . (note-collision-interface axis-group-interface item-interface ))))
574 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
575 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
576 (meta . ((interfaces . (axis-group-interface note-column-interface item-interface ))))
582 (molecule-callback . ,Note_head::brew_molecule)
583 (glyph-name-procedure . ,find-notehead-symbol)
584 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
585 (stem-attachment-function . ,note-head-style->attachment-coordinates)
586 (meta . ((interfaces . (rhythmic-head-interface font-interface note-head-interface staff-symbol-referencer-interface item-interface ))))
593 (zigzag-width . 0.75)
595 (X-extent-callback . #f)
596 (Y-extent-callback . #f)
597 (molecule-callback . ,Line_spanner::brew_molecule)
598 (meta . ((interfaces . (line-spanner-interface spanner-interface))))
606 (X-extent-callback . #f)
607 (Y-extent-callback . #f)
608 (molecule-callback . ,Line_spanner::brew_molecule)
609 (meta . ((interfaces . (line-spanner-interface spanner-interface))))
614 (molecule-callback . ,Text_item::brew_molecule)
615 (font-family . roman)
616 (meta . ((interfaces . (note-name-interface text-interface font-interface item-interface ))))
621 (self-alignment-X . 0)
623 (break-visibility . ,begin-of-line-visible)
624 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent ,Self_alignment_interface::aligned_on_self))
625 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
626 (molecule-callback . ,Text_item::brew_molecule)
627 (font-shape . italic)
629 (font-relative-size . -2)
630 (font-family . roman)
631 (meta . ((interfaces . (text-interface self-alignment-interface side-position-interface font-interface item-interface ))))
637 (before-line-breaking-callback . ,Paper_column::before_line_breaking)
638 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
640 ; (molecule-callback . ,Paper_column::brew_molecule) (font-name . "cmr8") (Y-extent-callback . #f)
641 (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
646 (molecule-callback . ,Slur::brew_molecule)
648 (spacing-procedure . ,Spanner::set_spacing_rods)
649 (minimum-length . 1.5)
650 (after-line-breaking-callback . ,Slur::after_line_breaking)
651 (extremity-rules . ,default-slur-extremity-rules)
652 (extremity-offset-alist . ,default-phrasing-slur-extremity-offset-alist)
653 (de-uglify-parameters . (1.5 0.8 -2.0))
654 (Y-extent-callback . ,Slur::height)
659 (attachment . (#f . #f))
660 (attachment-offset . ((0 . 0) . (0 . 0)))
662 (details . ((force-blowfit . 0.5)
663 (bezier-pct-c0 . -0.2) (bezier-pct-c3 . 0.000006)
664 (bezier-pct-out-max . 0.8) (bezier-pct-in-max . 1.2)
665 (bezier-area-steps . 1.0)))
666 (meta . ((interfaces . (slur-interface spanner-interface))))
669 (NonMusicalPaperColumn
672 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
673 (before-line-breaking-callback . ,Paper_column::before_line_breaking)
674 ;; debugging stuff: print column number.
675 ; (molecule-callback . ,Paper_column::brew_molecule) (font-name . "cmr8") (Y-extent-callback . #f)
678 (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
683 (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
684 (molecule-callback . ,Multi_measure_rest::percent)
687 (minimum-width . 12.5) ; staffspace
688 (font-family . music)
689 (meta . ((interfaces . (multi-measure-rest-interface spanner-interface font-interface percent-repeat-interface))))
692 (PianoPedalBracket ;; an example of a text spanner
694 (molecule-callback . ,Text_spanner::brew_molecule)
695 (font-family . roman)
697 (if-text-padding . 1.0)
701 (edge-widen . (0.5 . 0.5))
702 (edge-height . (1.0 . 1.0))
703 (shorten-pair . (0.0 . 0.0))
705 (meta . ((interfaces . (text-spanner-interface piano-pedal-interface spanner-interface))))
710 (molecule-callback . , Percent_repeat_item_interface::beat_slash)
713 (meta . ((interfaces . (percent-repeat-interface item-interface ))))
717 (after-line-breaking-callback . ,Rest::after_line_breaking)
718 (X-extent-callback . ,Rest::extent_callback)
719 (Y-extent-callback . ,Rest::extent_callback)
720 (molecule-callback . ,Rest::brew_molecule)
721 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
722 (minimum-beam-collision-distance . 0.75)
724 (interfaces . (font-interface
725 rhythmic-head-interface
726 staff-symbol-referencer-interface
727 rest-interface item-interface ))
732 (minimum-distance . 0.75)
733 (meta . ((interfaces . (rest-collision-interface item-interface ))))
738 ;; don't set direction here: it breaks staccato.
739 (molecule-callback . ,Script_interface::brew_molecule)
741 ;; This value is sensitive: if too large, staccato dots will move a
744 ;; (script-priority . 0) priorities for scripts, see script.scm
745 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent))
746 (before-line-breaking-callback . ,Script_interface::before_line_breaking)
747 (font-family . music)
748 (meta . ((interfaces . (script-interface side-position-interface font-interface item-interface ))))
753 (before-line-breaking-callback . ,Script_column::before_line_breaking)
754 (meta . ((interfaces . (script-column-interface item-interface ))))
759 (molecule-callback . ,Slur::brew_molecule)
761 (spacing-procedure . ,Spanner::set_spacing_rods)
762 (minimum-length . 1.5)
763 (after-line-breaking-callback . ,Slur::after_line_breaking)
764 (extremity-rules . ,default-slur-extremity-rules)
765 (extremity-offset-alist . ,default-slur-extremity-offset-alist)
766 (de-uglify-parameters . (1.5 0.8 -2.0))
767 (Y-extent-callback . ,Slur::height)
772 (attachment . (#f . #f))
773 (attachment-offset . ((0 . 0) . (0 . 0)))
775 (details . ((force-blowfit . 0.5)
776 (bezier-pct-c0 . -0.2) (bezier-pct-c3 . 0.000006)
777 (bezier-pct-out-max . 0.8) (bezier-pct-in-max . 1.2)
778 (bezier-area-steps . 1.0)))
779 (meta . ((interfaces . (slur-interface spanner-interface))))
784 (spacing-procedure . ,Spacing_spanner::set_springs)
785 (grace-space-factor . 0.6)
786 (shortest-duration-space . 2.0)
787 (spacing-increment . 1.2)
788 (base-shortest-duration . ,(ly:make-moment 1 8))
789 (meta . ((interfaces . (spacing-interface spacing-spanner-interface spanner-interface))))
794 (break-align-symbol . staff-bar)
795 (bar-size-procedure . ,Span_bar::get_bar_size)
796 (molecule-callback . ,Span_bar::brew_molecule)
797 (break-visibility . ,begin-of-line-invisible)
798 (X-extent-callback . ,Span_bar::width_callback)
799 (Y-extent-callback . ())
802 (before-line-breaking-callback . ,Span_bar::before_line_breaking)
806 ;; Ross. page 151 lists other values, we opt for a leaner look
810 (hair-thickness . 1.6)
811 (thick-thickness . 6.0)
812 (meta . ((interfaces . (span-bar-interface font-interface
813 bar-line-interface item-interface ))))
819 (molecule-callback . ,Text_item::brew_molecule)
820 (break-align-symbol . clef)
821 (break-visibility . ,begin-of-line-visible)
822 (font-family . roman)
823 (meta . ((interfaces . (break-aligned-interface text-interface font-interface item-interface ))))
829 (stem-spacing-correction . 0.4)
830 (knee-spacing-correction . 0.75)
831 (meta . ((interfaces . (spacing-interface staff-spacing-interface item-interface ))))
835 (stem-spacing-correction . 0.5)
836 (knee-spacing-correction . 0.75)
837 (meta . ((interfaces . (spacing-interface note-spacing-interface item-interface ))))
842 (molecule-callback . ,Staff_symbol::brew_molecule)
845 (meta . ((interfaces . (staff-symbol-interface spanner-interface))))
850 (molecule-callback . ,Text_item::brew_molecule)
852 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
853 (no-spacing-rods . #t)
854 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
856 (font-family . roman)
857 (font-shape . italic)
858 (self-alignment-X . 0)
859 (meta . ((interfaces . (text-interface self-alignment-interface font-interface item-interface))))
862 (SostenutoPedalLineSpanner
865 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
866 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
870 (minimum-space . 1.0)
872 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
877 (before-line-breaking-callback . ,Stem::before_line_breaking)
878 (molecule-callback . ,Stem::brew_molecule)
881 ;; 3.5 (or 3 measured from note head) is standar length
882 ;; 32nd, 64th flagged stems should be longer
883 (lengths . (3.5 3.5 3.5 4.5 5.0))
885 ;; Stems in unnatural (forced) direction should be shortened by
886 ;; one staff space, according to [Roush & Gourlay].
887 ;; Flagged stems we shorten only half a staff space.
888 (stem-shorten . (1.0 0.5))
890 ;; default stem direction for note on middle line
891 (neutral-direction . -1)
893 ;; [Wanske]: standard length (but no shorter than minimum).
894 ;; (beamed-lengths . (3.5))
896 ;; FIXME. 3.5 yields too long beams (according to Ross and
897 ;; looking at Baerenreiter examples) for a number of common
898 ;; boundary cases. Subtracting half a beam thickness fixes
899 ;; this, but the bug may well be somewhere else.
900 (beamed-lengths . (3.26))
902 ;; [Wanske] lists three sets of minimum lengths. One
903 ;; set for the nomal case, and one set for beams with `der
904 ;; Balkenendpunkt weiter "uber bzw. unter die Systemgrenze
905 ;; hinaus (bei Gruppen mit grossem Tonumfang)' and the extreme
908 ;; Note that Wanske lists numbers lengths starting from top of
909 ;; head, so we must add half a staff space.
911 ;; We use the normal minima as minimum for the ideal lengths,
912 ;; and the extreme minima as abolute minimum length.
914 ;; The 'normal' minima
915 (beamed-minimum-free-lengths . (2.5 2.0 1.5))
917 ;; The 'far outside staff' minima, not used
918 ;(beamed-far-minimum-free-lengths . (1.83))
920 ;; The 'extreme case' minima
921 (beamed-extreme-minimum-free-lengths . (1.83 1.5))
923 (X-offset-callbacks . (,Stem::off_callback))
924 (X-extent-callback . ,Stem::dim_callback)
925 (Y-extent-callback . ,Stem::height)
926 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
927 (adjust-if-on-staffline . #t)
928 (font-family . music)
929 (avoid-note-head . #f)
931 (meta . ((interfaces . (stem-interface font-interface item-interface ))))
936 (molecule-callback . ,Stem_tremolo::brew_molecule)
937 (Y-extent-callback . ,Stem_tremolo::height)
938 (X-extent-callback . #f)
940 (beam-width . 1.6) ; staff-space
941 (beam-thickness . 0.48) ; staff-space
942 (meta . ((interfaces . (stem-tremolo-interface item-interface ))))
947 (meta . ((interfaces . (spacing-interface separation-item-interface item-interface ))))
950 (SeparatingGroupSpanner
952 (spacing-procedure . ,Separating_group_spanner::set_spacing_rods)
953 (meta . ((interfaces . (spacing-interface separation-spanner-interface spanner-interface))))
958 (no-spacing-rods . #t)
959 (molecule-callback . ,Sustain_pedal::brew_molecule)
960 (self-alignment-X . 0)
962 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
964 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
965 (meta . ((interfaces . (piano-pedal-interface text-spanner-interface text-interface self-alignment-interface font-interface item-interface))))
968 (SustainPedalLineSpanner
971 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
972 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
975 (minimum-space . 1.0)
977 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
983 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
984 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
985 (meta . ((interfaces . (system-interface axis-group-interface spanner-interface))))
991 (molecule-callback . ,System_start_delimiter::brew_molecule)
992 (collapse-height . 5.0)
993 (font-family . braces)
994 (Y-extent-callback . #f)
995 (meta . ((interfaces . (system-start-delimiter-interface font-interface))))
1000 (Y-extent-callback . #f)
1001 (molecule-callback . ,System_start_delimiter::brew_molecule)
1007 (bracket-collapse-height . 1)
1009 (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1014 (Y-extent-callback . #f)
1015 (molecule-callback . ,System_start_delimiter::brew_molecule)
1016 (glyph . "bar-line")
1018 (after-line-breaking-callback . ,System_start_delimiter::after_line_breaking)
1019 (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1024 (molecule-callback . ,Text_item::brew_molecule)
1025 (no-spacing-rods . #t)
1026 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1029 (script-priority . 200)
1030 ;; todo: add X self alignment?
1032 (font-family . roman)
1033 (meta . ((interfaces . (text-script-interface text-interface side-position-interface font-interface item-interface ))))
1038 (molecule-callback . ,Text_spanner::brew_molecule)
1039 (font-family . roman)
1042 ;; urg, only for (de)cresc. text spanners
1043 (if-text-padding . 1.0)
1044 (width-correct . -1)
1047 (meta . ((interfaces . (text-spanner-interface side-position-interface font-interface spanner-interface))))
1052 (font-family . roman)
1054 (molecule-callback . ,tablature-molecule-callback)
1055 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
1056 (extra-offset . (0 . -0.65)) ;; UGH! TODO: Clean this up!
1057 (stem-attachment-function . ,tablature-stem-attachment-function)
1058 (meta . ((interfaces
1059 . (rhythmic-head-interface
1061 note-head-interface staff-symbol-referencer-interface
1062 text-interface item-interface ))))
1068 (molecule-callback . ,Tie::brew_molecule)
1069 (spacing-procedure . ,Spanner::set_spacing_rods)
1070 (staffline-clearance . 0.35)
1071 (details . ((ratio . 0.333) (height-limit . 1.0)))
1075 (minimum-length . 2.5)
1076 (meta . ((interfaces . (tie-interface spanner-interface))))
1081 (after-line-breaking-callback . ,Tie_column::after_line_breaking)
1082 (X-extent-callback . ())
1083 (Yoo-extent-callback . ())
1084 (meta . ((interfaces . (tie-column-interface spanner-interface))))
1089 (molecule-callback . ,Time_signature::brew_molecule)
1090 (break-align-symbol . time-signature)
1091 (break-visibility . ,all-visible)
1093 (first-note . (extra-space . 2.0))
1094 (right-edge . (extra-space . 0.5))
1095 (staff-bar . (minimum-space . 2.0))
1099 (font-family . number)
1100 (meta . ((interfaces . (time-signature-interface break-aligned-interface font-interface item-interface ))))
1108 (edge-widen . (0.0 . 0.0))
1109 (edge-height . (0.7 . 0.7))
1110 (shorten-pair . (-0.2 . -0.2))
1111 (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
1112 (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
1113 (molecule-callback . ,Tuplet_bracket::brew_molecule)
1114 (font-family . roman)
1115 (font-shape . italic)
1117 (font-relative-size . -1)
1118 (meta . ((interfaces . (text-interface tuplet-bracket-interface font-interface spanner-interface))))
1123 (molecule-callback . ,Text_item::brew_molecule)
1124 (font-family . roman)
1125 (font-shape . italic)
1126 (no-spacing-rods . #t)
1127 (self-alignment-X . 0)
1130 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
1131 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1132 (meta . ((interfaces . (text-interface self-alignment-interface font-interface item-interface ))))
1135 (UnaCordaPedalLineSpanner
1138 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1139 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1142 (minimum-space . 1.0)
1144 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
1149 (molecule-callback . ,Volta_bracket_interface::brew_molecule)
1152 (font-style . volta)
1153 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1154 (thickness . 1.6) ; stafflinethickness
1155 (height . 2.0) ; staffspace;
1157 (font-family . number)
1158 (font-relative-size . -2)
1159 (meta . ((interfaces . (volta-bracket-interface text-interface side-position-interface font-interface spanner-interface))))
1165 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1167 (meta . ((interfaces . (align-interface axis-group-interface spanner-interface))))
1173 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1175 (meta . ((interfaces . (axis-group-interface spanner-interface))))
1183 (define (completize-grob-entry x)
1184 "transplant assoc key into 'name entry of 'meta of X
1186 (let* ((name-sym (car x))
1187 (grob-entry (cdr x))
1188 (metaentry (cdr (assoc 'meta grob-entry)))
1190 (cdr (assoc 'interfaces metaentry)))
1193 (set! metaentry (assoc-set! metaentry 'name name-sym))
1194 (set! metaentry (assoc-set! metaentry 'interfaces
1195 (cons 'grob-interface ifaces-entry)))
1196 (set! grob-entry (assoc-set! grob-entry 'meta metaentry))
1197 (cons name-sym grob-entry)))
1199 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
1203 ; (display (map pair? all-grob-descriptions))
1206 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
1209 ; (display (car x)) (newline)
1211 (set-object-property! (car x) 'translation-type? list?)
1212 (set-object-property! (car x) 'is-grob? #t))
1213 all-grob-descriptions)
1216 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))