1 ;;;; define-grobs.scm --
3 ;;;; source file of the GNU LilyPond music typesetter
5 ;;;; (c) 1998--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
6 ;;;; Jan Nieuwenhuizen <janneke@gnu.org>
8 ;;;; distances are given in linethickness (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 (print-function . ,Accidental_interface::print)
21 (cautionary-style . parentheses)
22 (after-line-breaking-callback . ,Accidental_interface::after_line_breaking) (meta . ((interfaces . (item-interface accidental-interface font-interface))))
27 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
30 ;; this is quite small, but it is very ugly to have
31 ;; accs closer to the previous note than to the next one.
32 (right-padding . 0.15)
33 (meta . ((interfaces . (item-interface accidental-placement-interface))))
38 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
39 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
41 (clef . (extra-space . 0.5))
42 (key-signature . (extra-space . 0.0))
43 (staff-bar . (extra-space . 0.0))
44 (time-signature . (extra-space . 0.0))
45 (first-note . (fixed-space . 0.0))
48 (break-align-symbol . ambitus)
49 (break-visibility . ,begin-of-line-visible)
50 (meta . ((interfaces . (axis-group-interface break-aligned-interface ambitus-interface item-interface ))))
55 (print-function . ,Ambitus::print)
58 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent))
60 (meta . ((interfaces . (ambitus-interface staff-symbol-referencer-interface item-interface font-interface))))
64 (print-function . ,Accidental_interface::print)
67 (X-offset-callbacks . (,Side_position_interface::aligned_side))
69 (cautionary-style . parentheses)
70 (after-line-breaking-callback . ,Accidental_interface::after_line_breaking) (meta . ((interfaces . (item-interface accidental-interface break-aligned-interface side-position-interface font-interface))))
76 (print-function . ,Note_head::print)
77 (glyph-name-procedure . ,find-notehead-symbol)
78 (X-extent-callback . ,Note_head::extent)
79 (Y-extent-callback . ,Note_head::extent)
80 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
81 (meta . ((interfaces . (font-interface note-head-interface ambitus-interface staff-symbol-referencer-interface rhythmic-head-interface item-interface ))))
86 (X-extent-callback . ,Arpeggio::width_callback)
87 (Y-extent-callback . #f)
88 (print-function . ,Arpeggio::print)
89 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
90 (X-offset-callbacks . (,Side_position_interface::aligned_side))
93 (staff-position . 0.0)
94 (meta . ((interfaces . (arpeggio-interface staff-symbol-referencer-interface side-position-interface item-interface font-interface))))
99 (break-align-symbol . staff-bar)
101 (break-glyph-function . ,default-break-barline)
102 (bar-size-procedure . ,Bar_line::get_staff_bar_size)
103 (print-function . ,Bar_line::print)
104 (break-visibility . ,all-visible)
106 (before-line-breaking-callback . ,Bar_line::before_line_breaking)
108 (time-signature . (extra-space . 0.75))
109 (custos . (minimum-space . 2.0))
110 (clef . (minimum-space . 1.0))
111 (key-signature . (extra-space . 1.0))
112 (first-note . (fixed-space . 1.3))
113 (next-note . (semi-fixed-space . 1.3))
114 (right-edge . (extra-space . 0.0))
118 ;; Ross. page 151 lists other values, we opt for a leaner look
122 (hair-thickness . 1.6)
123 (thick-thickness . 6.0)
124 (meta . ((interfaces . (bar-line-interface item-interface break-aligned-interface font-interface))))
130 (print-function . ,Text_item::print)
132 (break-visibility . ,begin-of-line-visible)
135 (font-family . roman)
137 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
138 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
139 (self-alignment-X . 1)
141 ;; hmm. why did we do this: ?
142 (extra-offset . (1.3 . 0))
144 ((interfaces . (side-position-interface
146 self-alignment-interface
147 font-interface item-interface break-aligned-interface))))
153 (print-function . ,Text_item::print)
154 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
156 (font-family . number)
158 ;; We must do this, other BFs in
159 ;; paper16 become too small.
162 (meta . ((interfaces . (text-interface rhythmic-grob-interface
163 bass-figure-interface item-interface
164 self-alignment-interface font-interface))))
168 ;; todo: clean this up a bit: the list is getting
170 (print-function . ,Beam::print)
171 (concaveness-gap . 1.85)
172 (concaveness-threshold . 0.26)
174 (positions . (#f . #f))
175 (position-callbacks . (,Beam::least_squares
178 ,Beam::shift_region_to_valid
182 ;; TODO: should be in SLT.
183 (thickness . 0.48) ; in staff-space
184 (before-line-breaking-callback . ,Beam::before_line_breaking)
185 (after-line-breaking-callback . ,Beam::after_line_breaking)
186 (neutral-direction . -1)
187 (dir-function . ,beam-dir-majority-median)
189 ;; Whe have some unreferenced problems here.
191 ;; If we shorten beamed stems less than normal stems (1 staffspace),
192 ;; or high order less than 8th beams, patterns like
193 ;; c''4 [c''8 c''] c''4 [c''16 c]
194 ;; are ugly (different stem lengths).
196 ;; But if we shorten 16th beams as much as 8th beams, a single
197 ;; forced 16th beam looks *very* short.
199 ;; We choose to shorten 8th beams the same as single stems,
200 ;; and high order beams less than 8th beams, so that all
201 ;; isolated shortened beams look nice and a bit shortened,
202 ;; sadly possibly breaking patterns with high order beams.
203 (beamed-stem-shorten . (1.0 0.5 0.25))
206 (flag-width-function . ,beam-flag-width-function)
208 (auto-knee-gap . 5.5)
210 ;; only for debugging.
211 (font-family . roman)
213 (space-function . ,Beam::space_function)
214 (meta . ((interfaces . (staff-symbol-referencer-interface beam-interface spanner-interface))))
221 (break-align-orders . #(; end-of-line:
222 (instrument-name left-edge ambitus breathing-sign
223 clef staff-bar key-signature
224 time-signature custos)
227 (instrument-name left-edge ambitus breathing-sign
228 clef staff-bar key-signature
230 time-signature custos)
232 (instrument-name left-edge ambitus breathing-sign
233 clef key-signature staff-bar
234 time-signature custos)
238 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
239 (meta . ((interfaces . (break-alignment-interface item-interface axis-group-interface)))))
245 (X-offset-callbacks . (,Break_align_interface::alignment_callback))
246 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
247 (meta . ((interfaces . (break-aligned-interface item-interface axis-group-interface item-interface ))))
252 (break-align-symbol . breathing-sign)
255 (ambitus . (extra-space . 2.0))
256 (custos . (minimum-space . 1.0))
257 (key-signature . (minimum-space . 1.5))
258 (staff-bar . (minimum-space . 1.5))
259 (clef . (minimum-space . 2.0))
260 (first-note . (fixed-space . 1.0)) ;huh?
261 (right-edge . (extra-space . 0.1))
263 (print-function . ,Text_item::print)
264 (text . ,(make-musicglyph-markup "scripts-rcomma"))
265 (Y-offset-callbacks . (,Breathing_sign::offset_callback))
266 (break-visibility . ,begin-of-line-invisible)
267 (meta . ((interfaces . (break-aligned-interface breathing-sign-interface text-interface font-interface item-interface ))))
272 (print-function . ,Clef::print)
273 (before-line-breaking-callback . ,Clef::before_line_breaking)
275 (font-family . music)
276 (break-align-symbol . clef)
277 (break-visibility . ,begin-of-line-visible)
278 (space-alist . ((ambitus . (extra-space . 2.0))
279 (staff-bar . (extra-space . 0.7))
280 (key-signature . (minimum-space . 4.0))
281 (time-signature . (minimum-space . 4.2))
282 (first-note . (minimum-fixed-space . 5.0))
283 (next-note . (extra-space . 0.5))
284 (right-edge . (extra-space . 0.5))
286 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
287 (meta . ((interfaces . (clef-interface staff-symbol-referencer-interface font-interface break-aligned-interface item-interface ))))
290 (ClusterSpannerBeacon
292 (print-function . #f)
293 (Y-extent-callback . ,Cluster_beacon::height)
294 (meta . ((interfaces . (cluster-beacon-interface item-interface))))
299 (print-function . ,Cluster::print)
300 (spacing-procedure . ,Spanner::set_spacing_rods)
301 (minimum-length . 0.0)
304 (meta . ((interfaces . (cluster-interface spanner-interface))))
309 (print-function . ,Text_item::print)
310 (after-line-breaking-callback . ,Chord_name::after_line_breaking)
314 (meta . ((interfaces . (font-interface rhythmic-grob-interface
315 text-interface chord-name-interface item-interface ))))
320 (break-align-symbol . custos)
322 (print-function . ,Custos::print)
323 (break-visibility . ,end-of-line-visible)
325 (neutral-direction . -1)
326 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
328 (first-note . (minimum-fixed-space . 0.0))
329 (right-edge . (extra-space . 0.1))
332 . (custos-interface staff-symbol-referencer-interface
334 break-aligned-interface item-interface ))))
342 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
343 (X-offset-callbacks . (,Dot_column::side_position))
344 (meta . ((interfaces . (dot-column-interface axis-group-interface item-interface ))))
349 (print-function . ,Dots::print)
351 (meta . ((interfaces . (font-interface staff-symbol-referencer-interface dots-interface item-interface ))))
354 (DoublePercentRepeat .
356 (print-function . ,Percent_repeat_item_interface::double_percent)
359 (font-encoding . fetaMusic)
362 (break-align-symbol . staff-bar)
363 (break-visibility . ,begin-of-line-invisible)
364 (meta . ((interfaces . (font-interface
365 break-aligned-interface
366 percent-repeat-interface item-interface ))))
371 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
372 (print-function . ,Text_item::print)
373 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
374 ,Self_alignment_interface::centered_on_parent))
375 (self-alignment-X . 0)
376 (no-spacing-rods . #t)
377 (script-priority . 100)
379 (font-encoding . fetaDynamic)
380 (font-shape . italic)
381 (self-alignment-Y . 0)
382 (meta . ((interfaces . (font-interface text-interface self-alignment-interface dynamic-interface script-interface item-interface))))
388 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
389 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
390 (staff-padding . 0.1)
392 (minimum-space . 1.2)
394 (meta . ((interfaces . (dynamic-interface axis-group-interface side-position-interface spanner-interface))))
399 (break-align-symbol . left-edge)
403 (custos . (extra-space . 0.0))
404 (ambitus . (extra-space . 2.0))
405 (time-signature . (extra-space . 0.0))
406 (staff-bar . (extra-space . 0.0))
407 (breathing-sign . (minimum-space . 0.0))
408 (clef . (extra-space . 0.85))
409 (first-note . (fixed-space . 1.0))
410 (right-edge . (extra-space . 0.0))
411 (key-signature . (extra-space . 0.0))
413 (meta . ((interfaces . (break-aligned-interface item-interface ))))
418 (print-function . ,Text_item::print)
420 (staff-padding . 0.6)
421 (self-alignment-X . 0)
422 (self-alignment-Y . 0)
423 (script-priority . 100)
424 (font-encoding . fetaNumber)
425 (font-size . -5) ; don't overlap when next to heads.
426 (meta . ((interfaces . (finger-interface font-interface text-script-interface text-interface side-position-interface self-alignment-interface item-interface ))))
433 (zigzag-width . 0.75)
435 (X-extent-callback . #f)
436 (Y-extent-callback . #f)
437 (after-line-breaking-callback . ,Line_spanner::after_line_breaking)
438 (print-function . ,Line_spanner::print)
439 (meta . ((interfaces . (line-spanner-interface spanner-interface))))
444 (print-function . ,Hairpin::print)
447 (spacing-procedure . ,Spanner::set_spacing_rods)
448 (minimum-length . 2.0)
449 (if-text-padding . 1.0)
450 (self-alignment-Y . 0)
451 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
452 (meta . ((interfaces . (hairpin-interface line-interface self-alignment-interface dynamic-interface spanner-interface))))
458 (print-function . ,Horizontal_bracket::print)
459 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
462 (meta . ((interfaces . (horizontal-bracket-interface side-position-interface spanner-interface))))
467 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self
468 ,Side_position_interface::aligned_on_support_refpoints))
469 ;; This direction is for aligned_on_support_refpoints
473 (left-edge . (extra-space . 1.0))
476 (self-alignment-Y . 0)
477 (print-function . ,Text_item::print)
478 (break-align-symbol . instrument-name)
479 (break-visibility . ,begin-of-line-visible)
481 (meta . ((interfaces . (font-interface self-alignment-interface side-position-interface text-interface break-aligned-interface item-interface ))))
487 (Y-offset-callbacks . (,Side_position_interface::aligned_on_support_refpoints))
489 (space-alist . ((left-edge . (extra-space . 1.0))
491 (break-align-symbol . instrument-name)
492 (print-function . ,Text_item::print)
493 (break-align-symbol . clef)
494 (break-visibility . ,begin-of-line-visible)
496 (meta . ((interfaces . (font-interface
497 self-alignment-interface
498 side-position-interface text-interface
499 break-aligned-interface item-interface ))))
504 (print-function . ,Key_signature_interface::print)
506 (time-signature . (extra-space . 1.25))
507 (staff-bar . (extra-space . 1.1))
508 (right-edge . (extra-space . 0.5))
509 (first-note . (fixed-space . 2.5))
511 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
512 (break-align-symbol . key-signature)
513 (break-visibility . ,begin-of-line-visible)
515 (meta . ((interfaces . (key-signature-interface font-interface break-aligned-interface item-interface ))))
519 (print-function . ,Ledger_line_spanner::print)
520 (X-extent-callback . #f)
521 (Y-extent-callback . #f)
522 (print-function . ,Ledger_line_spanner::print)
523 (meta . ((interfaces . (spanner-interface ledger-line-interface))))
528 (ligature-primitive-callback . ,Note_head::print)
533 (edge-height . (0.7 . 0.7))
534 (shorten-pair . (-0.2 . -0.2))
535 (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
536 (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
537 (print-function . ,Tuplet_bracket::print)
538 (meta . ((interfaces . (tuplet-bracket-interface spanner-interface))))
547 (spacing-procedure . ,Hyphen_spanner::set_spacing_rods)
548 (print-function . ,Hyphen_spanner::print)
550 (meta . ((interfaces . (lyric-interface lyric-hyphen-interface
551 spanner-interface))))
556 (print-function . ,Lyric_extender::print)
557 (thickness . 0.8) ; linethickness
558 (minimum-length . 1.5)
560 (meta . ((interfaces . (lyric-interface
561 lyric-extender-interface spanner-interface))))
565 . ((print-function . ,Text_item::print)
566 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_parent))
567 (self-alignment-X . 0)
569 (font-series . bold-narrow)
571 (meta . ((interfaces . (rhythmic-grob-interface lyric-syllable-interface self-alignment-interface text-interface font-interface item-interface ))))
578 (ligature-primitive-callback . ,Mensural_ligature::brew_ligature_primitive)
579 (print-function . ,Mensural_ligature::print)
580 (meta . ((interfaces . (mensural-ligature-interface font-interface))))
585 (print-function . ,Text_item::print)
586 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
587 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
588 (after-line-breaking-callback . ,shift-right-at-line-begin)
589 (self-alignment-X . 0)
594 (break-visibility . ,end-of-line-invisible)
596 (meta . ((interfaces . (text-interface side-position-interface font-interface mark-interface self-alignment-interface item-interface ))))
600 (print-function . ,Text_item::print)
601 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
604 (meta . ((interfaces . (text-interface side-position-interface font-interface metronome-mark-interface item-interface))))
608 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
609 (print-function . ,Measure_grouping::print)
615 (meta . ((interfaces . (spanner-interface side-position-interface measure-grouping-interface))))
619 (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
620 (print-function . ,Multi_measure_rest::print)
621 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
624 (thick-thickness . 6.6)
625 (hair-thickness . 2.0)
627 (font-encoding . fetaMusic)
628 (meta . ((interfaces . (multi-measure-rest-interface multi-measure-interface rest-interface font-interface staff-symbol-referencer-interface))))
631 (MultiMeasureRestNumber
633 (print-function . ,Text_item::print)
634 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
635 ,Self_alignment_interface::centered_on_other_axis_parent))
636 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
637 (self-alignment-X . 0)
640 (staff-padding . 1.3)
641 (font-encoding . fetaNumber)
642 (meta . ((interfaces . (side-position-interface multi-measure-interface self-alignment-interface font-interface spanner-interface text-interface))))
644 (MultiMeasureRestText
646 (print-function . ,Text_item::print)
647 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
648 ,Self_alignment_interface::centered_on_other_axis_parent))
649 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
650 (self-alignment-X . 0)
653 (staff-padding . 1.5)
654 (meta . ((interfaces . (side-position-interface multi-measure-interface self-alignment-interface font-interface spanner-interface text-interface))))
659 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
660 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
661 (meta . ((interfaces . (note-collision-interface axis-group-interface item-interface ))))
667 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
668 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
669 (meta . ((interfaces . (axis-group-interface note-column-interface item-interface ))))
675 (print-function . ,Note_head::print)
676 (ligature-primitive-callback . ,Note_head::print)
677 (glyph-name-procedure . ,find-notehead-symbol)
678 (X-extent-callback . ,Note_head::extent)
679 (Y-extent-callback . ,Note_head::extent)
680 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
681 (stem-attachment-function . ,note-head-style->attachment-coordinates)
682 (meta . ((interfaces . (rhythmic-grob-interface rhythmic-head-interface font-interface note-head-interface staff-symbol-referencer-interface item-interface ))))
687 (stem-spacing-correction . 0.5)
689 ;; Changed this from 0.75.
690 ;; If you ever change this back, please document! --hwn
691 (knee-spacing-correction . 1.0)
693 (meta . ((interfaces . (spacing-interface note-spacing-interface item-interface ))))
701 (X-extent-callback . #f)
702 (Y-extent-callback . #f)
703 (print-function . ,Line_spanner::print)
704 (after-line-breaking-callback . ,Line_spanner::after_line_breaking)
705 (meta . ((interfaces . (line-spanner-interface line-interface spanner-interface))))
710 (print-function . ,Text_item::print)
711 (meta . ((interfaces . (note-name-interface
712 text-interface font-interface item-interface ))))
717 (self-alignment-X . 0)
718 (break-visibility . ,begin-of-line-visible)
719 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent ,Self_alignment_interface::aligned_on_self))
720 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
721 (print-function . ,Text_item::print)
723 ;; no Y dimensions, because of lyrics under tenor clef.
725 (font-shape . italic)
727 (staff-padding . 0.2)
729 (meta . ((interfaces . (text-interface self-alignment-interface side-position-interface font-interface item-interface ))))
735 (before-line-breaking-callback . ,Paper_column::before_line_breaking)
736 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
738 ; (print-function . ,Paper_column::print) (font-name . "ecrm8") (Y-extent-callback . #f)
739 (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
744 (print-function . ,New_slur::print)
746 (spacing-procedure . ,Spanner::set_spacing_rods)
747 (minimum-length . 1.5)
748 (after-line-breaking-callback . ,New_slur::after_line_breaking)
749 (Y-extent-callback . ,New_slur::height)
752 (meta . ((interfaces . (slur-interface spanner-interface))))
755 (NonMusicalPaperColumn
758 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
759 (before-line-breaking-callback . ,Paper_column::before_line_breaking)
761 ;; debugging stuff: print column number.
762 ; (print-function . ,Paper_column::print) (font-name . "ecrm8") (Y-extent-callback . #f)
765 (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
770 (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
771 (print-function . ,Multi_measure_rest::percent)
774 (font-encoding . fetaMusic)
775 (meta . ((interfaces . (multi-measure-rest-interface spanner-interface font-interface percent-repeat-interface))))
778 (PianoPedalBracket ;; an example of a text spanner
780 (print-function . ,Piano_pedal_bracket::print)
782 (if-text-padding . 1.0)
784 (bracket-flare . (0.5 . 0.5))
785 (edge-height . (1.0 . 1.0))
786 (shorten-pair . (0.0 . 0.0))
788 (meta . ((interfaces . (line-interface piano-pedal-interface piano-pedal-bracket-interface spanner-interface))))
792 (RemoveEmptyVerticalGroup
794 (Y-offset-callbacks . (,Hara_kiri_group_spanner::force_hara_kiri_callback))
795 (Y-extent-callback . ,Hara_kiri_group_spanner::y_extent)
798 (meta . ((interfaces . (axis-group-interface hara-kiri-group-interface item-interface spanner-interface))))
803 (print-function . ,Percent_repeat_item_interface::beat_slash)
806 (meta . ((interfaces . (percent-repeat-interface item-interface ))))
810 (after-line-breaking-callback . ,Rest::after_line_breaking)
811 (X-extent-callback . ,Rest::extent_callback)
812 (Y-extent-callback . ,Rest::extent_callback)
813 (print-function . ,Rest::print)
814 (Y-offset-callbacks . (,Staff_symbol_referencer::callback
815 ,Rest::polyphonic_offset_callback
817 (minimum-distance . 0.25)
819 (interfaces . (font-interface
820 rhythmic-head-interface
821 rhythmic-grob-interface
822 staff-symbol-referencer-interface
823 rest-interface item-interface ))
828 (minimum-distance . 0.75)
829 (meta . ((interfaces . (rest-collision-interface item-interface ))))
834 ;; don't set direction here: it breaks staccato.
835 (print-function . ,Script_interface::print)
837 ;; This value is sensitive: if too large, staccato dots will move a
840 (staff-padding . 0.25)
841 ;; (script-priority . 0) priorities for scripts, see script.scm
842 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent))
843 (before-line-breaking-callback . ,Script_interface::before_line_breaking)
844 (font-encoding . fetaMusic)
845 (meta . ((interfaces . (script-interface side-position-interface font-interface item-interface ))))
850 (before-line-breaking-callback . ,Script_column::before_line_breaking)
851 (meta . ((interfaces . (script-column-interface item-interface ))))
856 (print-function . ,New_slur::print)
858 (spacing-procedure . ,Spanner::set_spacing_rods)
859 (minimum-length . 1.5)
860 (after-line-breaking-callback . ,New_slur::after_line_breaking)
861 (Y-extent-callback . ,New_slur::height)
865 (meta . ((interfaces . (slur-interface spanner-interface))))
870 (spacing-procedure . ,Spacing_spanner::set_springs)
871 (grace-space-factor . 0.6)
872 (shortest-duration-space . 2.0)
873 (spacing-increment . 1.2)
874 (base-shortest-duration . ,(ly:make-moment 1 8))
875 (meta . ((interfaces . (spacing-interface spacing-spanner-interface spanner-interface))))
880 (break-align-symbol . staff-bar)
881 (bar-size-procedure . ,Span_bar::get_bar_size)
882 (print-function . ,Span_bar::print)
883 (X-extent-callback . ,Span_bar::width_callback)
884 (Y-extent-callback . ())
886 (before-line-breaking-callback . ,Span_bar::before_line_breaking)
890 ;; Ross. page 151 lists other values, we opt for a leaner look
894 (hair-thickness . 1.6)
895 (thick-thickness . 6.0)
896 (meta . ((interfaces . (span-bar-interface font-interface
897 bar-line-interface item-interface ))))
901 . ((print-function . ,Text_item::print)
904 (X-offset-callbacks . (,Side_position_interface::aligned_side))
906 (meta . ((interfaces . (side-position-interface stanza-number-interface text-interface font-interface item-interface ))))
912 (stem-spacing-correction . 0.4)
914 (meta . ((interfaces . (spacing-interface staff-spacing-interface item-interface ))))
919 (print-function . ,Text_item::print)
921 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
922 (no-spacing-rods . #t)
923 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
924 (font-shape . italic)
925 (self-alignment-X . 0)
926 (meta . ((interfaces . (text-interface self-alignment-interface font-interface item-interface))))
929 (SostenutoPedalLineSpanner
932 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
933 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
937 (minimum-space . 1.0)
939 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
944 (print-function . ,Staff_symbol::print)
946 (ledger-line-thickness . (1.0 . 0.1))
948 (meta . ((interfaces . (staff-symbol-interface spanner-interface))))
953 ;; this list is rather long. Trim --hwn
954 (before-line-breaking-callback . ,Stem::before_line_breaking)
955 (print-function . ,Stem::print)
958 ;; 3.5 (or 3 measured from note head) is standard length
959 ;; 32nd, 64th flagged stems should be longer
960 (lengths . (3.5 3.5 3.5 4.5 5.0))
962 ;; Stems in unnatural (forced) direction should be shortened by
963 ;; one staff space, according to [Roush & Gourlay].
964 ;; Flagged stems we shorten only half a staff space.
965 (stem-shorten . (1.0 0.5))
967 ;; default stem direction for note on middle line
968 (neutral-direction . -1)
972 ;; FIXME. 3.5 yields too long beams (according to Ross and
973 ;; looking at Baerenreiter examples) for a number of common
974 ;; boundary cases. Subtracting half a beam thickness fixes
975 ;; this, but the bug may well be somewhere else.
977 ;; FIXME this should come from 'lengths
979 (beamed-lengths . (3.26 3.26 1.5))
981 ;; We use the normal minima as minimum for the ideal lengths,
982 ;; and the extreme minima as abolute minimum length.
984 ;; The 'normal' minima
985 (beamed-minimum-free-lengths . (1.83 1.5 1.25))
987 ;; The 'extreme case' minima
988 (beamed-extreme-minimum-free-lengths . (2.0 1.25))
990 (X-offset-callbacks . (,Stem::off_callback))
991 (X-extent-callback . ,Stem::dim_callback)
992 (Y-extent-callback . ,Stem::height)
993 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
994 (meta . ((interfaces . (stem-interface font-interface item-interface ))))
999 (print-function . ,Stem_tremolo::print)
1000 (Y-extent-callback . ,Stem_tremolo::height)
1001 (X-extent-callback . #f)
1003 (beam-width . 1.6) ; staff-space
1004 (beam-thickness . 0.48) ; staff-space
1005 (meta . ((interfaces . (stem-tremolo-interface item-interface ))))
1010 (X-extent-callback . #f)
1011 (Y-extent-callback . #f)
1012 (meta . ((interfaces . (spacing-interface separation-item-interface item-interface ))))
1015 (SeparatingGroupSpanner
1017 (spacing-procedure . ,Separating_group_spanner::set_spacing_rods)
1018 (meta . ((interfaces . (only-prebreak-interface spacing-interface separation-spanner-interface spanner-interface))))
1023 (no-spacing-rods . #t)
1024 (print-function . ,Sustain_pedal::print)
1025 (self-alignment-X . 0)
1027 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
1028 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1029 (meta . ((interfaces . (piano-pedal-interface text-spanner-interface text-interface self-alignment-interface font-interface item-interface))))
1032 (SustainPedalLineSpanner
1035 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1036 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1039 (staff-padding . 1.2)
1040 (minimum-space . 1.0)
1042 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
1048 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1049 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1050 (meta . ((interfaces . (system-interface axis-group-interface spanner-interface))))
1056 (print-function . ,System_start_delimiter::print)
1057 (collapse-height . 5.0)
1058 (font-encoding . fetaBraces)
1059 (Y-extent-callback . #f)
1060 (meta . ((interfaces . (system-start-delimiter-interface font-interface))))
1065 (Y-extent-callback . #f)
1066 (print-function . ,System_start_delimiter::print)
1072 (collapse-height . 1)
1074 (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1079 (Y-extent-callback . #f)
1080 (print-function . ,System_start_delimiter::print)
1081 (glyph . "bar-line")
1083 (after-line-breaking-callback . ,System_start_delimiter::after_line_breaking)
1084 (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1089 (print-function . ,Text_item::print)
1090 (no-spacing-rods . #t)
1091 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1094 (staff-padding . 0.5)
1095 (script-priority . 200)
1096 ;; todo: add X self alignment?
1097 (meta . ((interfaces . (text-script-interface text-interface side-position-interface font-interface item-interface ))))
1101 (print-function . ,Text_item::print)
1102 (no-spacing-rods . #t)
1103 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1104 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1106 (extra-offset . (-1 . 0))
1108 (staff-padding . 0.5)
1109 (script-priority . 200)
1110 ;; todo: add X self alignment?
1112 (font-series . bold)
1113 (meta . ((interfaces . (text-script-interface text-interface side-position-interface font-interface item-interface ))))
1117 (print-function . ,Text_spanner::print)
1118 (font-shape . italic)
1119 (style . dashed-line)
1120 (staff-padding . 0.1)
1122 ;; urg, only for (de)cresc. text spanners
1123 (if-text-padding . 1.0)
1124 (dash-fraction . 0.2)
1127 (meta . ((interfaces . (text-spanner-interface side-position-interface font-interface spanner-interface))))
1132 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1133 (print-function . ,Ottava_bracket::print)
1134 (font-shape . italic)
1135 (shorten-pair . (0.0 . -0.6))
1136 (staff-padding . 1.0)
1138 (minimum-length . 1.0)
1139 (dash-fraction . 0.3)
1140 (edge-height . (0 . 1.2))
1142 (meta . ((interfaces . (ottava-bracket-interface
1143 line-interface side-position-interface
1144 font-interface text-interface spanner-interface))))
1150 (print-function . ,Text_item::print)
1151 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
1152 (extra-offset . (0 . -0.65)) ;; UGH! TODO: Clean this up!
1153 (stem-attachment-function . ,tablature-stem-attachment-function)
1154 (meta . ((interfaces
1155 . (rhythmic-head-interface
1157 note-head-interface staff-symbol-referencer-interface
1158 text-interface item-interface ))))
1164 (print-function . ,Tie::print)
1165 (spacing-procedure . ,Spanner::set_spacing_rods)
1166 (staffline-clearance . 0.35)
1167 (details . ((ratio . 0.333) (height-limit . 1.0)))
1171 (minimum-length . 2.5)
1172 (meta . ((interfaces . (tie-interface spanner-interface))))
1177 (after-line-breaking-callback . ,Tie_column::after_line_breaking)
1178 (X-extent-callback . #f)
1179 (Y-extent-callback . #f)
1180 (meta . ((interfaces . (tie-column-interface spanner-interface))))
1185 (print-function . ,Time_signature::print)
1186 ; (print-function . ,Text_item::print)
1187 (break-align-symbol . time-signature)
1188 (break-visibility . ,all-visible)
1190 (first-note . (fixed-space . 2.0))
1191 (right-edge . (extra-space . 0.5))
1192 (staff-bar . (minimum-space . 2.0))
1196 ; (text . (,time-signature-glue-markup))
1197 (meta . ((interfaces . (time-signature-interface break-aligned-interface font-interface item-interface ))))
1204 (edge-height . (0.7 . 0.7))
1205 (shorten-pair . (-0.2 . -0.2))
1206 (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
1207 (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
1208 (print-function . ,Tuplet_bracket::print)
1209 (font-shape . italic)
1210 (font-series . bold)
1213 (meta . ((interfaces . (text-interface line-interface tuplet-bracket-interface font-interface spanner-interface))))
1218 (print-function . ,Text_item::print)
1219 (font-shape . italic)
1220 (no-spacing-rods . #t)
1221 (self-alignment-X . 0)
1223 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
1224 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1225 (meta . ((interfaces . (text-interface self-alignment-interface font-interface item-interface ))))
1228 (UnaCordaPedalLineSpanner
1231 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1232 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1234 (staff-padding . 1.2)
1235 (minimum-space . 1.0)
1237 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
1244 (ligature-primitive-callback . ,Vaticana_ligature::brew_ligature_primitive)
1245 (print-function . ,Vaticana_ligature::print)
1246 (meta . ((interfaces . (vaticana-ligature-interface font-interface))))
1251 (print-function . ,Volta_bracket_interface::print)
1254 (font-encoding . fetaNumber)
1255 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1256 (thickness . 1.6) ; linethickness
1257 (height . 2.0) ; staffspace;
1260 (meta . ((interfaces . (volta-bracket-interface line-interface text-interface side-position-interface font-interface spanner-interface))))
1266 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1267 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1269 (meta . ((interfaces . (align-interface axis-group-interface spanner-interface))))
1275 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1276 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1278 (meta . ((interfaces . (axis-group-interface spanner-interface))))
1286 (define (completize-grob-entry x)
1287 "transplant assoc key into 'name entry of 'meta of X
1289 (let* ((name-sym (car x))
1290 (grob-entry (cdr x))
1291 (metaentry (cdr (assoc 'meta grob-entry)))
1293 (cdr (assoc 'interfaces metaentry)))
1296 (set! metaentry (assoc-set! metaentry 'name name-sym))
1297 (set! metaentry (assoc-set! metaentry 'interfaces
1298 (cons 'grob-interface ifaces-entry)))
1299 (set! grob-entry (assoc-set! grob-entry 'meta metaentry))
1300 (cons name-sym grob-entry)))
1302 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
1306 ; (display (map pair? all-grob-descriptions))
1309 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
1312 ; (display (car x)) (newline)
1314 (set-object-property! (car x) 'translation-type? list?)
1315 (set-object-property! (car x) 'is-grob? #t))
1316 all-grob-descriptions)
1319 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))