2 ; distances are given in stafflinethickness (thicknesses) and
3 ; staffspace (distances)
5 (define all-element-descriptions
7 (X-extent-callback . ,Arpeggio::width_callback)
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 . ,(element-description "Arpeggio" arpeggio-interface side-position-interface))
17 (break-align-symbol . Staff_bar)
19 (break-glyph-function . ,default-break-barline)
20 (barsize-procedure . ,Bar::get_staff_bar_size)
21 (molecule-callback . ,Bar::brew_molecule)
22 (visibility-lambda . ,all-visible)
24 (before-line-breaking-callback . ,Bar::before_line_breaking)
26 ;; Ross. page 151 lists other values, we opt for a leaner look
30 (hair-thickness . 1.6)
31 (thick-thickness . 6.0)
32 (meta . ,(element-description "BarLine" bar-line-interface ))
36 (molecule-callback . ,Text_item::brew_molecule)
38 (visibility-lambda . ,begin-of-line-visible)
41 (properties-to-font-name . ,properties-to-font-name)
42 (style-to-font-name . ,style-to-font-name)
43 (markup-to-properties . ,markup-to-properties)
45 (font-relative-size . -1)
46 (meta . ,(element-description "BarNumber"
47 text-interface break-aligned-interface))
50 (Beam . ,basic-beam-properties)
56 (X-offset-callbacks . (,Break_align_interface::self_align_callback))
57 (space-alist . ,default-break-align-space-alist)
58 (meta . ,(element-description "BreakAlignment"
59 axis-group-interface align-interface
66 (X-offset-callbacks . (,Break_align_interface::alignment_callback))
68 (meta . ,(element-description "BreakAlignGroup" axis-group-interface))
72 (break-align-symbol . Breathing_sign)
74 (molecule-callback . ,Breathing_sign::brew_molecule)
75 (Y-offset-callbacks . (,Breathing_sign::offset_callback))
76 (visibility-lambda . ,begin-of-line-invisible)
77 (meta . ,(element-description "BreathingSign" break-aligned-interface))
81 (molecule-callback . ,Clef::brew_molecule)
82 (before-line-breaking-callback . ,Clef::before_line_breaking)
84 (break-align-symbol . Clef_item)
85 (visibility-lambda . ,begin-of-line-visible)
86 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
87 (meta . ,(element-description "Clef" clef-interface break-aligned-interface ))
91 (molecule-callback . ,Chord_name::brew_molecule)
92 (after-line-breaking-callback . ,Chord_name::after_line_breaking)
93 (chord-name-function . ,default-chord-name-function)
94 (properties-to-font-name . ,properties-to-font-name)
95 (style-to-font-name . ,style-to-font-name)
96 (markup-to-properties . ,markup-to-properties)
97 (font-relative-size . 0)
99 (font-shape . upright)
100 (meta . ,(element-description "ChordNames" chord-name-interface))
106 (meta . ,(element-description "NoteCollision"
107 note-collision-interface axis-group-interface
112 (molecule-callback . ,Crescendo::brew_molecule)
114 (shorten-for-letter . 4.0)
116 (dash-thickness . 1.2)
118 (self-alignment-Y . 0)
119 (Y-offset-callbacks . (,Side_position::aligned_on_self))
120 (meta . ,(element-description "Crescendo" hairpin-interface))
125 (meta . ,(element-description "DotColumn" dot-column-interface axis-group-interface))
129 (molecule-callback . ,Dots::brew_molecule)
131 (staff-position . 0.0)
132 (Y-offset-callbacks . (,Dots::quantised_position_callback ,Staff_symbol_referencer::callback))
133 (meta . ,(element-description "Dots" dot-interface ))
137 (Y-offset-callbacks . (,Side_position::aligned_on_self))
138 (molecule-callback . ,Text_item::brew_molecule)
139 (script-priority . 100)
140 (font-style . dynamic)
141 (properties-to-font-name . ,properties-to-font-name)
142 (style-to-font-name . ,style-to-font-name)
143 (markup-to-properties . ,markup-to-properties)
144 (self-alignment-Y . 0)
145 (meta . ,(element-description "DynamicText" text-interface ))
148 (DynamicLineSpanner . (
152 (meta . ,(element-description "DynamicLineSpanner" dynamic-interface axis-group-interface side-position-interface))
156 (break-align-symbol . Left_edge_item)
157 (X-offset-callbacks . (,Break_align_interface::alignment_callback))
159 (meta . ,(element-description "LeftEdge" break-aligned-interface))
163 (molecule-callback . ,Text_item::brew_molecule)
164 (X-offset-callbacks . (,Side_position::centered_on_parent ,Side_position::aligned_on_self))
166 (self-alignment-X . 0)
167 (font-style . finger)
168 (properties-to-font-name . ,properties-to-font-name)
169 (style-to-font-name . ,style-to-font-name)
170 (markup-to-properties . ,markup-to-properties)
171 (meta . ,(element-description "Fingering" finger-interface text-script-interface text-interface side-position-interface))
176 (horizontal-space . 1.2)
178 (before-line-breaking-callback . ,Grace_align_item::before_line_breaking)
179 (meta . ,(element-description "GraceAlignment" axis-group-interface align-interface grace-alignment-interface))
182 (HaraKiriVerticalGroup . (
183 (Y-offset-callbacks . (,Hara_kiri_group_spanner::force_hara_kiri_callback))
184 (Y-extent-callback . ,Hara_kiri_group_spanner::y_extent)
186 (meta . ,(element-description "HaraKiriVerticalGroup" axis-group-interface hara-kiri-group-interface))
192 (minimum-length . 0.5)
193 (molecule-callback . ,Hyphen_spanner::brew_molecule)
194 (Y-extent-callback . ,Score_element::point_dimension_callback)
195 (meta . ,(element-description "LyricHyphen" lyric-hyphen-interface ))
200 (Y-offset-callbacks . (,Side_position::centered_on_parent
201 ,Side_position::aligned_on_self))
202 (self-alignment-Y . 0)
203 (molecule-callback . ,Text_item::brew_molecule)
204 (break-align-symbol . Instrument_name)
205 (visibility-lambda . ,begin-of-line-visible)
206 (properties-to-font-name . ,properties-to-font-name)
207 (style-to-font-name . ,style-to-font-name)
208 (markup-to-properties . ,markup-to-properties)
209 (font-family . roman)
210 (meta . ,(element-description "InstrumentName" text-interface break-aligned-interface))
214 (molecule-callback . ,Key_item::brew_molecule)
215 (break-align-symbol . Key_item)
216 (visibility-lambda . ,begin-of-line-visible)
218 (meta . ,(element-description "KeySignature" key-signature-interface break-aligned-interface))
222 (molecule-callback . ,Local_key_item::brew_molecule)
223 (X-offset-callbacks . (,Side_position::aligned_side))
226 (right-padding . 0.4)
227 (meta . ,(element-description "Accidentals" accidentals-interface))
232 (meta . ,(element-description "LineOfScore" line-of-score-interface axis-group-interface))
236 (molecule-callback . ,Lyric_extender::brew_molecule)
237 (height . 0.8) ; stafflinethickness;
238 (right-trim-amount . 0.5)
239 (Y-extent-callback . ,Score_element::point_dimension_callback)
240 (meta . ,(element-description "LyricExtender" lyric-extender-interface))
244 (molecule-callback . ,Text_item::brew_molecule)
245 (X-offset-callbacks . (,Side_position::aligned_on_self))
246 (self-alignment-X . 0)
250 (properties-to-font-name . ,properties-to-font-name)
251 (style-to-font-name . ,style-to-font-name)
252 (markup-to-properties . ,markup-to-properties)
253 (font-family . roman)
255 (meta . ,(element-description "LyricText" lyric-syllable-interface text-interface))
259 (molecule-callback . ,Text_item::brew_molecule)
261 (properties-to-font-name . ,properties-to-font-name)
262 (style-to-font-name . ,style-to-font-name)
263 (markup-to-properties . ,markup-to-properties)
265 (visibility-lambda . ,end-of-line-invisible)
267 (meta . ,(element-description "RehearsalMark" mark-interface side-position-interface))
270 (MultiMeasureRest . (
271 (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
272 (molecule-callback . ,Multi_measure_rest::brew_molecule)
275 (padding . 2.0) ; staffspace
276 (minimum-width . 12.5) ; staffspace
277 (properties-to-font-name . ,properties-to-font-name)
278 (style-to-font-name . ,style-to-font-name)
279 (markup-to-properties . ,markup-to-properties)
280 (font-style . mmrest)
281 (meta . ,(element-description "MultiMeasureRest" multi-measure-rest-interface ))
286 (meta . ,(element-description "NoteColumn" axis-group-interface note-column-interface))
291 (molecule-callback . ,Note_head::brew_molecule)
292 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
293 (meta . ,(element-description "NoteHead"
294 rhythmic-head-interface
295 note-head-interface ))
300 (molecule-callback . ,Text_item::brew_molecule)
301 (properties-to-font-name . ,properties-to-font-name)
302 (style-to-font-name . ,style-to-font-name)
303 (markup-to-properties . ,markup-to-properties)
304 (font-family . roman)
305 (font-relative-size . 0)
306 (meta . ,(element-description "NoteName"
308 general-element-interface))
312 (self-alignment-X . 0)
314 (visibility-lambda . ,begin-of-line-visible)
315 (X-offset-callbacks . (,Side_position::centered_on_parent ,Side_position::aligned_on_self))
316 (Y-offset-callbacks . (,Side_position::aligned_side))
317 (molecule-callback . ,Text_item::brew_molecule)
318 (font-shape . italic)
319 (properties-to-font-name . ,properties-to-font-name)
320 (style-to-font-name . ,style-to-font-name)
321 (markup-to-properties . ,markup-to-properties)
323 (meta . ,(element-description "OctavateEight" text-interface ))
328 (before-grace-spacing-factor . 1.2)
329 (before-musical-spacing-factor . 0.4)
330 (meta . ,(element-description "PaperColumn" paper-column-interface axis-group-interface spaceable-element-interface))
332 (NonMusicalPaperColumn . (
334 (before-musical-spacing-factor . 1.0)
335 (column-space-strength . 2.0)
336 (meta . ,(element-description "NonMusicalPaperColumn" paper-column-interface axis-group-interface spaceable-element-interface))
340 (after-line-breaking-callback . ,Rest::after_line_breaking)
341 (molecule-callback . ,Rest::brew_molecule)
342 (minimum-beam-collision-distance . 1.5)
343 (meta . ,(element-description "Rest"
344 rhythmic-head-interface
348 (minimum-distance . 0.75)
349 (meta . ,(element-description "RestCollision" rest-collision-interface ))
353 (molecule-callback . ,Script::brew_molecule)
354 (X-offset-callbacks . (,Side_position::centered_on_parent))
355 (meta . ,(element-description "Script" script-interface side-position-interface))
359 (before-line-breaking-callback . ,Script_column::before_line_breaking)
360 (meta . ,(element-description "ScriptColumn" script-column-interface))
363 (Slur . ,default-basic-slur-properties)
365 (spacing-procedure . ,Spacing_spanner::set_springs)
366 (stem-spacing-correction . 0.5)
367 (arithmetic-basicspace . 2.0)
368 (arithmetic-multiplier . ,(* 0.9 1.32))
369 ;; assume that notes at least this long are present.
370 (maximum-duration-for-spacing . ,(make-moment 1 8))
371 (meta . ,(element-description "SpacingSpanner" spacing-spanner-interface))
375 (break-align-symbol . Staff_bar)
376 (barsize-procedure . ,Span_bar::get_bar_size)
377 (molecule-callback . ,Bar::brew_molecule)
378 (visibility-lambda . ,begin-of-line-invisible)
379 (X-extent-callback . ,Span_bar::width_callback)
380 (Y-offset-callbacks . (,Span_bar::center_on_spanned_callback))
384 (before-line-breaking-callback . ,Span_bar::before_line_breaking)
388 ;; Ross. page 151 lists other values, we opt for a leaner look
392 (hair-thickness . 1.6)
393 (thick-thickness . 6.0)
394 (meta . ,(element-description "SpanBar" span-bar-interface bar-line-interface ))
399 (molecule-callback . ,Text_item::brew_molecule)
400 (break-align-symbol . Clef_item)
401 (visibility-lambda . ,begin-of-line-visible)
402 (properties-to-font-name . ,properties-to-font-name)
403 (style-to-font-name . ,style-to-font-name)
404 (markup-to-properties . ,markup-to-properties)
405 (font-family . roman)
406 (meta . ,(element-description "StanzaNumber" break-aligned-interface text-interface))
410 (molecule-callback . ,Staff_symbol::brew_molecule)
413 (meta . ,(element-description "StaffSymbol" staff-symbol-interface ))
416 (molecule-callback . ,Text_item::brew_molecule)
417 (X-offset-callbacks . (,Side_position::aligned_on_self))
418 (Y-offset-callbacks .
419 (,Side_position::aligned_side
420 ,Side_position::centered_on_parent))
421 (no-spacing-rods . #t)
422 (font-shape . italic)
423 (properties-to-font-name . ,properties-to-font-name)
424 (style-to-font-name . ,style-to-font-name)
425 (markup-to-properties . ,markup-to-properties)
427 (self-alignment-X . 0)
428 (meta . ,(element-description "SostenutoPedal" text-interface ))
432 (before-line-breaking-callback . ,Stem::before_line_breaking)
433 (molecule-callback . ,Stem::brew_molecule)
435 (beamed-lengths . (0.0 2.5 2.0 1.5))
436 (beamed-minimum-lengths . (0.0 1.5 1.25 1.0))
438 ;; Stems in unnatural (forced) direction should be shortened,
439 ;; according to [Roush & Gourlay]. Their suggestion to knock off
440 ;; a whole staffspace seems a bit drastical: we'll do half.
442 (lengths . (3.5 3.5 3.5 4.5 5.0))
443 (stem-shorten . (0.5))
444 ; if stem is on middle line, choose this direction.
445 (default-neutral-direction . 1)
446 (X-offset-callbacks . (,Stem::off_callback))
447 (meta . ,(element-description "Stem" stem-interface ))
451 (molecule-callback . ,Stem_tremolo::brew_molecule)
452 (beam-width . 2.0) ; staff-space
453 (beam-thickness . 0.42) ; staff-space
454 (beam-space-function . ,default-beam-space-function)
455 (meta . ,(element-description "StemTremolo" stem-tremolo-interface ))
459 (meta . ,(element-description "SeparationItem" separation-item-interface ))
461 (SeparatingGroupSpanner . (
462 (spacing-procedure . ,Separating_group_spanner::set_spacing_rods)
463 (meta . ,(element-description "SeparatingGroupSpanner" separation-spanner-interface))
467 (no-spacing-rods . #t)
468 (molecule-callback . ,Sustain_pedal::brew_molecule)
469 (self-alignment-X . 0)
470 (X-offset-callbacks . (,Side_position::aligned_on_self))
471 (Y-offset-callbacks .
472 (,Side_position::aligned_side
473 ,Side_position::centered_on_parent))
475 (meta . ,(element-description "SustainPedal" sustain-pedal-interface side-position-interface))
478 (SystemStartDelimiter . (
479 (molecule-callback . ,System_start_delimiter::brew_molecule)
480 (after-line-breaking-callback . ,System_start_delimiter::after_line_breaking)
481 (collapse-height . 1.0)
488 (bracket-thick . 0.25)
489 (bracket-width . 2.0)
490 (Y-extent-callback . #f)
491 (meta . ,(element-description "SystemStartDelimiter" system-start-delimiter ))
495 (molecule-callback . ,Text_item::brew_molecule)
496 (no-spacing-rods . #t)
498 (properties-to-font-name . ,properties-to-font-name)
499 (style-to-font-name . ,style-to-font-name)
500 (markup-to-properties . ,markup-to-properties)
501 (font-family . roman)
502 (meta . ,(element-description "TextScript" text-script-interface text-interface side-position-interface ))
505 (molecule-callback . ,Text_spanner::brew_molecule)
506 (font-shape . italic)
507 (properties-to-font-name . ,properties-to-font-name)
508 (style-to-font-name . ,style-to-font-name)
509 (markup-to-properties . ,markup-to-properties)
512 (meta . ,(element-description "TextSpanner" text-spanner-interface ))
515 (molecule-callback . ,Tie::brew_molecule)
516 (spacing-procedure . ,Tie::set_spacing_rods)
517 (staffline-clearance . 0.35)
518 (details . ((ratio . 0.333) (height-limit . 1.0)))
521 (minimum-length . 2.5)
522 (meta . ,(element-description "Tie" tie-interface ))
526 (after-line-breaking-callback . ,Tie_column::after_line_breaking)
527 (meta . ,(element-description "TieColumn" tie-column-interface ))
531 (molecule-callback . ,Time_signature::brew_molecule)
532 (break-align-symbol . Time_signature)
533 (visibility-lambda . ,all-visible)
535 (properties-to-font-name . ,properties-to-font-name)
536 (style-to-font-name . ,style-to-font-name)
537 (markup-to-properties . ,markup-to-properties)
538 (font-style . timesig)
540 (meta . ,(element-description "TimeSignature" time-signature-interface ))
547 (after-line-breaking-callback . ,Tuplet_spanner::after_line_breaking)
548 (molecule-callback . ,Tuplet_spanner::brew_molecule)
549 (properties-to-font-name . ,properties-to-font-name)
550 (style-to-font-name . ,style-to-font-name)
551 (markup-to-properties . ,markup-to-properties)
552 (font-shape . italic)
553 (meta . ,(element-description "TupletBracket" text-interface
554 tuplet-bracket-interface))
558 (molecule-callback . ,Text_item::brew_molecule)
559 (font-shape . italic)
560 (properties-to-font-name . ,properties-to-font-name)
561 (style-to-font-name . ,style-to-font-name)
562 (markup-to-properties . ,markup-to-properties)
563 (no-spacing-rods . #t)
564 (self-alignment-X . 0)
565 (X-offset-callbacks . (,Side_position::aligned_on_self))
566 (Y-offset-callbacks .
567 (,Side_position::aligned_side
568 ,Side_position::centered_on_parent))
569 (meta . ,(element-description "UnaChordaPedal" text-interface ))
573 (molecule-callback . ,Volta_spanner::brew_molecule)
576 (properties-to-font-name . ,properties-to-font-name)
577 (style-to-font-name . ,style-to-font-name)
578 (markup-to-properties . ,markup-to-properties)
581 (thickness . 1.6) ; stafflinethickness
582 (height . 2.0) ; staffspace;
584 (meta . ,(element-description "VoltaBracket" volta-bracket-interface side-position-interface))
587 (VerticalAlignment . (
589 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
590 (X-extent-callback . #f)
592 (meta . ,(element-description "VerticalAlignment" align-interface axis-group-interface))
595 (VerticalAxisGroup . (
597 (meta . ,(element-description "VerticalAxisGroup" axis-group-interface))
603 ; (display (map pair? all-element-descriptions))