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 . ,Score_element::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 (molecule-callback . ,Text_item::brew_molecule)
200 (break-align-symbol . Instrument_name)
201 (visibility-lambda . ,begin-of-line-visible)
202 (properties-to-font-name . ,properties-to-font-name)
203 (style-to-font-name . ,style-to-font-name)
204 (markup-to-properties . ,markup-to-properties)
205 (font-family . "roman")
206 (meta . ,(element-description "InstrumentName" text-interface break-aligned-interface))
210 (molecule-callback . ,Key_item::brew_molecule)
211 (break-align-symbol . Key_item)
212 (visibility-lambda . ,begin-of-line-visible)
214 (meta . ,(element-description "KeySignature" key-signature-interface break-aligned-interface))
218 (molecule-callback . ,Local_key_item::brew_molecule)
219 (X-offset-callbacks . (,Side_position::aligned_side))
222 (right-padding . 0.4)
223 (meta . ,(element-description "Accidentals" accidentals-interface))
228 (meta . ,(element-description "LineOfScore" axis-group-interface))
232 (molecule-callback . ,Lyric_extender::brew_molecule)
233 (height . 0.8) ; stafflinethickness;
234 (right-trim-amount . 0.5)
235 (Y-extent-callback . ,Score_element::point_dimension_callback)
236 (meta . ,(element-description "LyricExtender" lyric-extender-interface))
240 (molecule-callback . ,Text_item::brew_molecule)
241 (X-offset-callbacks . (,Side_position::aligned_on_self))
242 (self-alignment-X . 0)
246 (properties-to-font-name . ,properties-to-font-name)
247 (style-to-font-name . ,style-to-font-name)
248 (markup-to-properties . ,markup-to-properties)
249 (font-family . "roman")
251 (meta . ,(element-description "LyricText" lyric-syllable-interface text-interface))
255 (molecule-callback . ,Text_item::brew_molecule)
257 (properties-to-font-name . ,properties-to-font-name)
258 (style-to-font-name . ,style-to-font-name)
259 (markup-to-properties . ,markup-to-properties)
261 (visibility-lambda . ,end-of-line-invisible)
263 (meta . ,(element-description "RehearsalMark" mark-interface side-position-interface))
266 (MultiMeasureRest . (
267 (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
268 (molecule-callback . ,Multi_measure_rest::brew_molecule)
271 (padding . 2.0) ; staffspace
272 (minimum-width . 12.5) ; staffspace
273 (properties-to-font-name . ,properties-to-font-name)
274 (style-to-font-name . ,style-to-font-name)
275 (markup-to-properties . ,markup-to-properties)
276 (font-family . "number")
277 (meta . ,(element-description "MultiMeasureRest" multi-measure-rest-interface ))
282 (meta . ,(element-description "NoteColumn" axis-group-interface note-column-interface))
287 (molecule-callback . ,Note_head::brew_molecule)
288 (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
289 (meta . ,(element-description "NoteHead"
290 rhythmic-head-interface
291 note-head-interface ))
296 (molecule-callback . ,Text_item::brew_molecule)
297 (properties-to-font-name . ,properties-to-font-name)
298 (style-to-font-name . ,style-to-font-name)
299 (markup-to-properties . ,markup-to-properties)
300 (font-family . "roman")
302 (meta . ,(element-description "NoteName"
304 general-element-interface))
308 (self-alignment-X . 0)
310 (visibility-lambda . ,begin-of-line-visible)
311 (X-offset-callbacks . (,Side_position::centered_on_parent ,Side_position::aligned_on_self))
312 (Y-offset-callbacks . (,Side_position::aligned_side))
313 (molecule-callback . ,Text_item::brew_molecule)
314 (font-shape . "italic")
315 (properties-to-font-name . ,properties-to-font-name)
316 (style-to-font-name . ,style-to-font-name)
317 (markup-to-properties . ,markup-to-properties)
319 (meta . ,(element-description "OctavateEight" text-interface ))
324 (before-musical-spacing-factor . 0.4)
325 (meta . ,(element-description "PaperColumn" paper-column-interface axis-group-interface spaceable-element-interface))
327 (NonMusicalPaperColumn . (
329 (before-musical-spacing-factor . 1.0)
330 (meta . ,(element-description "NonMusicalPaperColumn" paper-column-interface axis-group-interface spaceable-element-interface))
334 (after-line-breaking-callback . ,Rest::after_line_breaking)
335 (molecule-callback . ,Rest::brew_molecule)
336 (minimum-beam-collision-distance . 1.5)
337 (meta . ,(element-description "Rest"
338 rhythmic-head-interface
342 (minimum-distance . 0.75)
343 (meta . ,(element-description "RestCollision" rest-collision-interface ))
347 (molecule-callback . ,Script::brew_molecule)
348 (X-offset-callbacks . (,Side_position::centered_on_parent))
349 (meta . ,(element-description "Script" script-interface side-position-interface))
353 (before-line-breaking-callback . ,Script_column::before_line_breaking)
354 (meta . ,(element-description "ScriptColumn" script-column-interface))
357 (Slur . ,default-basic-slur-properties)
359 (spacing-procedure . ,Spacing_spanner::set_springs)
361 ;; assume that notes at least this long are present.
362 (maximum-duration-for-spacing . ,(make-moment 1 8))
363 (meta . ,(element-description "SpacingSpanner" spacing-spanner-interface))
367 (break-align-symbol . Staff_bar)
368 (barsize-procedure . ,Span_bar::get_bar_size)
369 (molecule-callback . ,Bar::brew_molecule)
370 (visibility-lambda . ,begin-of-line-invisible)
371 (X-extent-callback . ,Span_bar::width_callback)
372 (Y-offset-callbacks . (,Span_bar::center_on_spanned_callback))
376 (before-line-breaking-callback . ,Span_bar::before_line_breaking)
380 ;; Ross. page 151 lists other values, we opt for a leaner look
384 (hair-thickness . 1.6)
385 (thick-thickness . 6.0)
386 (meta . ,(element-description "SpanBar" span-bar-interface bar-line-interface ))
391 (molecule-callback . ,Text_item::brew_molecule)
392 (break-align-symbol . Clef_item)
393 (visibility-lambda . ,begin-of-line-visible)
394 (properties-to-font-name . ,properties-to-font-name)
395 (style-to-font-name . ,style-to-font-name)
396 (markup-to-properties . ,markup-to-properties)
397 (font-family . "roman")
398 (meta . ,(element-description "StanzaNumber" break-aligned-interface text-interface))
402 (molecule-callback . ,Staff_symbol::brew_molecule)
405 (meta . ,(element-description "StaffSymbol" staff-symbol-interface ))
408 (molecule-callback . ,Text_item::brew_molecule)
409 (X-offset-callbacks . (,Side_position::aligned_on_self))
410 (Y-offset-callbacks .
411 (,Side_position::aligned_side
412 ,Side_position::centered_on_parent))
413 (no-spacing-rods . #t)
414 (font-shape . "italic")
415 (properties-to-font-name . ,properties-to-font-name)
416 (style-to-font-name . ,style-to-font-name)
417 (markup-to-properties . ,markup-to-properties)
419 (self-alignment-X . 0)
420 (meta . ,(element-description "SostenutoPedal" text-interface ))
424 (before-line-breaking-callback . ,Stem::before_line_breaking)
425 (molecule-callback . ,Stem::brew_molecule)
427 (beamed-lengths . (0.0 2.5 2.0 1.5))
428 (beamed-minimum-lengths . (0.0 1.5 1.25 1.0))
430 ;; Stems in unnatural (forced) direction should be shortened,
431 ;; according to [Roush & Gourlay]. Their suggestion to knock off
432 ;; a whole staffspace seems a bit drastical: we'll do half.
434 (lengths . (3.5 3.5 3.5 4.5 5.0))
435 (stem-shorten . (0.5))
436 ; if stem is on middle line, choose this direction.
437 (default-neutral-direction . 1)
438 (X-offset-callbacks . (,Stem::off_callback))
439 (meta . ,(element-description "Stem" stem-interface ))
443 (molecule-callback . ,Stem_tremolo::brew_molecule)
444 (beam-width . 2.0) ; staff-space
445 (beam-thickness . 0.42) ; staff-space
446 (beam-space-function . ,default-beam-space-function)
447 (meta . ,(element-description "StemTremolo" stem-tremolo-interface ))
451 (meta . ,(element-description "SeparationItem" separation-item-interface ))
453 (SeparatingGroupSpanner . (
454 (spacing-procedure . ,Separating_group_spanner::set_spacing_rods)
455 (meta . ,(element-description "SeparatingGroupSpanner" separation-spanner-interface))
459 (no-spacing-rods . #t)
460 (molecule-callback . ,Sustain_pedal::brew_molecule)
461 (self-alignment-X . 0)
462 (X-offset-callbacks . (,Side_position::aligned_on_self))
463 (Y-offset-callbacks .
464 (,Side_position::aligned_side
465 ,Side_position::centered_on_parent))
467 (meta . ,(element-description "SustainPedal" sustain-pedal-interface side-position-interface))
470 (SystemStartDelimiter . (
471 (molecule-callback . ,System_start_delimiter::brew_molecule)
472 (after-line-breaking-callback . ,System_start_delimiter::after_line_breaking)
473 (collapse-height . 1.0)
479 (bracket-thick . 0.25)
480 (bracket-width . 2.0)
481 (meta . ,(element-description "SystemStartDelimiter" system-start-delimiter ))
485 (molecule-callback . ,Text_item::brew_molecule)
486 (no-spacing-rods . #t)
488 (properties-to-font-name . ,properties-to-font-name)
489 (style-to-font-name . ,style-to-font-name)
490 (markup-to-properties . ,markup-to-properties)
491 (font-family . "roman")
492 (meta . ,(element-description "TextScript" text-script-interface text-interface side-position-interface ))
495 (molecule-callback . ,Text_spanner::brew_molecule)
496 (font-shape . "italic")
497 (properties-to-font-name . ,properties-to-font-name)
498 (style-to-font-name . ,style-to-font-name)
499 (markup-to-properties . ,markup-to-properties)
502 (meta . ,(element-description "TextSpanner" text-spanner-interface ))
505 (molecule-callback . ,Tie::brew_molecule)
506 (spacing-procedure . ,Tie::set_spacing_rods)
507 (staffline-clearance . 0.24)
508 (details . ((ratio . 0.333) (height-limit . 1.0)))
511 (minimum-length . 2.5)
512 (meta . ,(element-description "Tie" tie-interface ))
516 (after-line-breaking-callback . ,Tie_column::after_line_breaking)
517 (meta . ,(element-description "TieColumn" tie-column-interface ))
521 (molecule-callback . ,Time_signature::brew_molecule)
522 (break-align-symbol . Time_signature)
523 (visibility-lambda . ,all-visible)
525 (properties-to-font-name . ,properties-to-font-name)
526 (style-to-font-name . ,style-to-font-name)
527 (markup-to-properties . ,markup-to-properties)
528 (font-style . timesig)
530 (meta . ,(element-description "TimeSignature" time-signature-interface ))
537 (after-line-breaking-callback . ,Tuplet_spanner::after_line_breaking)
538 (molecule-callback . ,Tuplet_spanner::brew_molecule)
539 (properties-to-font-name . ,properties-to-font-name)
540 (style-to-font-name . ,style-to-font-name)
541 (markup-to-properties . ,markup-to-properties)
542 (font-shape . "italic")
543 (meta . ,(element-description "TupletBracket"
544 tuplet-bracket-interface))
548 (molecule-callback . ,Text_item::brew_molecule)
549 (font-shape . "italic")
550 (properties-to-font-name . ,properties-to-font-name)
551 (style-to-font-name . ,style-to-font-name)
552 (markup-to-properties . ,markup-to-properties)
553 (no-spacing-rods . #t)
554 (self-alignment-X . 0)
555 (X-offset-callbacks . (,Side_position::aligned_on_self))
556 (Y-offset-callbacks .
557 (,Side_position::aligned_side
558 ,Side_position::centered_on_parent))
559 (meta . ,(element-description "UnaChordaPedal" text-interface ))
563 (molecule-callback . ,Volta_spanner::brew_molecule)
566 (properties-to-font-name . ,properties-to-font-name)
567 (style-to-font-name . ,style-to-font-name)
568 (markup-to-properties . ,markup-to-properties)
571 (thickness . 1.6) ; stafflinethickness
572 (height . 2.0) ; staffspace;
574 (meta . ,(element-description "VoltaBracket" volta-bracket-interface side-position-interface))
577 (VerticalAlignment . (
579 (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
580 (X-extent-callback . #f)
582 (meta . ,(element-description "VerticalAlignment" align-interface axis-group-interface))
585 (VerticalAxisGroup . (
587 (meta . ,(element-description "VerticalAxisGroup" axis-group-interface))
593 ; (display (map pair? all-element-descriptions))