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)
44 (font-family . "roman")
45 (meta . ,(element-description "BarNumber"
46 text-interface break-aligned-interface))
49 (Beam . ,basic-beam-properties)
55 (X-offset-callbacks . (,Break_align_interface::self_align_callback))
56 (space-alist . ,default-break-align-space-alist)
57 (meta . ,(element-description "BreakAlignment"
58 axis-group-interface align-interface
65 (X-offset-callbacks . (,Break_align_interface::alignment_callback))
67 (meta . ,(element-description "BreakAlignGroup" axis-group-interface))
71 (break-align-symbol . Breathing_sign)
73 (molecule-callback . ,Breathing_sign::brew_molecule)
74 (Y-offset-callbacks . (,Breathing_sign::offset_callback))
75 (visibility-lambda . ,begin-of-line-invisible)
76 (meta . ,(element-description "BreathingSign" break-aligned-interface))
80 (molecule-callback . ,Clef::brew_molecule)
81 (before-line-breaking-callback . ,Clef::before_line_breaking)
83 (break-align-symbol . Clef_item)
84 (visibility-lambda . ,begin-of-line-visible)
85 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
86 (meta . ,(element-description "Clef" clef-interface break-aligned-interface ))
90 (molecule-callback . ,Chord_name::brew_molecule)
91 (after-line-breaking-callback . ,Chord_name::after_line_breaking)
92 (chord-name-function . ,default-chord-name-function)
93 (properties-to-font-name . ,properties-to-font-name)
94 (style-to-font-name . ,style-to-font-name)
95 (markup-to-properties . ,markup-to-properties)
96 (font-size . "0") ;; Hmm, 0 should be the default, maybe??
97 (font-family . "roman")
98 (meta . ,(element-description "ChordNames" chord-name-interface))
104 (meta . ,(element-description "NoteCollision"
105 note-collision-interface axis-group-interface
110 (molecule-callback . ,Crescendo::brew_molecule)
112 (shorten-for-letter . 4.0)
114 (dash-thickness . 1.2)
116 (self-alignment-Y . 0)
117 (Y-offset-callbacks . (,Side_position::aligned_on_self))
118 (meta . ,(element-description "Crescendo" hairpin-interface))
123 (meta . ,(element-description "DotColumn" dot-column-interface axis-group-interface))
127 (molecule-callback . ,Dots::brew_molecule)
129 (staff-position . 0.0)
130 (Y-offset-callbacks . (,Dots::quantised_position_callback ,Staff_symbol_referencer::callback))
131 (meta . ,(element-description "Dots" dot-interface ))
135 (Y-offset-callbacks . (,Side_position::aligned_on_self))
136 (molecule-callback . ,Text_item::brew_molecule)
137 (script-priority . 100)
138 (font-style . dynamic)
139 (properties-to-font-name . ,properties-to-font-name)
140 (style-to-font-name . ,style-to-font-name)
141 (markup-to-properties . ,markup-to-properties)
142 (self-alignment-Y . 0)
144 (meta . ,(element-description "DynamicText" text-interface ))
147 (DynamicLineSpanner . (
151 (meta . ,(element-description "DynamicLineSpanner" dynamic-interface axis-group-interface side-position-interface))
155 (break-align-symbol . Left_edge_item)
157 (meta . ,(element-description "LeftEdge" break-aligned-interface))
161 (molecule-callback . ,Text_item::brew_molecule)
163 (self-alignment-X . 0)
164 (font-style . dynamic)
165 (properties-to-font-name . ,properties-to-font-name)
166 (style-to-font-name . ,style-to-font-name)
167 (markup-to-properties . ,markup-to-properties)
169 (meta . ,(element-description "Fingering" finger-interface text-script-interface text-interface side-position-interface))
174 (horizontal-space . 1.2)
176 (before-line-breaking-callback . ,Grace_align_item::before_line_breaking)
177 (meta . ,(element-description "GraceAlignment" axis-group-interface align-interface grace-alignment-interface))
180 (HaraKiriVerticalGroup . (
181 (Y-offset-callbacks . (,Hara_kiri_group_spanner::force_hara_kiri_callback))
182 (Y-extent-callback . ,Hara_kiri_group_spanner::y_extent)
184 (meta . ,(element-description "HaraKiriVerticalGroup" axis-group-interface hara-kiri-group-interface))
190 (minimum-length . 0.5)
191 (molecule-callback . ,Hyphen_spanner::brew_molecule)
192 (Y-extent-callback . ,Score_element::point_dimension_callback)
193 (meta . ,(element-description "LyricHyphen" lyric-hyphen-interface ))
198 (Y-offset-callbacks . (,Side_position::centered_on_parent
199 ,Side_position::aligned_on_self))
200 (self-alignment-Y . 0)
201 (molecule-callback . ,Text_item::brew_molecule)
202 (break-align-symbol . Instrument_name)
203 (visibility-lambda . ,begin-of-line-visible)
204 (properties-to-font-name . ,properties-to-font-name)
205 (style-to-font-name . ,style-to-font-name)
206 (markup-to-properties . ,markup-to-properties)
207 (font-family . "roman")
208 (meta . ,(element-description "InstrumentName" text-interface break-aligned-interface))
212 (molecule-callback . ,Key_item::brew_molecule)
213 (break-align-symbol . Key_item)
214 (visibility-lambda . ,begin-of-line-visible)
216 (meta . ,(element-description "KeySignature" key-signature-interface break-aligned-interface))
220 (molecule-callback . ,Local_key_item::brew_molecule)
221 (X-offset-callbacks . (,Side_position::aligned_side))
224 (right-padding . 0.4)
225 (meta . ,(element-description "Accidentals" accidentals-interface))
230 (meta . ,(element-description "LineOfScore" line-of-score-interface axis-group-interface))
234 (molecule-callback . ,Lyric_extender::brew_molecule)
235 (height . 0.8) ; stafflinethickness;
236 (right-trim-amount . 0.5)
237 (Y-extent-callback . ,Score_element::point_dimension_callback)
238 (meta . ,(element-description "LyricExtender" lyric-extender-interface))
242 (molecule-callback . ,Text_item::brew_molecule)
243 (X-offset-callbacks . (,Side_position::aligned_on_self))
244 (self-alignment-X . 0)
248 (properties-to-font-name . ,properties-to-font-name)
249 (style-to-font-name . ,style-to-font-name)
250 (markup-to-properties . ,markup-to-properties)
251 (font-family . "roman")
253 (meta . ,(element-description "LyricText" lyric-syllable-interface text-interface))
257 (molecule-callback . ,Text_item::brew_molecule)
259 (properties-to-font-name . ,properties-to-font-name)
260 (style-to-font-name . ,style-to-font-name)
261 (markup-to-properties . ,markup-to-properties)
263 (visibility-lambda . ,end-of-line-invisible)
265 (meta . ,(element-description "RehearsalMark" mark-interface side-position-interface))
268 (MultiMeasureRest . (
269 (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
270 (molecule-callback . ,Multi_measure_rest::brew_molecule)
273 (padding . 2.0) ; staffspace
274 (minimum-width . 12.5) ; staffspace
275 (properties-to-font-name . ,properties-to-font-name)
276 (style-to-font-name . ,style-to-font-name)
277 (markup-to-properties . ,markup-to-properties)
278 (font-family . "number")
279 (meta . ,(element-description "MultiMeasureRest" multi-measure-rest-interface ))
284 (meta . ,(element-description "NoteColumn" axis-group-interface note-column-interface))
289 (molecule-callback . ,Note_head::brew_molecule)
290 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
291 (meta . ,(element-description "NoteHead"
292 rhythmic-head-interface
293 note-head-interface ))
298 (molecule-callback . ,Text_item::brew_molecule)
299 (properties-to-font-name . ,properties-to-font-name)
300 (style-to-font-name . ,style-to-font-name)
301 (markup-to-properties . ,markup-to-properties)
302 (font-family . "roman")
304 (meta . ,(element-description "NoteName"
306 general-element-interface))
310 (self-alignment-X . 0)
312 (visibility-lambda . ,begin-of-line-visible)
313 (X-offset-callbacks . (,Side_position::centered_on_parent ,Side_position::aligned_on_self))
314 (Y-offset-callbacks . (,Side_position::aligned_side))
315 (molecule-callback . ,Text_item::brew_molecule)
316 (font-shape . "italic")
317 (properties-to-font-name . ,properties-to-font-name)
318 (style-to-font-name . ,style-to-font-name)
319 (markup-to-properties . ,markup-to-properties)
321 (meta . ,(element-description "OctavateEight" text-interface ))
326 (before-musical-spacing-factor . 0.4)
327 (meta . ,(element-description "PaperColumn" paper-column-interface axis-group-interface spaceable-element-interface))
329 (NonMusicalPaperColumn . (
331 (before-musical-spacing-factor . 1.0)
332 (meta . ,(element-description "NonMusicalPaperColumn" paper-column-interface axis-group-interface spaceable-element-interface))
336 (after-line-breaking-callback . ,Rest::after_line_breaking)
337 (molecule-callback . ,Rest::brew_molecule)
338 (minimum-beam-collision-distance . 1.5)
339 (meta . ,(element-description "Rest"
340 rhythmic-head-interface
344 (minimum-distance . 0.75)
345 (meta . ,(element-description "RestCollision" rest-collision-interface ))
349 (molecule-callback . ,Script::brew_molecule)
350 (X-offset-callbacks . (,Side_position::centered_on_parent))
351 (meta . ,(element-description "Script" script-interface side-position-interface))
355 (before-line-breaking-callback . ,Script_column::before_line_breaking)
356 (meta . ,(element-description "ScriptColumn" script-column-interface))
359 (Slur . ,default-basic-slur-properties)
361 (spacing-procedure . ,Spacing_spanner::set_springs)
363 ;; assume that notes at least this long are present.
364 (maximum-duration-for-spacing . ,(make-moment 1 8))
365 (meta . ,(element-description "SpacingSpanner" spacing-spanner-interface))
369 (break-align-symbol . Staff_bar)
370 (barsize-procedure . ,Span_bar::get_bar_size)
371 (molecule-callback . ,Bar::brew_molecule)
372 (visibility-lambda . ,begin-of-line-invisible)
373 (X-extent-callback . ,Span_bar::width_callback)
374 (Y-offset-callbacks . (,Span_bar::center_on_spanned_callback))
378 (before-line-breaking-callback . ,Span_bar::before_line_breaking)
382 ;; Ross. page 151 lists other values, we opt for a leaner look
386 (hair-thickness . 1.6)
387 (thick-thickness . 6.0)
388 (meta . ,(element-description "SpanBar" span-bar-interface bar-line-interface ))
393 (molecule-callback . ,Text_item::brew_molecule)
394 (break-align-symbol . Clef_item)
395 (visibility-lambda . ,begin-of-line-visible)
396 (properties-to-font-name . ,properties-to-font-name)
397 (style-to-font-name . ,style-to-font-name)
398 (markup-to-properties . ,markup-to-properties)
399 (font-family . "roman")
400 (meta . ,(element-description "StanzaNumber" break-aligned-interface text-interface))
404 (molecule-callback . ,Staff_symbol::brew_molecule)
407 (meta . ,(element-description "StaffSymbol" staff-symbol-interface ))
410 (molecule-callback . ,Text_item::brew_molecule)
411 (X-offset-callbacks . (,Side_position::aligned_on_self))
412 (Y-offset-callbacks .
413 (,Side_position::aligned_side
414 ,Side_position::centered_on_parent))
415 (no-spacing-rods . #t)
416 (font-shape . "italic")
417 (properties-to-font-name . ,properties-to-font-name)
418 (style-to-font-name . ,style-to-font-name)
419 (markup-to-properties . ,markup-to-properties)
421 (self-alignment-X . 0)
422 (meta . ,(element-description "SostenutoPedal" text-interface ))
426 (before-line-breaking-callback . ,Stem::before_line_breaking)
427 (molecule-callback . ,Stem::brew_molecule)
429 (beamed-lengths . (0.0 2.5 2.0 1.5))
430 (beamed-minimum-lengths . (0.0 1.5 1.25 1.0))
432 ;; Stems in unnatural (forced) direction should be shortened,
433 ;; according to [Roush & Gourlay]. Their suggestion to knock off
434 ;; a whole staffspace seems a bit drastical: we'll do half.
436 (lengths . (3.5 3.5 3.5 4.5 5.0))
437 (stem-shorten . (0.5))
438 ; if stem is on middle line, choose this direction.
439 (default-neutral-direction . 1)
440 (X-offset-callbacks . (,Stem::off_callback))
441 (meta . ,(element-description "Stem" stem-interface ))
445 (molecule-callback . ,Stem_tremolo::brew_molecule)
446 (beam-width . 2.0) ; staff-space
447 (beam-thickness . 0.42) ; staff-space
448 (beam-space-function . ,default-beam-space-function)
449 (meta . ,(element-description "StemTremolo" stem-tremolo-interface ))
453 (meta . ,(element-description "SeparationItem" separation-item-interface ))
455 (SeparatingGroupSpanner . (
456 (spacing-procedure . ,Separating_group_spanner::set_spacing_rods)
457 (meta . ,(element-description "SeparatingGroupSpanner" separation-spanner-interface))
461 (no-spacing-rods . #t)
462 (molecule-callback . ,Sustain_pedal::brew_molecule)
463 (self-alignment-X . 0)
464 (X-offset-callbacks . (,Side_position::aligned_on_self))
465 (Y-offset-callbacks .
466 (,Side_position::aligned_side
467 ,Side_position::centered_on_parent))
469 (meta . ,(element-description "SustainPedal" sustain-pedal-interface side-position-interface))
472 (SystemStartDelimiter . (
473 (molecule-callback . ,System_start_delimiter::brew_molecule)
474 (after-line-breaking-callback . ,System_start_delimiter::after_line_breaking)
475 (collapse-height . 1.0)
482 (bracket-thick . 0.25)
483 (bracket-width . 2.0)
484 (Y-extent-callback . #f)
485 (meta . ,(element-description "SystemStartDelimiter" system-start-delimiter ))
489 (molecule-callback . ,Text_item::brew_molecule)
490 (no-spacing-rods . #t)
492 (properties-to-font-name . ,properties-to-font-name)
493 (style-to-font-name . ,style-to-font-name)
494 (markup-to-properties . ,markup-to-properties)
495 (font-family . "roman")
496 (meta . ,(element-description "TextScript" text-script-interface text-interface side-position-interface ))
499 (molecule-callback . ,Text_spanner::brew_molecule)
500 (font-shape . "italic")
501 (properties-to-font-name . ,properties-to-font-name)
502 (style-to-font-name . ,style-to-font-name)
503 (markup-to-properties . ,markup-to-properties)
506 (meta . ,(element-description "TextSpanner" text-spanner-interface ))
509 (molecule-callback . ,Tie::brew_molecule)
510 (spacing-procedure . ,Tie::set_spacing_rods)
511 (staffline-clearance . 0.35)
512 (details . ((ratio . 0.333) (height-limit . 1.0)))
515 (minimum-length . 2.5)
516 (meta . ,(element-description "Tie" tie-interface ))
520 (after-line-breaking-callback . ,Tie_column::after_line_breaking)
521 (meta . ,(element-description "TieColumn" tie-column-interface ))
525 (molecule-callback . ,Time_signature::brew_molecule)
526 (break-align-symbol . Time_signature)
527 (visibility-lambda . ,all-visible)
529 (properties-to-font-name . ,properties-to-font-name)
530 (style-to-font-name . ,style-to-font-name)
531 (markup-to-properties . ,markup-to-properties)
532 (font-style . timesig)
534 (meta . ,(element-description "TimeSignature" time-signature-interface ))
541 (after-line-breaking-callback . ,Tuplet_spanner::after_line_breaking)
542 (molecule-callback . ,Tuplet_spanner::brew_molecule)
543 (properties-to-font-name . ,properties-to-font-name)
544 (style-to-font-name . ,style-to-font-name)
545 (markup-to-properties . ,markup-to-properties)
546 (font-shape . "italic")
547 (meta . ,(element-description "TupletBracket"
548 tuplet-bracket-interface))
552 (molecule-callback . ,Text_item::brew_molecule)
553 (font-shape . "italic")
554 (properties-to-font-name . ,properties-to-font-name)
555 (style-to-font-name . ,style-to-font-name)
556 (markup-to-properties . ,markup-to-properties)
557 (no-spacing-rods . #t)
558 (self-alignment-X . 0)
559 (X-offset-callbacks . (,Side_position::aligned_on_self))
560 (Y-offset-callbacks .
561 (,Side_position::aligned_side
562 ,Side_position::centered_on_parent))
563 (meta . ,(element-description "UnaChordaPedal" text-interface ))
567 (molecule-callback . ,Volta_spanner::brew_molecule)
570 (properties-to-font-name . ,properties-to-font-name)
571 (style-to-font-name . ,style-to-font-name)
572 (markup-to-properties . ,markup-to-properties)
575 (thickness . 1.6) ; stafflinethickness
576 (height . 2.0) ; staffspace;
578 (meta . ,(element-description "VoltaBracket" volta-bracket-interface side-position-interface))
581 (VerticalAlignment . (
583 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
584 (X-extent-callback . #f)
586 (meta . ,(element-description "VerticalAlignment" align-interface axis-group-interface))
589 (VerticalAxisGroup . (
591 (meta . ,(element-description "VerticalAxisGroup" axis-group-interface))
597 ; (display (map pair? all-element-descriptions))