1 ; distances are given in stafflinethickness (thicknesses) and
2 ; staffspace (distances)
4 (define all-grob-descriptions
6 (X-extent-callback . ,Arpeggio::width_callback)
7 (Y-extent-callback . #f)
8 (molecule-callback . ,Arpeggio::brew_molecule)
9 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
10 (X-offset-callbacks . (,Side_position::aligned_side))
12 (staff-position . 0.0)
13 (meta . ,(grob-description "Arpeggio" arpeggio-interface side-position-interface font-interface))
16 (autoBeamSettings . ,auto-beam-settings)
19 (break-align-symbol . Staff_bar)
21 (break-glyph-function . ,default-break-barline)
22 (barsize-procedure . ,Bar::get_staff_bar_size)
23 (molecule-callback . ,Bar::brew_molecule)
24 (visibility-lambda . ,all-visible)
26 (before-line-breaking-callback . ,Bar::before_line_breaking)
28 ;; Ross. page 151 lists other values, we opt for a leaner look
32 (hair-thickness . 1.6)
33 (thick-thickness . 6.0)
34 (meta . ,(grob-description "BarLine" bar-line-interface font-interface))
38 (molecule-callback . ,Text_item::brew_molecule)
40 (visibility-lambda . ,begin-of-line-visible)
44 (font-relative-size . -1)
45 (meta . ,(grob-description "BarNumber"
46 text-interface font-interface break-aligned-interface))
50 ;; todo: clean this up a bit: the list is getting
52 (molecule-callback . ,Beam::brew_molecule)
53 (thickness . 0.42) ; in staff-space, should use stafflinethick?
54 (before-line-breaking-callback . ,Beam::before_line_breaking)
55 (after-line-breaking-callback . ,Beam::after_line_breaking)
56 (default-neutral-direction . 1)
57 (dir-function . ,beam-dir-majority)
58 (height-quants . ,default-beam-dy-quants)
59 (vertical-position-quant-function . ,default-beam-y-quants)
60 (beamed-stem-shorten . (0.5))
61 (outer-stem-length-limit . 0.2)
63 (flag-width-function . ,default-beam-flag-width-function)
64 (space-function . ,default-beam-space-function)
66 (meta . ,(grob-description "Beam" beam-interface))
73 (X-offset-callbacks . (,Break_align_interface::self_align_callback))
74 (space-alist . ,default-break-align-space-alist)
75 (meta . ,(grob-description "BreakAlignment"
76 axis-group-interface align-interface
83 (X-offset-callbacks . (,Break_align_interface::alignment_callback))
85 (meta . ,(grob-description "BreakAlignGroup" axis-group-interface))
89 (break-align-symbol . Breathing_sign)
91 (molecule-callback . ,Breathing_sign::brew_molecule)
92 (Y-offset-callbacks . (,Breathing_sign::offset_callback))
93 (visibility-lambda . ,begin-of-line-invisible)
94 (meta . ,(grob-description "BreathingSign" break-aligned-interface))
98 (molecule-callback . ,Clef::brew_molecule)
99 (before-line-breaking-callback . ,Clef::before_line_breaking)
101 (font-family . music)
102 (break-align-symbol . Clef_item)
103 (visibility-lambda . ,begin-of-line-visible)
104 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
105 (meta . ,(grob-description "Clef" clef-interface font-interface break-aligned-interface ))
109 (molecule-callback . ,Chord_name::brew_molecule)
110 (after-line-breaking-callback . ,Chord_name::after_line_breaking)
111 (chord-name-function . ,default-chord-name-function)
112 (font-family . roman)
113 (meta . ,(grob-description "ChordName" font-interface text-interface chord-name-interface))
117 (break-align-symbol . Custos)
119 (molecule-callback . ,Custos::brew_molecule)
120 (visibility-lambda . ,end-of-line-visible)
122 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
123 (meta . ,(grob-description "Custos" custos-interface staff-symbol-interface break-aligned-interface) )
127 (molecule-callback . ,Hairpin::brew_molecule)
131 (if-text-padding . 1.0)
132 (width-correct . -1.0)
134 (dash-thickness . 1.2)
136 (self-alignment-Y . 0)
137 (Y-offset-callbacks . (,Side_position::aligned_on_self))
138 (meta . ,(grob-description "Hairpin" hairpin-interface))
143 (meta . ,(grob-description "DotColumn" dot-column-interface axis-group-interface))
147 (molecule-callback . ,Dots::brew_molecule)
149 (staff-position . 0.0)
150 (Y-offset-callbacks . (,Dots::quantised_position_callback ,Staff_symbol_referencer::callback))
151 (meta . ,(grob-description "Dots" font-interface dot-interface ))
155 (Y-offset-callbacks . (,Side_position::aligned_on_self))
156 (molecule-callback . ,Text_item::brew_molecule)
157 (script-priority . 100)
159 (font-family . dynamic)
160 (font-shape . italic)
161 (self-alignment-Y . 0)
162 (meta . ,(grob-description "DynamicText" font-interface text-interface ))
165 (DynamicLineSpanner . (
168 (minimum-space . 1.2)
169 (meta . ,(grob-description "DynamicLineSpanner" dynamic-interface axis-group-interface side-position-interface))
173 (break-align-symbol . Left_edge_item)
174 (X-offset-callbacks . (,Break_align_interface::alignment_callback))
176 (meta . ,(grob-description "LeftEdge" break-aligned-interface))
180 (molecule-callback . ,Text_item::brew_molecule)
181 (X-offset-callbacks . (,Side_position::centered_on_parent ,Side_position::aligned_on_self))
183 (self-alignment-X . 0)
184 (font-family . number)
185 (font-relative-size . -3)
186 (font-shape . upright)
187 (meta . ,(grob-description "Fingering" finger-interface font-interface text-script-interface text-interface side-position-interface))
192 (horizontal-space . 1.2)
194 (before-line-breaking-callback . ,Grace_align_item::before_line_breaking)
195 (meta . ,(grob-description "GraceAlignment" axis-group-interface align-interface grace-alignment-interface))
198 (HaraKiriVerticalGroup . (
199 (Y-offset-callbacks . (,Hara_kiri_group_spanner::force_hara_kiri_callback))
200 (Y-extent-callback . ,Hara_kiri_group_spanner::y_extent)
202 (meta . ,(grob-description "HaraKiriVerticalGroup" axis-group-interface hara-kiri-group-interface))
208 (minimum-length . 0.5)
209 (molecule-callback . ,Hyphen_spanner::brew_molecule)
210 (Y-extent-callback . ,Grob::point_dimension_callback)
211 (meta . ,(grob-description "LyricHyphen" lyric-hyphen-interface ))
216 (Y-offset-callbacks . (,Side_position::centered_on_parent
217 ,Side_position::aligned_on_self))
218 (self-alignment-Y . 0)
219 (molecule-callback . ,Text_item::brew_molecule)
220 (break-align-symbol . Instrument_name)
221 (visibility-lambda . ,begin-of-line-visible)
222 (font-family . roman)
223 (meta . ,(grob-description "InstrumentName" font-interface text-interface break-aligned-interface))
227 (molecule-callback . ,Key_item::brew_molecule)
228 (break-align-symbol . Key_item)
229 (visibility-lambda . ,begin-of-line-visible)
231 (meta . ,(grob-description "KeySignature" key-signature-interface font-interface break-aligned-interface))
235 (molecule-callback . ,Local_key_item::brew_molecule)
236 (X-offset-callbacks . (,Side_position::aligned_side))
239 (right-padding . 0.4)
240 (meta . ,(grob-description "Accidentals" accidentals-interface font-interface side-position-interface))
245 (meta . ,(grob-description "LineOfScore" line-of-score-interface axis-group-interface))
249 (molecule-callback . ,Lyric_extender::brew_molecule)
250 (height . 0.8) ; stafflinethickness;
251 (right-trim-amount . 0.5)
252 (Y-extent-callback . ,Grob::point_dimension_callback)
253 (meta . ,(grob-description "LyricExtender" lyric-extender-interface))
257 (molecule-callback . ,Text_item::brew_molecule)
258 (X-offset-callbacks . (,Side_position::aligned_on_self))
259 (self-alignment-X . 0)
262 (font-family . roman)
263 (font-shape . upright)
264 (meta . ,(grob-description "LyricText" lyric-syllable-interface text-interface font-interface ))
268 (molecule-callback . ,Text_item::brew_molecule)
271 (font-family . number)
272 (font-shape . upright)
273 (font-relative-size . 1)
274 (visibility-lambda . ,end-of-line-invisible)
276 (meta . ,(grob-description "RehearsalMark" mark-interface side-position-interface))
279 (MultiMeasureRest . (
280 (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
281 (molecule-callback . ,Multi_measure_rest::brew_molecule)
284 (padding . 2.0) ; staffspace
285 (minimum-width . 12.5) ; staffspace
286 (font-family . number)
287 (font-relative-size . 1)
288 (meta . ,(grob-description "MultiMeasureRest" multi-measure-rest-interface font-interface ))
293 (meta . ,(grob-description "NoteCollision"
294 note-collision-interface axis-group-interface
300 (meta . ,(grob-description "NoteColumn" axis-group-interface note-column-interface))
305 (molecule-callback . ,Note_head::brew_molecule)
306 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
307 (meta . ,(grob-description "NoteHead"
308 rhythmic-head-interface font-interface
309 note-head-interface ))
315 (X-extent-callback . #f)
316 (Y-extent-callback . #f)
317 (molecule-callback . ,Line_spanner::brew_molecule)
318 (meta . ,(grob-description "Glissando"
319 line-spanner-interface))
325 (X-extent-callback . #f)
326 (Y-extent-callback . #f)
327 (molecule-callback . ,Line_spanner::brew_molecule)
328 (meta . ,(grob-description "FollowThread"
329 line-spanner-interface))
333 (molecule-callback . ,Text_item::brew_molecule)
334 (font-family . roman)
335 (meta . ,(grob-description "NoteName"
336 note-name-interface font-interface
341 (self-alignment-X . 0)
343 (visibility-lambda . ,begin-of-line-visible)
344 (X-offset-callbacks . (,Side_position::centered_on_parent ,Side_position::aligned_on_self))
345 (Y-offset-callbacks . (,Side_position::aligned_side))
346 (molecule-callback . ,Text_item::brew_molecule)
347 (font-shape . italic)
348 (font-family . roman)
349 (meta . ,(grob-description "OctavateEight" text-interface font-interface ))
354 (before-grace-spacing-factor . 1.2)
355 (before-musical-spacing-factor . 0.4)
356 (meta . ,(grob-description "PaperColumn" paper-column-interface axis-group-interface spaceable-element-interface))
358 (NonMusicalPaperColumn . (
360 (before-musical-spacing-factor . 1.0)
361 (column-space-strength . 2.0)
362 (meta . ,(grob-description "NonMusicalPaperColumn" paper-column-interface axis-group-interface spaceable-element-interface))
366 (after-line-breaking-callback . ,Rest::after_line_breaking)
367 (X-extent-callback . ,Rest::extent_callback)
368 (Y-extent-callback . ,Rest::extent_callback)
369 (molecule-callback . ,Rest::brew_molecule)
370 (minimum-beam-collision-distance . 1.5)
371 (meta . ,(grob-description "Rest"
372 rhythmic-head-interface
376 (minimum-distance . 0.75)
377 (meta . ,(grob-description "RestCollision" rest-collision-interface ))
381 (molecule-callback . ,Script::brew_molecule)
382 (X-offset-callbacks . (,Side_position::centered_on_parent))
383 (after-line-breaking-callback . ,Script::after_line_breaking)
384 (meta . ,(grob-description "Script" script-interface side-position-interface font-interface))
388 (before-line-breaking-callback . ,Script_column::before_line_breaking)
389 (meta . ,(grob-description "ScriptColumn" script-column-interface))
393 (molecule-callback . ,Slur::brew_molecule)
395 (spacing-procedure . ,Slur::set_spacing_rods)
396 (minimum-length . 1.5)
397 (after-line-breaking-callback . ,Slur::after_line_breaking)
398 (extremity-rules . ,default-slur-extremity-rules)
399 (extremity-offset-alist . ,default-slur-extremity-offset-alist)
400 (de-uglify-parameters . ( 1.5 0.8 -2.0))
401 (Y-extent-callback . ,Slur::height)
402 (details . ((height-limit . 2.0) (ratio . 0.333) (force-blowfit . 0.5)
403 (bezier-pct-c0 . -0.2) (bezier-pct-c3 . 0.000006)
404 (bezier-pct-out-max . 0.8) (bezier-pct-in-max . 1.2)
405 (bezier-area-steps . 1.0)))
408 (attachment . (#f . #f))
409 (attachment-offset . ((0 . 0) . (0 . 0)))
411 (meta . ,(grob-description "Slur" slur-interface))
415 (spacing-procedure . ,Spacing_spanner::set_springs)
416 (stem-spacing-correction . 0.5)
417 (arithmetic-basicspace . 2.0)
418 (arithmetic-multiplier . ,(* 0.9 1.32))
419 ;; assume that notes at least this long are present.
420 (maximum-duration-for-spacing . ,(make-moment 1 8))
421 (meta . ,(grob-description "SpacingSpanner" spacing-spanner-interface))
424 (break-align-symbol . Staff_bar)
425 (barsize-procedure . ,Span_bar::get_bar_size)
426 (molecule-callback . ,Bar::brew_molecule)
427 (visibility-lambda . ,begin-of-line-invisible)
428 (X-extent-callback . ,Span_bar::width_callback)
429 (Y-offset-callbacks . (,Span_bar::center_on_spanned_callback))
433 (before-line-breaking-callback . ,Span_bar::before_line_breaking)
437 ;; Ross. page 151 lists other values, we opt for a leaner look
441 (hair-thickness . 1.6)
442 (thick-thickness . 6.0)
443 (meta . ,(grob-description "SpanBar" span-bar-interface bar-line-interface ))
448 (molecule-callback . ,Text_item::brew_molecule)
449 (break-align-symbol . Clef_item)
450 (visibility-lambda . ,begin-of-line-visible)
451 (font-family . roman)
452 (meta . ,(grob-description "StanzaNumber" break-aligned-interface text-interface font-interface))
456 (molecule-callback . ,Staff_symbol::brew_molecule)
459 (meta . ,(grob-description "StaffSymbol" staff-symbol-interface ))
462 (molecule-callback . ,Text_item::brew_molecule)
463 (X-offset-callbacks . (,Side_position::aligned_on_self))
464 (Y-offset-callbacks .
465 (,Side_position::aligned_side
466 ,Side_position::centered_on_parent))
467 (no-spacing-rods . #t)
468 (font-shape . italic)
469 (self-alignment-X . 0)
470 (meta . ,(grob-description "SostenutoPedal" text-interface font-interface))
474 (before-line-breaking-callback . ,Stem::before_line_breaking)
475 (molecule-callback . ,Stem::brew_molecule)
477 (beamed-lengths . (0.0 2.5 2.0 1.5))
478 (beamed-minimum-lengths . (0.0 1.5 1.25 1.0))
480 ;; Stems in unnatural (forced) direction should be shortened,
481 ;; according to [Roush & Gourlay]. Their suggestion to knock off
482 ;; a whole staffspace seems a bit drastical: we'll do half.
484 (lengths . (3.5 3.5 3.5 4.5 5.0))
485 (stem-shorten . (0.5))
486 ; if stem is on middle line, choose this direction.
487 (default-neutral-direction . 1)
488 (X-offset-callbacks . (,Stem::off_callback))
489 (X-extent-callback . ,Stem::dim_callback)
490 (meta . ,(grob-description "Stem" stem-interface font-interface))
494 (molecule-callback . ,Stem_tremolo::brew_molecule)
495 (Y-extent-callback . ,Stem_tremolo::height)
496 (X-extent-callback . #f)
498 (beam-width . 2.0) ; staff-space
499 (beam-thickness . 0.42) ; staff-space
500 (beam-space-function . ,default-beam-space-function)
501 (meta . ,(grob-description "StemTremolo" stem-tremolo-interface ))
505 (meta . ,(grob-description "SeparationItem" separation-item-interface ))
507 (SeparatingGroupSpanner . (
508 (spacing-procedure . ,Separating_group_spanner::set_spacing_rods)
509 (meta . ,(grob-description "SeparatingGroupSpanner" separation-spanner-interface))
513 (no-spacing-rods . #t)
514 (molecule-callback . ,Sustain_pedal::brew_molecule)
515 (self-alignment-X . 0)
516 (X-offset-callbacks . (,Side_position::aligned_on_self))
517 (Y-offset-callbacks .
518 (,Side_position::aligned_side
519 ,Side_position::centered_on_parent))
521 (meta . ,(grob-description "SustainPedal" sustain-pedal-interface side-position-interface font-interface))
525 (SystemStartDelimiter . (
526 (molecule-callback . ,System_start_delimiter::brew_molecule)
527 (after-line-breaking-callback . ,System_start_delimiter::after_line_breaking)
528 (collapse-height . 1.0)
535 (bracket-thick . 0.25)
536 (bracket-width . 2.0)
537 (Y-extent-callback . #f)
538 (font-family . braces)
539 ;; if you want to set point-size, you cannot set
540 ;; relative-size, as no font will be found for other
542 ;;(font-point-size . 20)
543 ;;(font-relative-size . #f)
544 (meta . ,(grob-description "SystemStartDelimiter" system-start-delimiter-interface font-interface))
548 (molecule-callback . ,Text_item::brew_molecule)
549 (no-spacing-rods . #t)
551 (font-family . roman)
552 (font-shape . italic)
553 (meta . ,(grob-description "TextScript" text-script-interface text-interface side-position-interface font-interface ))
556 (molecule-callback . ,Text_spanner::brew_molecule)
557 (font-shape . italic)
558 (font-family . roman)
561 ;; urg, only for (de)cresc. text spanners
562 (if-text-padding . 1.0)
566 (meta . ,(grob-description "TextSpanner" text-spanner-interface font-interface))
569 (molecule-callback . ,Tie::brew_molecule)
570 (spacing-procedure . ,Tie::set_spacing_rods)
571 (staffline-clearance . 0.35)
572 (details . ((ratio . 0.333) (height-limit . 1.0)))
575 (minimum-length . 2.5)
576 (meta . ,(grob-description "Tie" tie-interface ))
580 (after-line-breaking-callback . ,Tie_column::after_line_breaking)
581 (meta . ,(grob-description "TieColumn" tie-column-interface ))
585 (molecule-callback . ,Time_signature::brew_molecule)
586 (break-align-symbol . Time_signature)
587 (visibility-lambda . ,all-visible)
589 (font-family . number)
590 (meta . ,(grob-description "TimeSignature" time-signature-interface font-interface))
597 (after-line-breaking-callback . ,Tuplet_spanner::after_line_breaking)
598 (molecule-callback . ,Tuplet_spanner::brew_molecule)
599 (font-family . roman)
600 (font-shape . italic)
601 (font-relative-size . -1)
602 (meta . ,(grob-description "TupletBracket" text-interface
603 tuplet-bracket-interface font-interface))
607 (molecule-callback . ,Text_item::brew_molecule)
608 (font-shape . italic)
609 (no-spacing-rods . #t)
610 (self-alignment-X . 0)
611 (X-offset-callbacks . (,Side_position::aligned_on_self))
612 (Y-offset-callbacks .
613 (,Side_position::aligned_side
614 ,Side_position::centered_on_parent))
615 (meta . ,(grob-description "UnaChordaPedal" text-interface font-interface))
619 (molecule-callback . ,Volta_spanner::brew_molecule)
624 (Y-offset-callbacks . (,Side_position::aligned_side))
625 (thickness . 1.6) ; stafflinethickness
626 (height . 2.0) ; staffspace;
628 (font-family . number)
629 (font-relative-size . -2)
630 (meta . ,(grob-description "VoltaBracket" volta-bracket-interface side-position-interface font-interface))
633 (VerticalAlignment . (
635 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
636 (X-extent-callback . #f)
638 (meta . ,(grob-description "VerticalAlignment" align-interface axis-group-interface))
641 (VerticalAxisGroup . (
643 (meta . ,(grob-description "VerticalAxisGroup" axis-group-interface))
649 ; (display (map pair? all-grob-descriptions))