1 ;;;; grob-description.scm -- part of generated backend documentation
3 ;;;; source file of the GNU LilyPond music typesetter
5 ;;;; (c) 1998--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
6 ;;;; Jan Nieuwenhuizen <janneke@gnu.org>
8 ;;;; distances are given in stafflinethickness (thicknesses) and
9 ;;;; staffspace (distances)
11 ;;;; WARNING: the meta field should be the last one.
12 ;;;; WARNING: don't use anonymous functions for initialization.
14 ;; TODO: junk the meta field in favor of something more compact?
15 (define-public all-grob-descriptions
19 (molecule-callback . ,Accidental_interface::brew_molecule)
21 (cautionary-style . parentheses)
22 (after-line-breaking-callback . ,Accidental_interface::after_line_breaking) (meta . ((interfaces . (item-interface accidental-interface font-interface))))
26 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
29 ;; this is quite small, but it is very ugly to have
30 ;; accs closer to the previous note than to the next one.
31 (right-padding . 0.15)
32 (meta . ((interfaces . (item-interface accidental-placement-interface))))
38 (break-align-symbol . ambitus)
39 (molecule-callback . ,Ambitus::brew_molecule)
41 (note-head-style . "noteheads-2")
42 (visibility-lambda . ,begin-of-line-visible)
45 (clef . (extra-space . 0.0))
46 (key-signature . (extra-space . 0.0))
47 (staff-bar . (extra-space . 0.0))
48 (time-signature . (extra-space . 0.0))
49 (first-note . (extra-space . 0.0))
51 (meta . ((interfaces . (ambitus-interface staff-symbol-referencer-interface break-aligned-interface item-interface font-interface))))
56 (X-extent-callback . ,Arpeggio::width_callback)
57 (Y-extent-callback . #f)
58 (molecule-callback . ,Arpeggio::brew_molecule)
59 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
60 (X-offset-callbacks . (,Side_position_interface::aligned_side))
62 (staff-position . 0.0)
63 (meta . ((interfaces . (arpeggio-interface staff-symbol-referencer-interface side-position-interface item-interface font-interface))))
68 (break-align-symbol . staff-bar)
70 (break-glyph-function . ,default-break-barline)
71 (bar-size-procedure . ,Bar_line::get_staff_bar_size)
72 (molecule-callback . ,Bar_line::brew_molecule)
73 (break-visibility . ,all-visible)
75 (before-line-breaking-callback . ,Bar_line::before_line_breaking)
77 (time-signature . (extra-space . 0.75))
78 (custos . (minimum-space . 2.0))
79 (clef . (minimum-space . 1.0))
80 (key-signature . (extra-space . 1.0))
81 (first-note . (extra-space . 1.3))
82 (right-edge . (extra-space . 0.0))
86 ;; Ross. page 151 lists other values, we opt for a leaner look
90 (hair-thickness . 1.6)
91 (thick-thickness . 6.0)
92 (meta . ((interfaces . (bar-line-interface item-interface break-aligned-interface font-interface))))
98 (molecule-callback . ,brew-new-markup-molecule)
100 (break-visibility . ,begin-of-line-visible)
103 (font-family . roman)
104 (font-relative-size . -1)
105 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
106 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
107 (self-alignment-X . 1)
108 (extra-offset . (1.3 . 0))
110 ((interfaces . (side-position-interface
112 self-alignment-interface
113 font-interface item-interface break-aligned-interface))))
119 (molecule-callback . ,brew-new-markup-molecule)
120 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
122 (font-family . number)
123 (font-relative-size . -1)
125 (meta . ((interfaces . (text-interface rhythmic-grob-interface
126 bass-figure-interface item-interface
127 self-alignment-interface font-interface))))
131 ;; todo: clean this up a bit: the list is getting
133 (molecule-callback . ,Beam::brew_molecule)
134 (concaveness-gap . 2.0)
135 (concaveness-threshold . 0.08)
137 (positions . (#f . #f))
138 (position-callbacks . (,Beam::least_squares
141 ,Beam::shift_region_to_valid
145 ;; TODO: should be in SLT.
146 (thickness . 0.48) ; in staff-space
147 (before-line-breaking-callback . ,Beam::before_line_breaking)
148 (after-line-breaking-callback . ,Beam::after_line_breaking)
149 (neutral-direction . -1)
150 (dir-function . ,beam-dir-majority-median)
152 ;; Whe have some unreferenced problems here.
154 ;; If we shorten beamed stems less than normal stems (1 staffspace),
155 ;; or high order less than 8th beams, patterns like
156 ;; c''4 [c''8 c''] c''4 [c''16 c]
157 ;; are ugly (different stem lengths).
159 ;; But if we shorten 16th beams as much as 8th beams, a single
160 ;; forced 16th beam looks *very* short.
162 ;; We choose to shorten 8th beams the same as single stems,
163 ;; and high order beams less than 8th beams, so that all
164 ;; isolated shortened beams look nice and a bit shortened,
165 ;; sadly possibly breaking patterns with high order beams.
166 (beamed-stem-shorten . (1.0 0.5 0.25))
168 (outer-stem-length-limit . 0.2)
170 (flag-width-function . ,beam-flag-width-function)
172 (auto-knee-gap . 5.5)
174 ;; only for debugging.
175 ; (font-name . "cmr10")
177 (space-function . ,Beam::space_function)
178 (meta . ((interfaces . (staff-symbol-referencer-interface beam-interface spanner-interface))))
186 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
187 (meta . ((interfaces . (break-alignment-interface item-interface axis-group-interface)))))
193 (X-offset-callbacks . (,Break_align_interface::alignment_callback))
194 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
195 (meta . ((interfaces . (break-aligned-interface item-interface axis-group-interface item-interface ))))
200 (break-align-symbol . breathing-sign)
203 (ambitus . (extra-space . 2.0))
204 (custos . (minimum-space . 1.0))
205 (key-signature . (minimum-space . 1.5))
206 (staff-bar . (minimum-space . 1.5))
207 (clef . (minimum-space . 2.0))
208 (first-note . (minimum-space . 1.0))
209 (right-edge . (extra-space . 0.1))
211 (molecule-callback . ,Breathing_sign::brew_molecule)
213 (font-family . music)
214 (text . "scripts-rcomma")
215 (Y-offset-callbacks . (,Breathing_sign::offset_callback))
216 (break-visibility . ,begin-of-line-invisible)
217 (meta . ((interfaces . (break-aligned-interface breathing-sign-interface text-interface font-interface item-interface ))))
222 (molecule-callback . ,Clef::brew_molecule)
223 (before-line-breaking-callback . ,Clef::before_line_breaking)
225 (font-family . music)
226 (break-align-symbol . clef)
227 (break-visibility . ,begin-of-line-visible)
229 (ambitus . (extra-space . 2.0))
230 (staff-bar . (minimum-space . 3.7))
231 (key-signature . (minimum-space . 4.0))
232 (time-signature . (minimum-space . 4.2))
233 (first-note . (minimum-space . 5.0))
234 (next-note . (extra-space . 0.5))
235 (right-edge . (extra-space . 0.5))
237 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
238 (meta . ((interfaces . (clef-interface staff-symbol-referencer-interface font-interface break-aligned-interface item-interface ))))
241 (ClusterSpannerBeacon
243 (molecule-callback . #f)
244 (meta . ((interfaces . (cluster-beacon-interface item-interface))))
249 (molecule-callback . ,Cluster::brew_molecule)
250 (spacing-procedure . ,Spanner::set_spacing_rods)
251 (minimum-length . 0.0)
254 (meta . ((interfaces . (cluster-interface spanner-interface))))
259 (molecule-callback . ,new-chord-name-brew-molecule)
260 (after-line-breaking-callback . ,Chord_name::after_line_breaking)
262 (font-family . roman)
263 (meta . ((interfaces . (font-interface rhythmic-grob-interface
264 text-interface chord-name-interface item-interface ))))
269 (break-align-symbol . custos)
271 (molecule-callback . ,Custos::brew_molecule)
272 (break-visibility . ,end-of-line-visible)
274 (neutral-position . 0)
275 (neutral-direction . -1)
276 (adjust-if-on-staffline . #t)
277 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
279 (first-note . (minimum-space . 0.0))
280 (right-edge . (extra-space . 0.1))
283 . (custos-interface staff-symbol-referencer-interface
285 break-aligned-interface item-interface ))))
293 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
294 (X-offset-callbacks . (,Dot_column::side_position))
295 (meta . ((interfaces . (dot-column-interface axis-group-interface item-interface ))))
300 (molecule-callback . ,Dots::brew_molecule)
302 (Y-offset-callbacks . (,Dots::quantised_position_callback ,Staff_symbol_referencer::callback))
303 (meta . ((interfaces . (font-interface staff-symbol-referencer-interface dots-interface item-interface ))))
306 (DoublePercentRepeat .
308 (molecule-callback . ,Percent_repeat_item_interface::double_percent)
311 (font-family . music)
314 (break-align-symbol . staff-bar)
315 (break-visibility . ,begin-of-line-invisible)
316 (meta . ((interfaces . (font-interface
317 break-aligned-interface
318 percent-repeat-interface item-interface ))))
323 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
324 (molecule-callback . ,brew-new-markup-molecule)
325 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
326 ,Self_alignment_interface::centered_on_parent))
327 (self-alignment-X . 0)
328 (no-spacing-rods . #t)
329 (script-priority . 100)
331 (font-family . dynamic)
332 (font-shape . italic)
333 (self-alignment-Y . 0)
334 (meta . ((interfaces . (font-interface text-interface self-alignment-interface dynamic-interface script-interface item-interface ))))
340 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
341 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
343 (minimum-space . 1.2)
345 (meta . ((interfaces . (dynamic-interface axis-group-interface side-position-interface spanner-interface))))
350 (break-align-symbol . left-edge)
351 (X-extent-callback . ,Grob::point_dimension_callback)
354 (custos . (extra-space . 0.0))
355 (ambitus . (extra-space . 2.0))
356 (time-signature . (extra-space . 0.0))
357 (staff-bar . (extra-space . 0.0))
358 (breathing-sign . (minimum-space . 0.0))
359 (clef . (extra-space . 0.85))
360 (first-note . (extra-space . 1.0))
361 (right-edge . (extra-space . 0.0))
362 (key-signature . (extra-space . 0.0))
364 (meta . ((interfaces . (break-aligned-interface item-interface ))))
369 (molecule-callback . ,brew-new-markup-molecule)
372 (self-alignment-X . 0)
373 (self-alignment-Y . 0)
374 (script-priority . 100)
375 (font-family . number)
376 (font-relative-size . -3)
377 (font-shape . upright)
378 (meta . ((interfaces . (finger-interface font-interface text-script-interface text-interface side-position-interface self-alignment-interface item-interface ))))
382 (HaraKiriVerticalGroup
384 (Y-offset-callbacks . (,Hara_kiri_group_spanner::force_hara_kiri_callback))
385 (Y-extent-callback . ,Hara_kiri_group_spanner::y_extent)
387 (meta . ((interfaces . (axis-group-interface hara-kiri-group-interface item-interface spanner-interface))))
392 (molecule-callback . ,Hairpin::brew_molecule)
395 (spacing-procedure . ,Spanner::set_spacing_rods)
396 (minimum-length . 2.0)
397 (if-text-padding . 1.0)
398 (width-correct . -1.0)
400 (dash-thickness . 1.2)
402 (self-alignment-Y . 0)
403 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
404 (meta . ((interfaces . (hairpin-interface self-alignment-interface dynamic-interface spanner-interface))))
410 (molecule-callback . ,Horizontal_bracket::brew_molecule)
411 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
414 (meta . ((interfaces . (horizontal-bracket-interface side-position-interface spanner-interface))))
419 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self
420 ,Side_position_interface::aligned_on_support_refpoints))
421 ;; This direction is for aligned_on_support_refpoints
425 (left-edge . (extra-space . 1.0))
428 (self-alignment-Y . 0)
429 (molecule-callback . ,brew-new-markup-molecule)
430 (break-align-symbol . instrument-name)
431 (break-visibility . ,begin-of-line-visible)
433 (font-family . roman)
434 (meta . ((interfaces . (font-interface self-alignment-interface side-position-interface text-interface break-aligned-interface item-interface ))))
439 (molecule-callback . ,Key_signature_interface::brew_molecule)
441 (time-signature . (extra-space . 1.25))
442 (staff-bar . (extra-space . 1.1))
443 (right-edge . (extra-space . 0.5))
444 (first-note . (extra-space . 2.5))
446 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
447 (break-align-symbol . key-signature)
448 (break-visibility . ,begin-of-line-visible)
450 (meta . ((interfaces . (key-signature-interface font-interface break-aligned-interface item-interface ))))
455 (ligature-primitive-callback . ,Note_head::brew_molecule)
460 (edge-height . (0.7 . 0.7))
461 (shorten-pair . (-0.2 . -0.2))
462 (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
463 (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
464 (molecule-callback . ,Tuplet_bracket::brew_molecule)
465 (meta . ((interfaces . (tuplet-bracket-interface spanner-interface))))
472 (minimum-length . 0.5)
473 (maximum-length . 100)
474 (spacing-procedure . ,Hyphen_spanner::set_spacing_rods)
475 (molecule-callback . ,Hyphen_spanner::brew_molecule)
476 (Y-extent-callback . ,Grob::point_dimension_callback)
477 (meta . ((interfaces . (lyric-hyphen-interface spanner-interface))))
482 (molecule-callback . ,Lyric_extender::brew_molecule)
483 (height . 0.8) ; stafflinethickness;
484 (right-trim-amount . 0.5)
485 (Y-extent-callback . ,Grob::point_dimension_callback)
486 (meta . ((interfaces . (lyric-extender-interface spanner-interface))))
491 (molecule-callback . ,brew-new-markup-molecule)
492 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent
493 ,Self_alignment_interface::aligned_on_self))
494 (self-alignment-X . 0)
496 (ignore-length-mismatch . #f)
497 (begin-alignment . 4)
499 (font-family . roman)
500 (font-shape . upright)
502 (meta . ((interfaces . (rhythmic-grob-interface 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 (meta . ((interfaces . (mensural-ligature-interface font-interface))))
516 (molecule-callback . ,brew-new-markup-molecule)
517 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
518 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
519 (self-alignment-X . 0)
520 (break-align-symbol . time-signature)
523 (font-relative-size . 1)
524 (font-family . roman)
526 (break-visibility . ,end-of-line-invisible)
528 (meta . ((interfaces . (text-interface side-position-interface font-interface mark-interface self-alignment-interface item-interface ))))
532 (molecule-callback . ,brew-new-markup-molecule)
533 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
536 (font-family . roman)
537 (break-visibility . ,end-of-line-invisible)
539 (meta . ((interfaces . (text-interface side-position-interface font-interface metronome-mark-interface item-interface))))
543 (Y-offset-callbacks . (,Side_position_interface::out_of_staff
544 ,Side_position_interface::aligned_side))
545 (molecule-callback . ,Measure_grouping::brew_molecule)
551 (meta . ((interfaces . (spanner-interface side-position-interface measure-grouping-interface))))
555 (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
556 (molecule-callback . ,Multi_measure_rest::brew_molecule)
557 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
560 (thick-thickness . 6.6)
561 (hair-thickness . 2.0)
563 (meta . ((interfaces . (multi-measure-rest-interface rest-interface font-interface staff-symbol-referencer-interface))))
566 (MultiMeasureRestNumber
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 . number)
576 (meta . ((interfaces . (side-position-interface self-alignment-interface font-interface spanner-interface text-interface))))
578 (MultiMeasureRestText
580 (molecule-callback . ,brew-new-markup-molecule)
581 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
582 ,Self_alignment_interface::centered_on_other_axis_parent))
583 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
584 (self-alignment-X . 0)
587 (font-family . roman)
588 (meta . ((interfaces . (side-position-interface self-alignment-interface font-interface spanner-interface text-interface))))
593 ;; Ugh, should not be hard-coded.
595 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
596 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
597 (meta . ((interfaces . (note-collision-interface axis-group-interface item-interface ))))
603 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
604 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
605 (meta . ((interfaces . (axis-group-interface note-column-interface item-interface ))))
611 (molecule-callback . ,Note_head::brew_molecule)
612 (ligature-primitive-callback . ,Note_head::brew_molecule)
613 (glyph-name-procedure . ,find-notehead-symbol)
614 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
615 (stem-attachment-function . ,note-head-style->attachment-coordinates)
616 (meta . ((interfaces . (rhythmic-grob-interface rhythmic-head-interface font-interface note-head-interface staff-symbol-referencer-interface item-interface ))))
623 (zigzag-width . 0.75)
625 (X-extent-callback . #f)
626 (Y-extent-callback . #f)
627 (after-line-breaking-callback . ,Line_spanner::after_line_breaking)
628 (molecule-callback . ,Line_spanner::brew_molecule)
629 (meta . ((interfaces . (line-spanner-interface spanner-interface))))
637 (X-extent-callback . #f)
638 (Y-extent-callback . #f)
639 (molecule-callback . ,Line_spanner::brew_molecule)
640 (after-line-breaking-callback . ,Line_spanner::after_line_breaking)
641 (meta . ((interfaces . (line-spanner-interface spanner-interface))))
646 (molecule-callback . ,brew-new-markup-molecule)
647 (font-family . roman)
648 (meta . ((interfaces . (note-name-interface text-interface font-interface item-interface ))))
653 (self-alignment-X . 0)
655 (break-visibility . ,begin-of-line-visible)
656 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent ,Self_alignment_interface::aligned_on_self))
657 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
658 (molecule-callback . ,brew-new-markup-molecule)
659 (font-shape . italic)
661 (font-relative-size . -2)
662 (font-family . roman)
663 (meta . ((interfaces . (text-interface self-alignment-interface side-position-interface font-interface item-interface ))))
669 (before-line-breaking-callback . ,Paper_column::before_line_breaking)
670 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
672 ; (molecule-callback . ,Paper_column::brew_molecule) (font-name . "cmr8") (Y-extent-callback . #f)
673 (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
678 (molecule-callback . ,Slur::brew_molecule)
680 (spacing-procedure . ,Spanner::set_spacing_rods)
681 (minimum-length . 1.5)
682 (after-line-breaking-callback . ,Slur::after_line_breaking)
683 (extremity-rules . ,default-slur-extremity-rules)
684 (extremity-offset-alist . ,default-phrasing-slur-extremity-offset-alist)
685 (de-uglify-parameters . (1.5 0.8 -2.0))
686 (Y-extent-callback . ,Slur::height)
691 (attachment . (#f . #f))
692 (attachment-offset . ((0 . 0) . (0 . 0)))
694 (details . ((force-blowfit . 0.5)
695 (bezier-pct-c0 . -0.2) (bezier-pct-c3 . 0.000006)
696 (bezier-pct-out-max . 0.8) (bezier-pct-in-max . 1.2)
697 (bezier-area-steps . 1.0)))
698 (meta . ((interfaces . (slur-interface spanner-interface))))
701 (NonMusicalPaperColumn
704 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
705 (before-line-breaking-callback . ,Paper_column::before_line_breaking)
706 ;; debugging stuff: print column number.
707 ; (molecule-callback . ,Paper_column::brew_molecule) (font-name . "cmr8") (Y-extent-callback . #f)
710 (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
715 (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
716 (molecule-callback . ,Multi_measure_rest::percent)
719 (minimum-width . 12.5) ; staffspace
720 (font-family . music)
721 (meta . ((interfaces . (multi-measure-rest-interface spanner-interface font-interface percent-repeat-interface))))
724 (PianoPedalBracket ;; an example of a text spanner
726 (molecule-callback . ,Text_spanner::brew_molecule)
727 (after-line-breaking-callback . ,Piano_pedal_bracket::after_line_breaking)
728 (font-family . roman)
730 (if-text-padding . 1.0)
732 (enclose-bounds . #t)
734 (bracket-flare . (0.5 . 0.5))
735 (edge-height . (1.0 . 1.0))
736 (shorten-pair . (0.0 . 0.0))
738 (meta . ((interfaces . (text-spanner-interface piano-pedal-interface piano-pedal-bracket-interface spanner-interface))))
743 (molecule-callback . , Percent_repeat_item_interface::beat_slash)
746 (meta . ((interfaces . (percent-repeat-interface item-interface ))))
750 (after-line-breaking-callback . ,Rest::after_line_breaking)
751 (X-extent-callback . ,Rest::extent_callback)
752 (Y-extent-callback . ,Rest::extent_callback)
753 (molecule-callback . ,Rest::brew_molecule)
754 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
755 (minimum-beam-collision-distance . 0.75)
757 (interfaces . (font-interface
758 rhythmic-head-interface
759 rhythmic-grob-interface
761 staff-symbol-referencer-interface
762 rest-interface item-interface ))
767 (minimum-distance . 0.75)
768 (meta . ((interfaces . (rest-collision-interface item-interface ))))
773 ;; don't set direction here: it breaks staccato.
774 (molecule-callback . ,Script_interface::brew_molecule)
776 ;; This value is sensitive: if too large, staccato dots will move a
779 ;; (script-priority . 0) priorities for scripts, see script.scm
780 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent))
781 (before-line-breaking-callback . ,Script_interface::before_line_breaking)
782 (font-family . music)
783 (meta . ((interfaces . (script-interface side-position-interface font-interface item-interface ))))
788 (before-line-breaking-callback . ,Script_column::before_line_breaking)
789 (meta . ((interfaces . (script-column-interface item-interface ))))
794 (molecule-callback . ,Slur::brew_molecule)
796 (spacing-procedure . ,Spanner::set_spacing_rods)
797 (minimum-length . 1.5)
798 (after-line-breaking-callback . ,Slur::after_line_breaking)
799 (extremity-rules . ,default-slur-extremity-rules)
800 (extremity-offset-alist . ,default-slur-extremity-offset-alist)
801 (de-uglify-parameters . (1.5 0.8 -2.0))
802 (Y-extent-callback . ,Slur::height)
807 (attachment . (#f . #f))
808 (attachment-offset . ((0 . 0) . (0 . 0)))
810 (details . ((force-blowfit . 0.5)
811 (bezier-pct-c0 . -0.2) (bezier-pct-c3 . 0.000006)
812 (bezier-pct-out-max . 0.8) (bezier-pct-in-max . 1.2)
813 (bezier-area-steps . 1.0)))
814 (meta . ((interfaces . (slur-interface spanner-interface))))
819 (spacing-procedure . ,Spacing_spanner::set_springs)
820 (grace-space-factor . 0.6)
821 (shortest-duration-space . 2.0)
822 (spacing-increment . 1.2)
823 (base-shortest-duration . ,(ly:make-moment 1 8))
824 (meta . ((interfaces . (spacing-interface spacing-spanner-interface spanner-interface))))
829 (break-align-symbol . staff-bar)
830 (bar-size-procedure . ,Span_bar::get_bar_size)
831 (molecule-callback . ,Span_bar::brew_molecule)
832 (break-visibility . ,begin-of-line-invisible)
833 (X-extent-callback . ,Span_bar::width_callback)
834 (Y-extent-callback . ())
837 (before-line-breaking-callback . ,Span_bar::before_line_breaking)
841 ;; Ross. page 151 lists other values, we opt for a leaner look
845 (hair-thickness . 1.6)
846 (thick-thickness . 6.0)
847 (meta . ((interfaces . (span-bar-interface font-interface
848 bar-line-interface item-interface ))))
854 (molecule-callback . ,brew-new-markup-molecule)
855 (break-align-symbol . clef)
856 (break-visibility . ,begin-of-line-visible)
857 (font-family . roman)
858 (meta . ((interfaces . (break-aligned-interface text-interface font-interface item-interface ))))
864 (stem-spacing-correction . 0.4)
866 (meta . ((interfaces . (spacing-interface staff-spacing-interface item-interface ))))
870 (stem-spacing-correction . 0.5)
872 ;; Changed this from 0.75.
873 ;; If you ever change this back, please document! --hwn
874 (knee-spacing-correction . 1.0)
876 (meta . ((interfaces . (spacing-interface note-spacing-interface item-interface ))))
881 (molecule-callback . ,Staff_symbol::brew_molecule)
884 (meta . ((interfaces . (staff-symbol-interface spanner-interface))))
889 (molecule-callback . ,brew-new-markup-molecule)
891 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
892 (no-spacing-rods . #t)
893 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
894 (font-family . roman)
895 (font-shape . italic)
896 (self-alignment-X . 0)
897 (meta . ((interfaces . (text-interface self-alignment-interface font-interface item-interface))))
900 (SostenutoPedalLineSpanner
903 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
904 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
908 (minimum-space . 1.0)
910 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
916 ;; this list is rather long. Trim --hwn
917 (before-line-breaking-callback . ,Stem::before_line_breaking)
918 (molecule-callback . ,Stem::brew_molecule)
921 ;; 3.5 (or 3 measured from note head) is standar length
922 ;; 32nd, 64th flagged stems should be longer
923 (lengths . (3.5 3.5 3.5 4.5 5.0))
925 ;; Stems in unnatural (forced) direction should be shortened by
926 ;; one staff space, according to [Roush & Gourlay].
927 ;; Flagged stems we shorten only half a staff space.
928 (stem-shorten . (1.0 0.5))
930 ;; default stem direction for note on middle line
931 (neutral-direction . -1)
933 ;; [Wanske]: standard length (but no shorter than minimum).
934 ;; (beamed-lengths . (3.5))
936 ;; FIXME. 3.5 yields too long beams (according to Ross and
937 ;; looking at Baerenreiter examples) for a number of common
938 ;; boundary cases. Subtracting half a beam thickness fixes
939 ;; this, but the bug may well be somewhere else.
940 (beamed-lengths . (3.26 3.26 1.5))
942 ;; [Wanske] lists three sets of minimum lengths. One
943 ;; set for the nomal case, and one set for beams with `der
944 ;; Balkenendpunkt weiter "uber bzw. unter die Systemgrenze
945 ;; hinaus (bei Gruppen mit grossem Tonumfang)' and the extreme
948 ;; Note that Wanske lists numbers lengths starting from top of
949 ;; head, so we must add half a staff space.
951 ;; We use the normal minima as minimum for the ideal lengths,
952 ;; and the extreme minima as abolute minimum length.
954 ;; The 'normal' minima
955 (beamed-minimum-free-lengths . (2.5 2.0 1.0))
957 ;; The 'extreme case' minima
958 (beamed-extreme-minimum-free-lengths . (1.83 1.5 1.25))
960 (X-offset-callbacks . (,Stem::off_callback))
961 (X-extent-callback . ,Stem::dim_callback)
962 (Y-extent-callback . ,Stem::height)
963 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
964 (adjust-if-on-staffline . #t)
965 (font-family . music)
966 (avoid-note-head . #f)
968 (meta . ((interfaces . (stem-interface font-interface item-interface ))))
973 (molecule-callback . ,Stem_tremolo::brew_molecule)
974 (Y-extent-callback . ,Stem_tremolo::height)
975 (X-extent-callback . #f)
977 (beam-width . 1.6) ; staff-space
978 (beam-thickness . 0.48) ; staff-space
979 (meta . ((interfaces . (stem-tremolo-interface item-interface ))))
984 (meta . ((interfaces . (spacing-interface separation-item-interface item-interface ))))
987 (SeparatingGroupSpanner
989 (spacing-procedure . ,Separating_group_spanner::set_spacing_rods)
990 (meta . ((interfaces . (spacing-interface separation-spanner-interface spanner-interface))))
995 (no-spacing-rods . #t)
996 (molecule-callback . ,Sustain_pedal::brew_molecule)
997 (self-alignment-X . 0)
999 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
1000 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1001 (meta . ((interfaces . (piano-pedal-interface text-spanner-interface text-interface self-alignment-interface font-interface item-interface))))
1004 (SustainPedalLineSpanner
1007 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1008 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1011 (minimum-space . 1.0)
1013 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
1019 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1020 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1021 (meta . ((interfaces . (system-interface axis-group-interface spanner-interface))))
1027 (molecule-callback . ,System_start_delimiter::brew_molecule)
1028 (collapse-height . 5.0)
1029 (font-family . braces)
1030 (Y-extent-callback . #f)
1031 (meta . ((interfaces . (system-start-delimiter-interface font-interface))))
1036 (Y-extent-callback . #f)
1037 (molecule-callback . ,System_start_delimiter::brew_molecule)
1043 (bracket-collapse-height . 1)
1045 (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1050 (Y-extent-callback . #f)
1051 (molecule-callback . ,System_start_delimiter::brew_molecule)
1052 (glyph . "bar-line")
1054 (after-line-breaking-callback . ,System_start_delimiter::after_line_breaking)
1055 (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1060 (molecule-callback . ,brew-new-markup-molecule)
1061 (no-spacing-rods . #t)
1062 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1065 (script-priority . 200)
1066 ;; todo: add X self alignment?
1068 (font-family . roman)
1069 (meta . ((interfaces . (text-script-interface text-interface side-position-interface font-interface item-interface ))))
1074 (molecule-callback . ,Text_spanner::brew_molecule)
1075 (font-family . roman)
1078 ;; urg, only for (de)cresc. text spanners
1079 (if-text-padding . 1.0)
1080 (width-correct . -1)
1082 (meta . ((interfaces . (text-spanner-interface side-position-interface font-interface spanner-interface))))
1087 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1088 (molecule-callback . ,Text_spanner::brew_molecule)
1089 (font-family . roman)
1090 (enclose-bounds . #t)
1091 (width-correct . 0.0)
1092 (style . dashed-line)
1093 (edge-height . (0 . 1.5))
1095 (meta . ((interfaces . (text-spanner-interface side-position-interface font-interface spanner-interface))))
1100 (font-family . roman)
1102 (molecule-callback . ,tablature-molecule-callback)
1103 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
1104 (extra-offset . (0 . -0.65)) ;; UGH! TODO: Clean this up!
1105 (stem-attachment-function . ,tablature-stem-attachment-function)
1106 (meta . ((interfaces
1107 . (rhythmic-head-interface
1109 note-head-interface staff-symbol-referencer-interface
1110 text-interface item-interface ))))
1116 (molecule-callback . ,Tie::brew_molecule)
1117 (spacing-procedure . ,Spanner::set_spacing_rods)
1118 (staffline-clearance . 0.35)
1119 (details . ((ratio . 0.333) (height-limit . 1.0)))
1123 (minimum-length . 2.5)
1124 (meta . ((interfaces . (tie-interface spanner-interface))))
1129 (after-line-breaking-callback . ,Tie_column::after_line_breaking)
1130 (X-extent-callback . ())
1131 (Yoo-extent-callback . ())
1132 (meta . ((interfaces . (tie-column-interface spanner-interface))))
1137 (molecule-callback . ,Time_signature::brew_molecule)
1138 (break-align-symbol . time-signature)
1139 (break-visibility . ,all-visible)
1141 (first-note . (extra-space . 2.0))
1142 (right-edge . (extra-space . 0.5))
1143 (staff-bar . (minimum-space . 2.0))
1147 (font-family . number)
1148 (meta . ((interfaces . (time-signature-interface break-aligned-interface font-interface item-interface ))))
1156 (edge-height . (0.7 . 0.7))
1157 (shorten-pair . (-0.2 . -0.2))
1158 (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
1159 (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
1160 (molecule-callback . ,Tuplet_bracket::brew_molecule)
1161 (font-family . roman)
1162 (font-shape . italic)
1163 (font-series . bold)
1165 (font-relative-size . -1)
1166 (meta . ((interfaces . (text-interface tuplet-bracket-interface font-interface spanner-interface))))
1171 (molecule-callback . ,brew-new-markup-molecule)
1172 (font-family . roman)
1173 (font-shape . italic)
1174 (no-spacing-rods . #t)
1175 (self-alignment-X . 0)
1177 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
1178 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1179 (meta . ((interfaces . (text-interface self-alignment-interface font-interface item-interface ))))
1182 (UnaCordaPedalLineSpanner
1185 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1186 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1189 (minimum-space . 1.0)
1191 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
1198 (ligature-primitive-callback . ,Vaticana_ligature::brew_ligature_primitive)
1199 (molecule-callback . ,Vaticana_ligature::brew_molecule)
1200 (meta . ((interfaces . (vaticana-ligature-interface font-interface))))
1205 (molecule-callback . ,Volta_bracket_interface::brew_molecule)
1208 (font-style . volta)
1209 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1210 (thickness . 1.6) ; stafflinethickness
1211 (height . 2.0) ; staffspace;
1213 (font-family . number)
1214 (font-relative-size . -2)
1215 (meta . ((interfaces . (volta-bracket-interface text-interface side-position-interface font-interface spanner-interface))))
1221 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1223 (meta . ((interfaces . (align-interface axis-group-interface spanner-interface))))
1229 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1231 (meta . ((interfaces . (axis-group-interface spanner-interface))))
1239 (define (completize-grob-entry x)
1240 "transplant assoc key into 'name entry of 'meta of X
1242 (let* ((name-sym (car x))
1243 (grob-entry (cdr x))
1244 (metaentry (cdr (assoc 'meta grob-entry)))
1246 (cdr (assoc 'interfaces metaentry)))
1249 (set! metaentry (assoc-set! metaentry 'name name-sym))
1250 (set! metaentry (assoc-set! metaentry 'interfaces
1251 (cons 'grob-interface ifaces-entry)))
1252 (set! grob-entry (assoc-set! grob-entry 'meta metaentry))
1253 (cons name-sym grob-entry)))
1255 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
1259 ; (display (map pair? all-grob-descriptions))
1262 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
1265 ; (display (car x)) (newline)
1267 (set-object-property! (car x) 'translation-type? list?)
1268 (set-object-property! (car x) 'is-grob? #t))
1269 all-grob-descriptions)
1272 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))