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
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))))
77 (print-function . ,Note_head::print)
78 (glyph-name-procedure . ,find-notehead-symbol)
79 (X-extent-callback . ,Note_head::extent)
80 (Y-extent-callback . ,Note_head::extent)
81 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
82 (meta . ((interfaces . (font-interface note-head-interface
84 staff-symbol-referencer-interface
85 rhythmic-head-interface
92 (X-extent-callback . ,Arpeggio::width_callback)
93 (Y-extent-callback . #f)
94 (print-function . ,Arpeggio::print)
95 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
96 (X-offset-callbacks . (,Side_position_interface::aligned_side))
99 (staff-position . 0.0)
100 (meta . ((interfaces . (arpeggio-interface staff-symbol-referencer-interface side-position-interface item-interface font-interface))))
105 (break-align-symbol . staff-bar)
107 (break-glyph-function . ,default-break-barline)
108 (bar-size-procedure . ,Bar_line::get_staff_bar_size)
109 (print-function . ,Bar_line::print)
110 (break-visibility . ,all-visible)
112 (before-line-breaking-callback . ,Bar_line::before_line_breaking)
114 (time-signature . (extra-space . 0.75))
115 (custos . (minimum-space . 2.0))
116 (clef . (minimum-space . 1.0))
117 (key-signature . (extra-space . 1.0))
118 (key-cancellation . (extra-space . 1.0))
119 (first-note . (fixed-space . 1.3))
120 (next-note . (semi-fixed-space . 1.3))
121 (right-edge . (extra-space . 0.0))
125 ;; Ross. page 151 lists other values, we opt for a leaner look
128 ;; kern should scale with linethickness too.
131 (hair-thickness . 1.9)
132 (thick-thickness . 6.0)
133 (meta . ((interfaces . (bar-line-interface item-interface break-aligned-interface font-interface))))
139 (print-function . ,Text_interface::print)
141 (break-visibility . ,begin-of-line-visible)
144 (font-family . roman)
146 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
147 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
148 (self-alignment-X . 1)
150 ;; hmm. why did we do this: ?
151 (extra-offset . (1.3 . 0))
153 ((interfaces . (side-position-interface
155 self-alignment-interface
156 font-interface item-interface break-aligned-interface))))
162 (print-function . ,Text_interface::print)
163 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
165 (font-family . number)
167 ;; We must do this, other BFs in
168 ;; paper16 become too small.
171 (meta . ((interfaces . (text-interface rhythmic-grob-interface
172 bass-figure-interface item-interface
173 self-alignment-interface font-interface))))
177 ;; todo: clean this up a bit: the list is getting
179 (print-function . ,Beam::print)
181 (positions . (#f . #f))
182 (position-callbacks . (,Beam::least_squares
185 ,Beam::shift_region_to_valid
189 ;; TODO: should be in SLT.
190 (thickness . 0.48) ; in staff-space
191 (before-line-breaking-callback . ,Beam::before_line_breaking)
192 (after-line-breaking-callback . ,Beam::after_line_breaking)
193 (neutral-direction . -1)
194 (dir-function . ,beam-dir-majority-median)
196 ;; Whe have some unreferenced problems here.
198 ;; If we shorten beamed stems less than normal stems (1 staffspace),
199 ;; or high order less than 8th beams, patterns like
200 ;; c''4 [c''8 c''] c''4 [c''16 c]
201 ;; are ugly (different stem lengths).
203 ;; But if we shorten 16th beams as much as 8th beams, a single
204 ;; forced 16th beam looks *very* short.
206 ;; We choose to shorten 8th beams the same as single stems,
207 ;; and high order beams less than 8th beams, so that all
208 ;; isolated shortened beams look nice and a bit shortened,
209 ;; sadly possibly breaking patterns with high order beams.
210 (beamed-stem-shorten . (1.0 0.5 0.25))
212 (flag-width-function . ,beam-flag-width-function)
214 (auto-knee-gap . 5.5)
216 ;; only for debugging.
217 (font-family . roman)
219 (space-function . ,Beam::space_function)
220 (meta . ((interfaces . (staff-symbol-referencer-interface beam-interface spanner-interface))))
227 (break-align-orders . #(; end-of-line:
229 left-edge ambitus breathing-sign
230 clef staff-bar key-cancellation key-signature
231 time-signature custos)
234 (instrument-name left-edge ambitus breathing-sign
235 clef staff-bar key-cancellation key-signature
237 time-signature custos)
239 (instrument-name left-edge ambitus breathing-sign
240 clef key-cancellation key-signature staff-bar
241 time-signature custos)
245 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
246 (meta . ((interfaces . (break-alignment-interface item-interface axis-group-interface)))))
252 (X-offset-callbacks . (,Break_align_interface::alignment_callback))
253 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
254 (meta . ((interfaces . (break-aligned-interface item-interface axis-group-interface item-interface ))))
259 (break-align-symbol . breathing-sign)
262 (ambitus . (extra-space . 2.0))
263 (custos . (minimum-space . 1.0))
264 (key-signature . (minimum-space . 1.5))
265 (staff-bar . (minimum-space . 1.5))
266 (clef . (minimum-space . 2.0))
267 (first-note . (fixed-space . 1.0)) ;huh?
268 (right-edge . (extra-space . 0.1))
270 (print-function . ,Text_interface::print)
271 (text . ,(make-musicglyph-markup "scripts-rcomma"))
272 (Y-offset-callbacks . (,Breathing_sign::offset_callback))
273 (break-visibility . ,begin-of-line-invisible)
274 (meta . ((interfaces . (break-aligned-interface breathing-sign-interface text-interface font-interface item-interface ))))
279 (print-function . ,Clef::print)
280 (before-line-breaking-callback . ,Clef::before_line_breaking)
282 (font-family . music)
283 (break-align-symbol . clef)
284 (break-visibility . ,begin-of-line-visible)
285 (space-alist . ((ambitus . (extra-space . 2.0))
286 (staff-bar . (extra-space . 0.7))
287 (key-cancellation . (minimum-space . 4.0))
288 (key-signature . (minimum-space . 4.0))
289 (time-signature . (minimum-space . 4.2))
290 (first-note . (minimum-fixed-space . 5.0))
291 (next-note . (extra-space . 0.5))
292 (right-edge . (extra-space . 0.5))
294 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
295 (meta . ((interfaces . (clef-interface staff-symbol-referencer-interface font-interface break-aligned-interface item-interface ))))
298 (ClusterSpannerBeacon
300 (print-function . #f)
301 (Y-extent-callback . ,Cluster_beacon::height)
302 (meta . ((interfaces . (cluster-beacon-interface item-interface))))
307 (print-function . ,Cluster::print)
308 (spacing-procedure . ,Spanner::set_spacing_rods)
309 (minimum-length . 0.0)
312 (meta . ((interfaces . (cluster-interface spanner-interface))))
317 (print-function . ,Text_interface::print)
318 (after-line-breaking-callback . ,Chord_name::after_line_breaking)
322 (meta . ((interfaces . (font-interface rhythmic-grob-interface
323 text-interface chord-name-interface item-interface ))))
328 (break-align-symbol . custos)
330 (print-function . ,Custos::print)
331 (break-visibility . ,end-of-line-visible)
333 (neutral-direction . -1)
334 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
336 (first-note . (minimum-fixed-space . 0.0))
337 (right-edge . (extra-space . 0.1))
340 . (custos-interface staff-symbol-referencer-interface
342 break-aligned-interface item-interface ))))
350 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
351 (X-offset-callbacks . (,Dot_column::side_position))
352 (meta . ((interfaces . (dot-column-interface axis-group-interface item-interface ))))
357 (print-function . ,Dots::print)
359 (meta . ((interfaces . (font-interface staff-symbol-referencer-interface dots-interface item-interface ))))
364 (print-function . ,Percent_repeat_item_interface::double_percent)
367 (font-encoding . fetaMusic)
370 (break-align-symbol . staff-bar)
371 (break-visibility . ,begin-of-line-invisible)
372 (meta . ((interfaces . (font-interface
373 break-aligned-interface
374 percent-repeat-interface item-interface ))))
378 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
379 (print-function . ,Text_interface::print)
380 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
381 ,Self_alignment_interface::centered_on_parent))
382 (self-alignment-X . 0)
383 (no-spacing-rods . #t)
384 (script-priority . 100)
386 (font-encoding . fetaDynamic)
387 (font-shape . italic)
388 (self-alignment-Y . 0)
389 (meta . ((interfaces . (font-interface text-interface self-alignment-interface
390 dynamic-interface script-interface item-interface))))
393 . ((print-function . ,Dynamic_text_spanner::print)
395 (font-shape . italic)
396 (style . dashed-line)
398 ; need to blend with dynamic texts.
400 (bound-padding . 0.75)
401 (dash-fraction . 0.2)
403 (meta . ((interfaces . (font-interface
405 dynamic-interface dynamic-text-spanner-interface
412 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
413 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
414 (staff-padding . 0.1)
416 (minimum-space . 1.2)
419 (meta . ((interfaces . (dynamic-interface axis-group-interface
420 side-position-interface spanner-interface)))) ))
424 (break-align-symbol . left-edge)
428 (custos . (extra-space . 0.0))
429 (ambitus . (extra-space . 2.0))
430 (time-signature . (extra-space . 0.0))
431 (staff-bar . (extra-space . 0.0))
432 (breathing-sign . (minimum-space . 0.0))
433 (clef . (extra-space . 0.85))
434 (first-note . (fixed-space . 1.0))
435 (right-edge . (extra-space . 0.0))
436 (key-signature . (extra-space . 0.0))
437 (key-cancellation . (extra-space . 0.0))
440 (meta . ((interfaces . (break-aligned-interface item-interface ))))
445 (print-function . ,Text_interface::print)
447 ; sync with TextScript (?)
449 (staff-padding . 0.5)
450 (self-alignment-X . 0)
451 (self-alignment-Y . 0)
452 (script-priority . 100)
453 (font-encoding . fetaNumber)
454 (font-size . -5) ; don't overlap when next to heads.
455 (meta . ((interfaces . (finger-interface
456 font-interface text-script-interface text-interface
457 side-position-interface self-alignment-interface
465 (zigzag-width . 0.75)
467 (X-extent-callback . #f)
468 (Y-extent-callback . #f)
469 (after-line-breaking-callback . ,Line_spanner::after_line_breaking)
470 (print-function . ,Line_spanner::print)
471 (meta . ((interfaces . (line-spanner-interface spanner-interface))))
476 (print-function . ,Hairpin::print)
479 (spacing-procedure . ,Spanner::set_spacing_rods)
480 (minimum-length . 2.0)
481 (bound-padding . 1.0)
482 (self-alignment-Y . 0)
483 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
484 (meta . ((interfaces . (hairpin-interface line-interface self-alignment-interface dynamic-interface spanner-interface))))
490 (print-function . ,Horizontal_bracket::print)
491 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
494 (bracket-flare . (0.5 . 0.5))
495 (meta . ((interfaces . (horizontal-bracket-interface
496 side-position-interface
498 spanner-interface))))
503 (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self
504 ,Side_position_interface::aligned_on_support_refpoints))
505 ;; This direction is for aligned_on_support_refpoints
509 (left-edge . (extra-space . 1.0))
512 (self-alignment-Y . 0)
513 (print-function . ,Text_interface::print)
514 (break-align-symbol . instrument-name)
515 (break-visibility . ,begin-of-line-visible)
517 (meta . ((interfaces . (font-interface self-alignment-interface side-position-interface text-interface break-aligned-interface item-interface ))))
523 (Y-offset-callbacks . (,Side_position_interface::aligned_on_support_refpoints))
525 (space-alist . ((left-edge . (extra-space . 1.0))
527 (break-align-symbol . instrument-name)
528 (print-function . ,Text_interface::print)
529 (break-align-symbol . clef)
530 (break-visibility . ,begin-of-line-visible)
532 (meta . ((interfaces . (font-interface
533 self-alignment-interface
534 side-position-interface text-interface
535 break-aligned-interface item-interface ))))
539 (print-function . ,Key_signature_interface::print)
541 (time-signature . (extra-space . 1.25))
542 (staff-bar . (extra-space . 0.6))
543 (right-edge . (extra-space . 0.5))
544 (first-note . (fixed-space . 2.5))
546 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
547 (break-align-symbol . key-cancellation)
548 (break-visibility . ,begin-of-line-invisible)
551 (meta . ((interfaces . (key-signature-interface font-interface
552 break-aligned-interface item-interface ))))
556 (print-function . ,Key_signature_interface::print)
558 (time-signature . (extra-space . 1.25))
559 (staff-bar . (extra-space . 1.1))
560 (right-edge . (extra-space . 0.5))
561 (first-note . (fixed-space . 2.5))
563 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
564 (break-align-symbol . key-signature)
565 (break-visibility . ,begin-of-line-visible)
568 (meta . ((interfaces . (key-signature-interface font-interface
569 break-aligned-interface item-interface ))))
573 (print-function . ,Ledger_line_spanner::print)
574 (X-extent-callback . #f)
575 (Y-extent-callback . #f)
576 (print-function . ,Ledger_line_spanner::print)
577 (meta . ((interfaces . (spanner-interface ledger-line-interface))))
582 (ligature-primitive-callback . ,Note_head::print)
587 (edge-height . (0.7 . 0.7))
588 (shorten-pair . (-0.2 . -0.2))
589 (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
590 (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
591 (print-function . ,Tuplet_bracket::print)
592 (meta . ((interfaces . (tuplet-bracket-interface spanner-interface))))
601 (spacing-procedure . ,Hyphen_spanner::set_spacing_rods)
602 (print-function . ,Hyphen_spanner::print)
604 (meta . ((interfaces . (lyric-interface lyric-hyphen-interface
605 spanner-interface))))
610 (print-function . ,Lyric_extender::print)
611 (thickness . 0.8) ; linethickness
612 (minimum-length . 1.5)
614 (meta . ((interfaces . (lyric-interface
615 lyric-extender-interface spanner-interface))))
619 . ((print-function . ,Text_interface::print)
620 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_parent))
621 (self-alignment-X . 0)
623 (font-series . bold-narrow)
625 (meta . ((interfaces . (rhythmic-grob-interface lyric-syllable-interface self-alignment-interface text-interface font-interface item-interface ))))
632 (ligature-primitive-callback . ,Mensural_ligature::brew_ligature_primitive)
633 (print-function . ,Mensural_ligature::print)
634 (meta . ((interfaces . (mensural-ligature-interface font-interface))))
639 (print-function . ,Text_interface::print)
640 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
641 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
642 (after-line-breaking-callback . ,shift-right-at-line-begin)
643 (self-alignment-X . 0)
648 (break-visibility . ,end-of-line-invisible)
650 (meta . ((interfaces . (text-interface
651 side-position-interface font-interface mark-interface
652 self-alignment-interface item-interface ))))
656 (print-function . ,Text_interface::print)
657 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
660 (meta . ((interfaces . (text-interface
661 side-position-interface font-interface
662 metronome-mark-interface item-interface))))
666 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
667 (print-function . ,Measure_grouping::print)
673 (meta . ((interfaces . (spanner-interface side-position-interface measure-grouping-interface))))
677 (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
678 (print-function . ,Multi_measure_rest::print)
679 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
682 (thick-thickness . 6.6)
683 (hair-thickness . 2.0)
685 (meta . ((interfaces . (multi-measure-rest-interface multi-measure-interface rest-interface font-interface staff-symbol-referencer-interface))))
688 (MultiMeasureRestNumber
690 (print-function . ,Text_interface::print)
691 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
692 ,Self_alignment_interface::centered_on_other_axis_parent))
693 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
694 (self-alignment-X . 0)
697 (staff-padding . 0.4)
698 (font-encoding . fetaNumber)
699 (meta . ((interfaces . (side-position-interface multi-measure-interface self-alignment-interface font-interface spanner-interface text-interface))))
701 (MultiMeasureRestText
703 (print-function . ,Text_interface::print)
704 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
705 ,Self_alignment_interface::centered_on_other_axis_parent))
706 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
707 (self-alignment-X . 0)
710 (staff-padding . 0.25)
711 (meta . ((interfaces . (side-position-interface multi-measure-interface self-alignment-interface font-interface spanner-interface text-interface))))
716 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
717 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
718 (meta . ((interfaces . (note-collision-interface axis-group-interface item-interface ))))
724 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
725 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
726 (meta . ((interfaces . (axis-group-interface note-column-interface item-interface ))))
732 (print-function . ,Note_head::print)
733 (ligature-primitive-callback . ,Note_head::print)
734 (glyph-name-procedure . ,find-notehead-symbol)
735 (X-extent-callback . ,Note_head::extent)
736 (Y-extent-callback . ,Note_head::extent)
737 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
738 (stem-attachment-function . ,note-head-style->attachment-coordinates)
739 (meta . ((interfaces . (rhythmic-grob-interface
740 rhythmic-head-interface font-interface note-head-interface
742 staff-symbol-referencer-interface item-interface ))))
747 (stem-spacing-correction . 0.5)
749 ;; Changed this from 0.75.
750 ;; If you ever change this back, please document! --hwn
751 (knee-spacing-correction . 1.0)
753 (meta . ((interfaces . (spacing-interface note-spacing-interface item-interface ))))
761 (X-extent-callback . #f)
762 (Y-extent-callback . #f)
763 (print-function . ,Line_spanner::print)
764 (after-line-breaking-callback . ,Line_spanner::after_line_breaking)
765 (meta . ((interfaces . (line-spanner-interface line-interface spanner-interface))))
770 (print-function . ,Text_interface::print)
771 (meta . ((interfaces . (note-name-interface
772 text-interface font-interface item-interface ))))
777 (self-alignment-X . 0)
778 (break-visibility . ,begin-of-line-visible)
779 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent ,Self_alignment_interface::aligned_on_self))
780 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
781 (print-function . ,Text_interface::print)
783 ;; no Y dimensions, because of lyrics under tenor clef.
785 (font-shape . italic)
787 (staff-padding . 0.2)
789 (meta . ((interfaces . (text-interface self-alignment-interface side-position-interface font-interface item-interface ))))
795 (before-line-breaking-callback . ,Paper_column::before_line_breaking)
796 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
798 ; (print-function . ,Paper_column::print) (font-name . "ecrm8") (Y-extent-callback . #f)
799 (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
803 . ((slur-details . ,default-slur-details)
804 (print-function . ,Slur::print)
806 (spacing-procedure . ,Spanner::set_spacing_rods)
807 (minimum-length . 1.5)
808 (after-line-breaking-callback . ,Slur::after_line_breaking)
809 (Y-extent-callback . ,Slur::height)
812 (meta . ((interfaces . (slur-interface spanner-interface))))
815 (NonMusicalPaperColumn
818 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
819 (before-line-breaking-callback . ,Paper_column::before_line_breaking)
821 ;; debugging stuff: print column number.
822 ; (print-function . ,Paper_column::print) (font-name . "ecrm8") (Y-extent-callback . #f)
825 (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
830 (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
831 (print-function . ,Multi_measure_rest::percent)
834 (font-encoding . fetaMusic)
835 (meta . ((interfaces . (multi-measure-rest-interface spanner-interface font-interface percent-repeat-interface))))
838 (PianoPedalBracket ;; an example of a text spanner
840 (print-function . ,Piano_pedal_bracket::print)
842 (bound-padding . 1.0)
844 (bracket-flare . (0.5 . 0.5))
845 (edge-height . (1.0 . 1.0))
846 (shorten-pair . (0.0 . 0.0))
848 (meta . ((interfaces . (line-interface piano-pedal-interface piano-pedal-bracket-interface spanner-interface))))
852 (RemoveEmptyVerticalGroup
854 (Y-offset-callbacks . (,Hara_kiri_group_spanner::force_hara_kiri_callback))
855 (Y-extent-callback . ,Hara_kiri_group_spanner::y_extent)
858 (meta . ((interfaces . (axis-group-interface hara-kiri-group-interface item-interface spanner-interface))))
863 (print-function . ,Percent_repeat_item_interface::beat_slash)
866 (meta . ((interfaces . (percent-repeat-interface item-interface ))))
870 (after-line-breaking-callback . ,Rest::after_line_breaking)
871 (X-extent-callback . ,Rest::extent_callback)
872 (Y-extent-callback . ,Rest::extent_callback)
873 (print-function . ,Rest::print)
874 (Y-offset-callbacks . (,Staff_symbol_referencer::callback
875 ,Rest::polyphonic_offset_callback
877 (minimum-distance . 0.25)
879 (interfaces . (font-interface
880 rhythmic-head-interface
881 rhythmic-grob-interface
882 staff-symbol-referencer-interface
883 rest-interface item-interface ))
888 (minimum-distance . 0.75)
889 (meta . ((interfaces . (rest-collision-interface item-interface ))))
894 ;; don't set direction here: it breaks staccato.
895 (print-function . ,Script_interface::print)
897 ;; This value is sensitive: if too large, staccato dots will move a
900 (staff-padding . 0.25)
901 ;; (script-priority . 0) priorities for scripts, see script.scm
902 (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent))
903 (before-line-breaking-callback . ,Script_interface::before_line_breaking)
904 (font-encoding . fetaMusic)
905 (meta . ((interfaces . (script-interface side-position-interface font-interface item-interface ))))
910 (before-line-breaking-callback . ,Script_column::before_line_breaking)
911 (meta . ((interfaces . (script-column-interface item-interface ))))
915 . ((slur-details . ,default-slur-details)
916 (print-function . ,Slur::print)
918 (spacing-procedure . ,Spanner::set_spacing_rods)
919 (minimum-length . 1.5)
920 (after-line-breaking-callback . ,Slur::after_line_breaking)
921 (Y-extent-callback . ,Slur::height)
925 (meta . ((interfaces . (slur-interface spanner-interface))))
930 (spacing-procedure . ,Spacing_spanner::set_springs)
931 (grace-space-factor . 0.6)
932 (shortest-duration-space . 2.0)
933 (spacing-increment . 1.2)
934 (base-shortest-duration . ,(ly:make-moment 3 16))
935 (meta . ((interfaces . (spacing-interface spacing-spanner-interface spanner-interface))))
940 (break-align-symbol . staff-bar)
941 (bar-size-procedure . ,Span_bar::get_bar_size)
942 (print-function . ,Span_bar::print)
943 (X-extent-callback . ,Span_bar::width_callback)
944 (Y-extent-callback . ())
946 (before-line-breaking-callback . ,Span_bar::before_line_breaking)
950 ;; Ross. page 151 lists other values, we opt for a leaner look
954 (hair-thickness . 1.6)
955 (thick-thickness . 6.0)
956 (meta . ((interfaces . (span-bar-interface font-interface
957 bar-line-interface item-interface ))))
961 . ((print-function . ,Text_interface::print)
964 (X-offset-callbacks . (,Side_position_interface::aligned_side))
966 (meta . ((interfaces . (side-position-interface stanza-number-interface text-interface font-interface item-interface ))))
972 (stem-spacing-correction . 0.4)
974 (meta . ((interfaces . (spacing-interface staff-spacing-interface item-interface ))))
979 (print-function . ,Text_interface::print)
981 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
982 (no-spacing-rods . #t)
983 (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
984 (font-shape . italic)
985 (self-alignment-X . 0)
986 (meta . ((interfaces . (text-interface self-alignment-interface font-interface item-interface))))
989 (SostenutoPedalLineSpanner
992 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
993 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
997 (minimum-space . 1.0)
999 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
1004 (print-function . ,Staff_symbol::print)
1006 (ledger-line-thickness . (1.0 . 0.1))
1008 (meta . ((interfaces . (staff-symbol-interface spanner-interface))))
1013 ;; this list is rather long. Trim --hwn
1014 (before-line-breaking-callback . ,Stem::before_line_breaking)
1015 (print-function . ,Stem::print)
1018 ;; 3.5 (or 3 measured from note head) is standard length
1019 ;; 32nd, 64th flagged stems should be longer
1020 (lengths . (3.5 3.5 3.5 4.5 5.0))
1022 ;; Stems in unnatural (forced) direction should be shortened by
1023 ;; one staff space, according to [Roush & Gourlay].
1024 ;; Flagged stems we shorten only half a staff space.
1025 (stem-shorten . (1.0 0.5))
1027 ;; default stem direction for note on middle line
1028 (neutral-direction . -1)
1032 ;; FIXME. 3.5 yields too long beams (according to Ross and
1033 ;; looking at Baerenreiter examples) for a number of common
1034 ;; boundary cases. Subtracting half a beam thickness fixes
1035 ;; this, but the bug may well be somewhere else.
1037 ;; FIXME this should come from 'lengths
1039 (beamed-lengths . (3.26 3.5 3.6))
1041 ;; We use the normal minima as minimum for the ideal lengths,
1042 ;; and the extreme minima as abolute minimum length.
1044 ;; The 'normal' minima
1045 (beamed-minimum-free-lengths . (1.83 1.5 1.25))
1046 ;(beamed-minimum-free-lengths . (2.0 1.83 1.25))
1048 ;; The 'extreme case' minima
1049 (beamed-extreme-minimum-free-lengths . (2.0 1.25))
1051 (X-offset-callbacks . (,Stem::off_callback))
1052 (X-extent-callback . ,Stem::dim_callback)
1053 (Y-extent-callback . ,Stem::height)
1054 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
1055 (meta . ((interfaces . (stem-interface font-interface item-interface ))))
1060 (print-function . ,Stem_tremolo::print)
1061 (Y-extent-callback . ,Stem_tremolo::height)
1062 (X-extent-callback . #f)
1064 (beam-width . 1.6) ; staff-space
1065 (beam-thickness . 0.48) ; staff-space
1066 (meta . ((interfaces . (stem-tremolo-interface item-interface ))))
1071 (X-extent-callback . #f)
1072 (Y-extent-callback . #f)
1073 (meta . ((interfaces . (spacing-interface separation-item-interface item-interface ))))
1076 (SeparatingGroupSpanner
1078 (spacing-procedure . ,Separating_group_spanner::set_spacing_rods)
1079 (meta . ((interfaces . (only-prebreak-interface spacing-interface separation-spanner-interface spanner-interface))))
1084 (no-spacing-rods . #t)
1085 (print-function . ,Sustain_pedal::print)
1086 (self-alignment-X . 0)
1088 (padding . 0.0) ;; padding relative to SustainPedalLineSpanner
1089 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1090 (meta . ((interfaces . (piano-pedal-interface text-spanner-interface text-interface self-alignment-interface font-interface item-interface))))
1093 (SustainPedalLineSpanner
1096 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1097 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1100 (staff-padding . 1.2)
1101 (minimum-space . 1.0)
1103 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
1109 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1110 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1111 (meta . ((interfaces . (system-interface axis-group-interface spanner-interface))))
1117 (print-function . ,System_start_delimiter::print)
1118 (collapse-height . 5.0)
1119 (font-encoding . fetaBraces)
1120 (Y-extent-callback . #f)
1121 (meta . ((interfaces . (system-start-delimiter-interface font-interface))))
1126 (Y-extent-callback . #f)
1127 (print-function . ,System_start_delimiter::print)
1133 (collapse-height . 1)
1135 (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1140 (Y-extent-callback . #f)
1141 (print-function . ,System_start_delimiter::print)
1142 (glyph . "bar-line")
1144 (after-line-breaking-callback . ,System_start_delimiter::after_line_breaking)
1145 (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1150 (print-function . ,Text_interface::print)
1151 (no-spacing-rods . #t)
1152 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1155 ; sync with Fingering ?
1157 (staff-padding . 0.5)
1158 (script-priority . 200)
1159 ;; todo: add X self alignment?
1160 (meta . ((interfaces . (text-script-interface text-interface side-position-interface font-interface item-interface ))))
1164 (print-function . ,Text_interface::print)
1165 (no-spacing-rods . #t)
1166 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1167 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1169 (extra-offset . (-1 . 0))
1171 (staff-padding . 0.5)
1172 (script-priority . 200)
1173 ;; todo: add X self alignment?
1175 (font-series . bold)
1176 (meta . ((interfaces . (text-script-interface text-interface side-position-interface font-interface item-interface ))))
1180 (print-function . ,Text_spanner::print)
1181 (font-shape . italic)
1182 (style . dashed-line)
1183 (staff-padding . 0.1)
1184 (dash-fraction . 0.2)
1187 (meta . ((interfaces . (text-spanner-interface side-position-interface font-interface spanner-interface))))
1191 (print-function . ,Dynamic_text_spanner::print)
1192 (edge-text . ,(cons (make-musicglyph-markup "scripts-trill")
1195 (staff-padding . 1.0)
1198 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1199 (meta . ((interfaces . (text-spanner-interface side-position-interface font-interface spanner-interface))))
1204 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1205 (print-function . ,Ottava_bracket::print)
1206 (font-shape . italic)
1207 (shorten-pair . (0.0 . -0.6))
1208 (staff-padding . 1.0)
1210 (minimum-length . 1.0)
1211 (dash-fraction . 0.3)
1212 (edge-height . (0 . 1.2))
1214 (meta . ((interfaces . (ottava-bracket-interface
1215 line-interface side-position-interface
1216 font-interface text-interface spanner-interface))))
1222 (print-function . ,Text_interface::print)
1223 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
1224 (extra-offset . (0 . -0.65)) ;; UGH! TODO: Clean this up!
1225 (stem-attachment-function . ,tablature-stem-attachment-function)
1226 (meta . ((interfaces
1227 . (rhythmic-head-interface
1229 note-head-interface staff-symbol-referencer-interface
1230 text-interface item-interface ))))
1236 (print-function . ,Tie::print)
1237 (spacing-procedure . ,Spanner::set_spacing_rods)
1238 (staffline-clearance . 0.35)
1239 (details . ((ratio . 0.333) (height-limit . 1.0)))
1243 (minimum-length . 2.5)
1244 (meta . ((interfaces . (tie-interface spanner-interface))))
1249 (after-line-breaking-callback . ,Tie_column::after_line_breaking)
1250 (X-extent-callback . #f)
1251 (Y-extent-callback . #f)
1252 (meta . ((interfaces . (tie-column-interface spanner-interface))))
1257 (print-function . ,Time_signature::print)
1258 ; (print-function . ,Text_interface::print)
1259 (break-align-symbol . time-signature)
1260 (break-visibility . ,all-visible)
1262 (first-note . (fixed-space . 2.0))
1263 (right-edge . (extra-space . 0.5))
1264 (staff-bar . (minimum-space . 2.0))
1268 ; (text . (,time-signature-glue-markup))
1269 (meta . ((interfaces . (time-signature-interface break-aligned-interface font-interface item-interface ))))
1276 (edge-height . (0.7 . 0.7))
1277 (shorten-pair . (-0.2 . -0.2))
1278 (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
1279 (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
1280 (print-function . ,Tuplet_bracket::print)
1281 (font-shape . italic)
1282 (font-series . bold)
1285 (meta . ((interfaces . (text-interface line-interface tuplet-bracket-interface font-interface spanner-interface))))
1290 (print-function . ,Text_interface::print)
1291 (font-shape . italic)
1292 (no-spacing-rods . #t)
1293 (self-alignment-X . 0)
1295 (padding . 0.0) ;; padding relative to UnaCordaPedalLineSpanner
1296 (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1297 (meta . ((interfaces . (text-interface self-alignment-interface font-interface item-interface ))))
1300 (UnaCordaPedalLineSpanner
1303 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1304 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1306 (staff-padding . 1.2)
1307 (minimum-space . 1.0)
1309 (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
1316 (ligature-primitive-callback . ,Vaticana_ligature::brew_ligature_primitive)
1317 (print-function . ,Vaticana_ligature::print)
1318 (meta . ((interfaces . (vaticana-ligature-interface font-interface))))
1323 (print-function . ,Volta_bracket_interface::print)
1326 (font-encoding . fetaNumber)
1327 (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1328 (thickness . 1.6) ; linethickness
1329 (height . 2.0) ; staffspace;
1332 (meta . ((interfaces . (volta-bracket-interface line-interface text-interface side-position-interface font-interface spanner-interface))))
1338 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1339 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1341 ; (threshold . (6 . 1000))
1342 (meta . ((interfaces . (align-interface axis-group-interface spanner-interface))))
1348 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1349 (X-extent-callback . ,Axis_group_interface::group_extent_callback)
1351 (meta . ((interfaces . (axis-group-interface spanner-interface))))
1359 (define (completize-grob-entry x)
1360 "transplant assoc key into 'name entry of 'meta of X
1362 (let* ((name-sym (car x))
1363 (grob-entry (cdr x))
1364 (metaentry (cdr (assoc 'meta grob-entry)))
1366 (cdr (assoc 'interfaces metaentry)))
1369 (set! metaentry (assoc-set! metaentry 'name name-sym))
1370 (set! metaentry (assoc-set! metaentry 'interfaces
1371 (cons 'grob-interface ifaces-entry)))
1372 (set! grob-entry (assoc-set! grob-entry 'meta metaentry))
1373 (cons name-sym grob-entry)))
1375 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
1379 ; (display (map pair? all-grob-descriptions))
1382 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
1385 ; (display (car x)) (newline)
1387 (set-object-property! (car x) 'translation-type? list?)
1388 (set-object-property! (car x) 'is-grob? #t))
1389 all-grob-descriptions)
1392 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))