]> git.donarmstrong.com Git - lilypond.git/blob - scm/grob-description.scm
* input/regression/finger-chords.ly (texidoc): new file.
[lilypond.git] / scm / grob-description.scm
1 ;;;; grob-description.scm -- part of generated backend documentation
2 ;;;;
3 ;;;;  source file of the GNU LilyPond music typesetter
4 ;;;; 
5 ;;;; (c) 1998--2002  Han-Wen Nienhuys <hanwen@cs.uu.nl>
6 ;;;;                 Jan Nieuwenhuizen <janneke@gnu.org>
7
8 ;;;; distances are given in stafflinethickness (thicknesses) and
9 ;;;; staffspace (distances)
10
11 ;;;; WARNING: the meta field should be the last one.
12 ;;;; WARNING: don't use anonymous functions for initialization. 
13
14 ;; TODO: junk the meta field in favor of something more compact?
15 (define-public all-grob-descriptions
16   `(
17     (Accidental
18      . (
19         (molecule-callback . ,Accidental_interface::brew_molecule)
20         (font-family . music)
21         (cautionary-style . parentheses)
22         (after-line-breaking-callback . ,Accidental_interface::after_line_breaking)             (meta . ((interfaces . (item-interface accidental-interface font-interface))))
23         ))
24     (AccidentalPlacement
25      . (
26         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
27         (left-padding . 0.3)
28
29         ;; this is quite small, but it is very ugly to have
30         ;; accs closer to the previous note than to the next one.
31         (right-padding . 0.15)
32         (meta . ((interfaces . (item-interface accidental-placement-interface))))
33         ))
34
35     (Ambitus
36      . (
37        (breakable . #t)
38        (break-align-symbol . ambitus)
39        (molecule-callback . ,Ambitus::brew_molecule)
40        (font-family . music)
41        (note-head-style . "noteheads-2")
42        (visibility-lambda . ,begin-of-line-visible)
43        (join-heads . #t)
44        (space-alist . (
45                        (clef . (extra-space . 0.0))
46                        (key-signature . (extra-space . 0.0))
47                        (staff-bar . (extra-space . 0.0))
48                        (time-signature . (extra-space . 0.0)) 
49                        (first-note . (extra-space . 0.0))
50                        ))
51        (meta . ((interfaces . (ambitus-interface staff-symbol-referencer-interface break-aligned-interface item-interface  font-interface))))
52        ))
53
54     (Arpeggio
55      . (
56         (X-extent-callback . ,Arpeggio::width_callback)
57         (Y-extent-callback . #f)               
58         (molecule-callback . ,Arpeggio::brew_molecule)
59         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
60         (X-offset-callbacks . (,Side_position_interface::aligned_side))
61         (direction . -1)
62         (staff-position . 0.0)
63         (meta . ((interfaces . (arpeggio-interface staff-symbol-referencer-interface side-position-interface item-interface font-interface))))
64         ))
65
66     (BarLine
67      . (
68         (break-align-symbol . staff-bar)
69         (glyph . "|")
70         (break-glyph-function . ,default-break-barline)
71         (bar-size-procedure . ,Bar_line::get_staff_bar_size)
72         (molecule-callback . ,Bar_line::brew_molecule)     
73         (break-visibility . ,all-visible)
74         (breakable . #t)
75         (before-line-breaking-callback . ,Bar_line::before_line_breaking)
76         (space-alist . (
77                         (time-signature . (extra-space . 0.75)) 
78                         (custos . (minimum-space . 2.0))
79                         (clef .   (minimum-space . 1.0))
80                         (first-note . (extra-space . 1.3))
81                         (right-edge . (extra-space . 0.0))
82                         ))
83
84         ;;
85         ;; Ross. page 151 lists other values, we opt for a leaner look
86         ;; 
87         (kern . 3.0)
88         (thin-kern . 3.0)
89         (hair-thickness . 1.6)
90         (thick-thickness . 6.0)
91         (meta . ((interfaces . (bar-line-interface item-interface   break-aligned-interface font-interface))))
92         ))
93
94     
95     (BarNumber
96      . (
97         (molecule-callback . ,Text_item::brew_molecule)
98         (breakable . #t)
99         (break-visibility . ,begin-of-line-visible)
100         (padding . 1.0)
101         (direction . 1)
102         (font-family . roman)
103         (font-relative-size . -1)
104         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
105         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
106         (self-alignment-X . 1)
107         (extra-offset . (1.3 . 0))
108         (meta .
109               ((interfaces . (side-position-interface
110                               text-interface
111                               self-alignment-interface
112                               font-interface item-interface  break-aligned-interface))))
113
114              ))
115
116     (BassFigure
117      . (
118         (molecule-callback . ,brew-bass-figure)
119         (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
120         (direction . 0)
121         (font-family . number)
122         (font-relative-size . -1)
123         (padding . 0.1)
124         (kern . 0.2)
125         (thickness . 1.0)
126         (meta . ((interfaces . (text-interface bass-figure-interface item-interface self-alignment-interface font-interface))))
127         ))
128     (Beam
129      . (
130         ;; todo: clean this up a bit: the list is getting
131         ;; rather long.
132         (molecule-callback . ,Beam::brew_molecule)
133         (concaveness-gap . 2.0)
134         (concaveness-threshold . 0.08)
135         (positions . (#f . #f))
136         (position-callbacks . (,Beam::least_squares
137                                ,Beam::check_concave
138                                ,Beam::slope_damping
139                                ,Beam::shift_region_to_valid
140                                ,Beam::quanting
141                               ))
142
143         ;; TODO: should be in SLT.
144         (thickness . 0.48) ; in staff-space
145         (before-line-breaking-callback . ,Beam::before_line_breaking)
146         (after-line-breaking-callback . ,Beam::after_line_breaking)
147         (neutral-direction . -1)
148         (dir-function . ,beam-dir-majority-median)
149         
150         ;; Whe have some unreferenced problems here.
151         ;;
152         ;; If we shorten beamed stems less than normal stems (1 staffspace),
153         ;; or high order less than 8th beams, patterns like
154         ;;     c''4 [c''8 c''] c''4 [c''16 c]
155         ;; are ugly (different stem lengths).
156         ;;
157         ;; But if we shorten 16th beams as much as 8th beams, a single
158         ;; forced 16th beam looks *very* short.
159
160         ;; We choose to shorten 8th beams the same as single stems,
161         ;; and high order beams less than 8th beams, so that all
162         ;; isolated shortened beams look nice and a bit shortened,
163         ;; sadly possibly breaking patterns with high order beams.
164         (beamed-stem-shorten . (1.0 0.5 0.25))
165         
166         (outer-stem-length-limit . 0.2)
167         (slope-limit . 0.2)
168         (flag-width-function . ,beam-flag-width-function)
169         (damping . 1)
170         (auto-knee-gap . 5.5)
171         (font-name . "cmr10")
172         (space-function . ,Beam::space_function)
173         (meta . ((interfaces . (staff-symbol-referencer-interface beam-interface spanner-interface))))
174         ))
175
176     (BreakAlignment
177      . (
178         (breakable . #t)
179         (stacking-dir . 1)
180         (axes . (0))
181         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
182         (meta . ((interfaces . (break-alignment-interface item-interface axis-group-interface)))))
183         )
184
185     (BreakAlignGroup
186      . (
187         (axes  . (0))
188         (X-offset-callbacks . (,Break_align_interface::alignment_callback))
189         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
190         (meta . ((interfaces . (break-aligned-interface item-interface axis-group-interface item-interface ))))
191         ))
192
193     (BreathingSign
194      . (
195         (break-align-symbol . breathing-sign)
196         (breakable . #t)
197         (space-alist . (
198                         (ambitus . (extra-space . 2.0))
199                         (key-signature . (minimum-space . 1.5))
200                         (staff-bar . (minimum-space . 1.5))
201                         (clef . (minimum-space . 2.0))
202                         (first-note . (minimum-space . 1.0))
203                         ))
204         (molecule-callback . ,Text_item::brew_molecule)
205         (lookup . name)
206         (font-family . music)
207         (text . "scripts-rcomma")
208         (Y-offset-callbacks . (,Breathing_sign::offset_callback))
209         (break-visibility . ,begin-of-line-invisible)
210         (meta . ((interfaces . (break-aligned-interface breathing-sign-interface text-interface font-interface item-interface ))))
211         ))
212
213     (Clef
214      . (
215         (molecule-callback . ,Clef::brew_molecule)
216         (before-line-breaking-callback . ,Clef::before_line_breaking)
217         (breakable . #t)
218         (font-family . music)      
219         (break-align-symbol . clef)
220         (break-visibility . ,begin-of-line-visible)
221         (space-alist . (
222                         (ambitus . (extra-space . 2.0))
223                         (staff-bar . (minimum-space .  3.7))
224                         (key-signature . (minimum-space . 4.0))
225                         (time-signature . (minimum-space . 4.2))
226                         (first-note . (minimum-space . 5.0))
227                         (next-note . (extra-space . 0.5))
228                         (right-edge . (extra-space . 0.5))
229                         ))
230         (Y-offset-callbacks  . (,Staff_symbol_referencer::callback)) 
231         (meta . ((interfaces . (clef-interface staff-symbol-referencer-interface font-interface break-aligned-interface item-interface ))))
232         ))
233
234     (ChordName
235      . (
236         (molecule-callback . ,Chord_name::brew_molecule)
237         (after-line-breaking-callback . ,Chord_name::after_line_breaking)
238         (chord-name-function . ,default-chord-name-function)
239         (font-family . roman)
240         (meta . ((interfaces . (font-interface text-interface chord-name-interface item-interface ))))
241         ))
242
243     (Custos
244      . (
245         (break-align-symbol . custos)
246         (breakable . #t)
247         (molecule-callback . ,Custos::brew_molecule)
248         (break-visibility . ,end-of-line-visible)
249         (style . vaticana)
250         (neutral-position . 0)
251         (neutral-direction . -1)
252         (adjust-if-on-staffline . #t)
253         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
254         (font-family . ancient)
255         (space-alist . (
256                         (first-note . (minimum-space . 0.0))
257                         (right-edge . (extra-space . 0.1))
258                         ))
259         (meta . ((interfaces
260                   . (custos-interface staff-symbol-referencer-interface
261                                       font-interface
262                                       break-aligned-interface item-interface ))))
263         ))
264
265
266     (DotColumn
267      . (
268         (axes . (0))
269         (direction . 1)
270         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
271         (X-offset-callbacks . (,Dot_column::side_position))
272         (meta . ((interfaces . (dot-column-interface axis-group-interface item-interface ))))
273         ))
274
275     (Dots
276      . (
277         (molecule-callback . ,Dots::brew_molecule)
278         (dot-count . 1)
279         (Y-offset-callbacks  . (,Dots::quantised_position_callback ,Staff_symbol_referencer::callback))
280         (meta . ((interfaces . (font-interface staff-symbol-referencer-interface dots-interface item-interface ))))
281         ))
282
283     (DoublePercentRepeat .
284                          (
285                           (molecule-callback . ,Percent_repeat_item_interface::double_percent)
286                           (breakable . #t)
287                           (slope . 1.0)
288                           (font-family . music)
289                           (width . 2.0)
290                           (thickness . 0.48)
291                           (break-align-symbol . staff-bar)
292                           (break-visibility . ,begin-of-line-invisible)
293                           (meta . ((interfaces . (font-interface
294                                                   break-aligned-interface
295                                                   percent-repeat-interface item-interface ))))
296                          ))
297
298     (DynamicText
299      . (
300         (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
301         (molecule-callback . ,Text_item::brew_molecule)
302         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
303                                ,Self_alignment_interface::centered_on_parent))
304         (self-alignment-X . 0)
305         (no-spacing-rods . #t)
306         (script-priority . 100)
307         (font-series . bold)
308         (font-family . dynamic)
309         (font-shape . italic)
310         (self-alignment-Y . 0)
311         (meta . ((interfaces . (font-interface text-interface self-alignment-interface  dynamic-interface script-interface item-interface ))))
312         ))
313
314     (DynamicLineSpanner
315      . (
316         (axes . (1))
317         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
318         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
319         (padding . 0.6)
320         (minimum-space . 1.2)
321         (direction . -1)
322         (meta . ((interfaces . (dynamic-interface axis-group-interface side-position-interface spanner-interface))))
323         ))
324
325     (LeftEdge
326      . (
327         (break-align-symbol . left-edge)
328         (X-extent-callback . ,Grob::point_dimension_callback)
329         (breakable . #t)
330         (space-alist . (
331                         (custos . (extra-space . 0.0))
332                         (ambitus . (extra-space . 2.0))
333                         (time-signature . (extra-space . 0.0)) 
334                         (staff-bar . (extra-space . 0.0))
335                         (breathing-sign . (minimum-space  . 0.0))
336                         (clef . (extra-space . 1.0))
337                         (first-note . (extra-space . 1.0))
338                         (right-edge . (extra-space . 0.0))
339                         (key-signature . (extra-space . 0.0))
340                         ))
341         (meta . ((interfaces . (break-aligned-interface item-interface ))))
342         ))
343
344     (Fingering
345      . (
346         (molecule-callback . ,Text_item::brew_molecule)
347         (padding . 0.6)
348         ;;              (direction . -1)
349         (self-alignment-X . 0)
350         (self-alignment-Y . 0)
351         (script-priority . 100)
352         (font-family . number)
353         (font-relative-size . -3)
354         (font-shape . upright)
355         (meta . ((interfaces . (finger-interface font-interface text-script-interface text-interface side-position-interface self-alignment-interface item-interface ))))
356         ))
357
358
359     (HaraKiriVerticalGroup
360      . (
361         (Y-offset-callbacks . (,Hara_kiri_group_spanner::force_hara_kiri_callback))
362         (Y-extent-callback . ,Hara_kiri_group_spanner::y_extent)
363         (axes . (1))
364         (meta . ((interfaces . (axis-group-interface hara-kiri-group-interface item-interface  spanner-interface))))
365         ))
366
367     (Hairpin
368      . (
369         (molecule-callback . ,Hairpin::brew_molecule)
370         (thickness . 1.0)
371         (height . 0.6666)
372         (spacing-procedure . ,Spanner::set_spacing_rods)
373         (minimum-length . 2.0)
374         (if-text-padding . 1.0)
375         (width-correct . -1.0)
376
377         (dash-thickness . 1.2)
378         (dash-length . 4.0)
379         (self-alignment-Y . 0)
380         (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
381         (meta . ((interfaces . (hairpin-interface self-alignment-interface dynamic-interface spanner-interface))))
382         ))
383
384     (HorizontalBracket
385      . (
386         (thickness . 1.0)
387         (molecule-callback . ,Horizontal_bracket::brew_molecule)
388         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
389         (padding . 0.2)
390         (direction . -1)
391         (meta . ((interfaces . (horizontal-bracket-interface spanner-interface))))
392         ))
393     (InstrumentName
394      . (
395         (breakable . #t)
396         (Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self
397                                ,Side_position_interface::aligned_on_support_refpoints))
398         ;; huh? what's this for?
399         (direction . 0)
400         (space-alist . (
401                         (left-edge . (extra-space . 1.0))
402                         ))
403
404         (self-alignment-Y . 0)
405         (molecule-callback . ,Text_item::brew_molecule)         
406         (break-align-symbol . instrument-name)
407         (break-visibility . ,begin-of-line-visible)
408         (baseline-skip . 2)
409         (font-family . roman)
410         (meta . ((interfaces . (font-interface self-alignment-interface side-position-interface text-interface break-aligned-interface item-interface ))))
411         ))
412
413     (KeySignature
414      . (
415         (molecule-callback . ,Key_signature_interface::brew_molecule)
416         (space-alist . (
417                         (time-signature . (extra-space . 1.25))
418                         (staff-bar .  (extra-space . 1.1))
419                         (right-edge . (extra-space . 0.5))
420                         (first-note . (extra-space . 2.5))
421                         ))
422         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
423         (break-align-symbol . key-signature)
424         (break-visibility . ,begin-of-line-visible)
425         (breakable . #t)
426         (meta . ((interfaces . (key-signature-interface  font-interface  break-aligned-interface item-interface ))))
427         ))
428
429     (Ligature
430      . (
431         (molecule-callback . ,Ligature_bracket::brew_molecule)
432         (meta . ((interfaces . (ligature-interface))))
433         ))
434
435     (LigatureBracket
436      . (
437         (width . 0.75)
438         (height . 0.5)
439         (ligature-primitive-callback . ,Note_head::brew_molecule)
440         (molecule-callback . ,Ligature_bracket::brew_molecule)
441         (meta . ((interfaces . (ligature-bracket-interface spanner-interface))))
442         ))
443
444     (LigatureHead
445      . (
446         (ligature-primitive-callback . ,Note_head::brew_molecule)
447         (molecule-callback . ,Ligature_head::brew_molecule)
448         (Y-offset-callbacks  . (,Staff_symbol_referencer::callback))
449         (stem-attachment-function . ,note-head-style->attachment-coordinates)
450         (font-family . ancient)
451         (style . mensural)
452         (glyph-name-procedure . ,find-notehead-symbol)
453         (meta . ((interfaces . (ligature-head-interface rhythmic-head-interface
454                                                         font-interface
455                                                         note-head-interface staff-symbol-referencer-interface))))
456         ))
457
458     (LyricHyphen
459      . (
460         (thickness . 1.0)
461         (height . 0.4)
462         (minimum-length .  0.5) 
463         (maximum-length .  100)
464         (molecule-callback . ,Hyphen_spanner::brew_molecule)
465         (Y-extent-callback . ,Grob::point_dimension_callback)
466         (meta . ((interfaces . (lyric-hyphen-interface spanner-interface))))
467         ))
468
469     (LyricExtender
470      . (
471         (molecule-callback . ,Lyric_extender::brew_molecule)
472         (height . 0.8) ; stafflinethickness;
473         (right-trim-amount . 0.5)
474         (Y-extent-callback . ,Grob::point_dimension_callback)
475         (meta . ((interfaces . (lyric-extender-interface spanner-interface))))
476         ))
477
478     (LyricText
479      . (
480         (molecule-callback . ,Text_item::brew_molecule)
481         (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent
482                                ,Self_alignment_interface::aligned_on_self))
483         (self-alignment-X . 0)
484         (word-space . 0.6)
485         (ignore-length-mismatch . #f)
486         (begin-alignment . 4)
487         (end-alignment . 2)
488         (font-family . roman)
489         (font-shape . upright)
490         
491         ;; duh, side-position-interface?
492         (meta . ((interfaces . (lyric-syllable-interface self-alignment-interface text-interface font-interface item-interface ))))
493         ))
494
495     (MensuralLigature
496      . (
497         (thickness . 1.4)
498         (flexa-width . 2.0)
499         (ligature-primitive-callback . ,Mensural_ligature::brew_ligature_primitive)
500         (molecule-callback . ,Mensural_ligature::brew_molecule)
501         (font-family . ancient)
502         (meta . ((interfaces . (mensural-ligature-interface font-interface))))
503         ))
504
505     (Porrectus
506      . (
507         (style . mensural)
508         (auto-properties . #f)
509         (solid . #f)
510         (width . 2.4)
511         (thickness . 1.0)
512         (add-stem . #t)
513         (direction . 1)
514         (molecule-callback . ,Porrectus::brew_molecule)
515         (meta . ((interfaces . (porrectus-interface))))
516         ))
517
518     (RehearsalMark
519      . (
520         (molecule-callback . ,Text_item::brew_molecule)
521         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
522         (Y-offset-callbacks . (,Side_position_interface::aligned_side)) 
523         (self-alignment-X . 0)
524
525         (direction . 1)
526         (breakable . #t)
527         (font-family . roman)
528         (baseline-skip . 2)
529         (break-visibility . ,end-of-line-invisible)
530         (padding . 0.8)
531         (meta . ((interfaces . (text-interface side-position-interface font-interface mark-interface self-alignment-interface item-interface ))))
532         ))
533
534     (MultiMeasureRest
535      . (
536         (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
537         (molecule-callback . ,Multi_measure_rest::brew_molecule)
538         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
539         (staff-position . 0)
540         (expand-limit . 10)
541         (thick-thickness . 6.6)
542         (hair-thickness . 2.0)
543         (padding . 1)
544         (meta . ((interfaces . (multi-measure-rest-interface rest-interface font-interface staff-symbol-referencer-interface spanner-interface))))
545         ))
546     
547     (MultiMeasureRestNumber
548      . (
549         (molecule-callback . ,Text_item::brew_molecule)
550         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
551                                ,Self_alignment_interface::centered_on_other_axis_parent))
552         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
553         (self-alignment-X . 0)
554         (direction . 1)
555         (padding . 2)
556         (font-family . number)
557         (meta . ((interfaces . (side-position-interface font-interface spanner-interface))))
558         ))
559
560
561     (NoteCollision
562      . (
563         (axes . (0 1))
564         ;; Ugh, should not be hard-coded. 
565         (note-width . 1.321)
566         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
567         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
568         (meta . ((interfaces . (note-collision-interface axis-group-interface item-interface ))))
569         ))
570
571     (NoteColumn
572      . (
573         (axes . (0 1))
574         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
575         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
576         (meta . ((interfaces . (axis-group-interface note-column-interface item-interface ))))
577         ))
578
579     (NoteHead
580      . (
581         (style . default)
582         (molecule-callback . ,Note_head::brew_molecule)
583         (glyph-name-procedure . ,find-notehead-symbol)
584         (Y-offset-callbacks  . (,Staff_symbol_referencer::callback))
585         (stem-attachment-function . ,note-head-style->attachment-coordinates)
586         (meta . ((interfaces . (rhythmic-head-interface font-interface note-head-interface staff-symbol-referencer-interface item-interface ))))
587         ))
588
589     (Glissando
590      . (
591         (type . line)
592         (gap . 0.5)
593         (zigzag-width . 0.75)
594         (breakable . #t)
595         (X-extent-callback . #f)
596         (Y-extent-callback . #f)                         
597         (molecule-callback . ,Line_spanner::brew_molecule)
598         (meta . ((interfaces . (line-spanner-interface spanner-interface))))
599         ))
600
601     (VoiceFollower
602      . (
603         (type . line)
604         (gap . 0.5)
605         (breakable . #t)
606         (X-extent-callback . #f)
607         (Y-extent-callback . #f)                         
608         (molecule-callback . ,Line_spanner::brew_molecule)
609         (meta . ((interfaces . (line-spanner-interface spanner-interface))))
610         ))
611
612     (NoteName
613      . (
614         (molecule-callback . ,Text_item::brew_molecule)
615         (font-family . roman)
616         (meta . ((interfaces . (note-name-interface text-interface font-interface item-interface ))))
617         ))
618
619     (OctavateEight
620      . (
621         (self-alignment-X . 0)
622         (text . "8")
623         (break-visibility . ,begin-of-line-visible)
624         (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent ,Self_alignment_interface::aligned_on_self))
625         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
626         (molecule-callback . ,Text_item::brew_molecule)
627         (font-shape . italic)
628         (padding . 0.4)
629         (font-relative-size . -2)
630         (font-family . roman)
631         (meta . ((interfaces . (text-interface self-alignment-interface side-position-interface font-interface item-interface ))))
632         ))
633
634     (PaperColumn
635      . (
636         (axes . (0))
637         (before-line-breaking-callback . ,Paper_column::before_line_breaking)
638         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
639
640 ;               (molecule-callback . ,Paper_column::brew_molecule) (font-name . "cmr8") (Y-extent-callback . #f)
641         (meta . ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
642         ))
643
644     (PhrasingSlur
645      . (
646         (molecule-callback . ,Slur::brew_molecule)
647         (thickness . 1.2)               
648         (spacing-procedure . ,Spanner::set_spacing_rods)                
649         (minimum-length . 1.5)
650         (after-line-breaking-callback . ,Slur::after_line_breaking)
651         (extremity-rules . ,default-slur-extremity-rules)
652         (extremity-offset-alist . ,default-phrasing-slur-extremity-offset-alist)
653         (de-uglify-parameters . (1.5  0.8  -2.0))
654         (Y-extent-callback . ,Slur::height)
655         (height-limit . 2.0)
656         (ratio . 0.333)
657         (beautiful . 0.5)
658         (y-free . 0.75)
659         (attachment . (#f . #f))
660         (attachment-offset . ((0 . 0) . (0 . 0)))
661         (slope-limit . 0.8)
662         (details . ((force-blowfit . 0.5)
663                     (bezier-pct-c0 . -0.2) (bezier-pct-c3 . 0.000006)
664                     (bezier-pct-out-max . 0.8) (bezier-pct-in-max . 1.2)
665                     (bezier-area-steps . 1.0)))
666         (meta . ((interfaces . (slur-interface spanner-interface))))
667         ))
668
669     (NonMusicalPaperColumn
670      . (
671         (axes . (0))
672         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
673         (before-line-breaking-callback . ,Paper_column::before_line_breaking)
674         ;; debugging stuff: print column number.
675 ;       (molecule-callback . ,Paper_column::brew_molecule) (font-name . "cmr8") (Y-extent-callback . #f)
676
677
678         (meta .  ((interfaces . (paper-column-interface axis-group-interface spaceable-grob-interface item-interface ))))
679         ))
680
681     (PercentRepeat
682      . (
683         (spacing-procedure . ,Multi_measure_rest::set_spacing_rods)
684         (molecule-callback . ,Multi_measure_rest::percent)
685         (slope . 1.0)
686         (thickness . 0.48)
687         (minimum-width . 12.5) ; staffspace
688         (font-family . music)
689         (meta . ((interfaces . (multi-measure-rest-interface  spanner-interface font-interface percent-repeat-interface))))
690         ))
691
692     (PianoPedalBracket   ;; an example of a text spanner
693      . (
694         (molecule-callback . ,Text_spanner::brew_molecule)
695         (font-family . roman)
696         (type . line)
697         (if-text-padding . 1.0)
698         (width-correct . 0)
699         (outer . #t)
700         (direction . -1)
701         (edge-widen . (0.5 . 0.5))
702         (edge-height . (1.0 . 1.0))
703         (shorten-pair . (0.0 . 0.0))
704         (thickness .  1.0)
705         (meta . ((interfaces . (text-spanner-interface piano-pedal-interface spanner-interface))))
706         ))
707
708     (RepeatSlash
709      . (
710         (molecule-callback . , Percent_repeat_item_interface::beat_slash)
711         (thickness . 0.48)
712         (slope . 1.7)
713         (meta . ((interfaces . (percent-repeat-interface item-interface ))))
714         ))
715     (Rest
716      . (
717         (after-line-breaking-callback . ,Rest::after_line_breaking)
718         (X-extent-callback . ,Rest::extent_callback)
719         (Y-extent-callback . ,Rest::extent_callback)            
720         (molecule-callback . ,Rest::brew_molecule)
721         (Y-offset-callbacks . (,Staff_symbol_referencer::callback)) 
722         (minimum-beam-collision-distance . 0.75)
723         (meta . (
724                  (interfaces . (font-interface
725                                 rhythmic-head-interface
726                                 staff-symbol-referencer-interface
727                                 rest-interface item-interface ))
728                 ))))
729
730     (RestCollision
731      . (
732         (minimum-distance . 0.75)
733         (meta . ((interfaces . (rest-collision-interface item-interface ))))
734         ))
735
736     (Script
737      . (
738         ;; don't set direction here: it breaks staccato.
739         (molecule-callback . ,Script_interface::brew_molecule)
740
741         ;; This value is sensitive: if too large, staccato dots will move a
742         ;; space a away.
743         (padding . 0.25)
744         ;; (script-priority . 0) priorities for scripts, see script.scm
745         (X-offset-callbacks . (,Self_alignment_interface::centered_on_parent))
746         (before-line-breaking-callback . ,Script_interface::before_line_breaking)
747         (font-family . music)
748         (meta . ((interfaces . (script-interface side-position-interface font-interface item-interface ))))
749         ))
750
751     (ScriptColumn
752      . (
753         (before-line-breaking-callback . ,Script_column::before_line_breaking)
754         (meta . ((interfaces . (script-column-interface item-interface ))))
755         ))
756
757     (Slur
758      . (
759         (molecule-callback . ,Slur::brew_molecule)
760         (thickness . 1.2)               
761         (spacing-procedure . ,Spanner::set_spacing_rods)                
762         (minimum-length . 1.5)
763         (after-line-breaking-callback . ,Slur::after_line_breaking)
764         (extremity-rules . ,default-slur-extremity-rules)
765         (extremity-offset-alist . ,default-slur-extremity-offset-alist)
766         (de-uglify-parameters . (1.5  0.8  -2.0))
767         (Y-extent-callback . ,Slur::height)
768         (height-limit . 2.0)
769         (ratio . 0.333)
770         (beautiful . 0.5)
771         (y-free . 0.75)
772         (attachment . (#f . #f))
773         (attachment-offset . ((0 . 0) . (0 . 0)))
774         (slope-limit . 0.8)
775         (details . ((force-blowfit . 0.5)
776                     (bezier-pct-c0 . -0.2) (bezier-pct-c3 . 0.000006)
777                     (bezier-pct-out-max . 0.8) (bezier-pct-in-max . 1.2)
778                     (bezier-area-steps . 1.0)))
779         (meta . ((interfaces . (slur-interface spanner-interface))))
780         ))
781
782     (SpacingSpanner
783      . (
784         (spacing-procedure .  ,Spacing_spanner::set_springs)
785         (grace-space-factor . 0.6)
786         (shortest-duration-space . 2.0)
787         (spacing-increment . 1.2)
788         (base-shortest-duration . ,(ly:make-moment 1 8))
789         (meta . ((interfaces . (spacing-interface spacing-spanner-interface spanner-interface))))
790         ))
791
792     (SpanBar
793      . (
794         (break-align-symbol . staff-bar)
795         (bar-size-procedure . ,Span_bar::get_bar_size) 
796         (molecule-callback . ,Span_bar::brew_molecule)
797         (break-visibility . ,begin-of-line-invisible)
798         (X-extent-callback . ,Span_bar::width_callback)
799         (Y-extent-callback . ())
800         (breakable . #t)
801         (glyph . "|")
802         (before-line-breaking-callback . ,Span_bar::before_line_breaking)
803         ;; ugh duplication! 
804
805         ;;
806         ;; Ross. page 151 lists other values, we opt for a leaner look
807         ;; 
808         (kern . 3.0)
809         (thin-kern . 3.0)
810         (hair-thickness . 1.6)
811         (thick-thickness . 6.0)
812         (meta . ((interfaces . (span-bar-interface font-interface
813                                                    bar-line-interface item-interface ))))
814         ))
815
816     (StanzaNumber
817      . (
818         (breakable . #t)
819         (molecule-callback . ,Text_item::brew_molecule)         
820         (break-align-symbol . clef)
821         (break-visibility . ,begin-of-line-visible)
822         (font-family . roman)
823         (meta . ((interfaces . (break-aligned-interface text-interface font-interface item-interface ))))               
824         ))
825
826     (StaffSpacing
827      . (
828         (breakable . #t)
829         (stem-spacing-correction . 0.4)
830         (knee-spacing-correction . 0.75)
831         (meta . ((interfaces . (spacing-interface staff-spacing-interface item-interface ))))
832         ))
833     (NoteSpacing
834      . (
835         (stem-spacing-correction . 0.5)
836         (knee-spacing-correction . 0.75)
837         (meta . ((interfaces . (spacing-interface note-spacing-interface item-interface ))))
838         ))
839
840     (StaffSymbol
841      . (
842         (molecule-callback . ,Staff_symbol::brew_molecule)
843         (line-count . 5)
844         (layer . 0)
845         (meta . ((interfaces . (staff-symbol-interface spanner-interface))))
846         ))
847
848     (SostenutoPedal
849      . (
850         (molecule-callback . ,Text_item::brew_molecule)
851         (direction . 1)
852         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
853         (no-spacing-rods . #t)
854         (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
855         (pedal-type . mixed)
856         (font-family . roman)
857         (font-shape . italic)
858         (self-alignment-X . 0)
859         (meta . ((interfaces . (text-interface  self-alignment-interface font-interface item-interface))))
860         ))
861
862     (SostenutoPedalLineSpanner 
863      . (
864         (axes . (1))
865         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
866         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
867         
868
869         (padding . 1.2)
870         (minimum-space . 1.0)
871         (direction . -1)
872         (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface  spanner-interface))))
873         ))
874         
875     (Stem
876      . (
877         (before-line-breaking-callback . ,Stem::before_line_breaking)
878         (molecule-callback . ,Stem::brew_molecule)
879         (thickness . 1.3)
880
881         ;; 3.5 (or 3 measured from note head) is standar length
882         ;; 32nd, 64th flagged stems should be longer
883         (lengths . (3.5 3.5 3.5 4.5 5.0))
884         
885         ;; Stems in unnatural (forced) direction should be shortened by
886         ;; one staff space, according to [Roush & Gourlay].
887         ;; Flagged stems we shorten only half a staff space.
888         (stem-shorten . (1.0 0.5))
889
890         ;; default stem direction for note on middle line
891         (neutral-direction . -1)
892         
893         ;; [Wanske]: standard length (but no shorter than minimum).
894         ;; (beamed-lengths . (3.5))
895         
896         ;; FIXME.  3.5 yields too long beams (according to Ross and
897         ;; looking at Baerenreiter examples) for a number of common
898         ;; boundary cases.  Subtracting half a beam thickness fixes
899         ;; this, but the bug may well be somewhere else.
900         (beamed-lengths . (3.26))
901
902         ;; [Wanske] lists three sets of minimum lengths.  One
903         ;; set for the nomal case, and one set for beams with `der
904         ;; Balkenendpunkt weiter "uber bzw. unter die Systemgrenze
905         ;; hinaus (bei Gruppen mit grossem Tonumfang)' and the extreme
906         ;; case.
907
908         ;; Note that Wanske lists numbers lengths starting from top of
909         ;; head, so we must add half a staff space.
910         
911         ;; We use the normal minima as minimum for the ideal lengths,
912         ;; and the extreme minima as abolute minimum length.
913         
914         ;; The 'normal' minima
915         (beamed-minimum-free-lengths . (2.5 2.0 1.5))
916         
917         ;; The 'far outside staff' minima, not used
918         ;(beamed-far-minimum-free-lengths . (1.83))
919         
920         ;; The 'extreme case' minima
921         (beamed-extreme-minimum-free-lengths . (1.83 1.5))
922
923         (X-offset-callbacks . (,Stem::off_callback))
924         (X-extent-callback . ,Stem::dim_callback)       
925         (Y-extent-callback . ,Stem::height)
926         (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
927         (adjust-if-on-staffline . #t)
928         (font-family . music)      
929         (avoid-note-head . #f)
930         (up-to-staff . #f)
931         (meta . ((interfaces . (stem-interface  font-interface item-interface ))))
932         ))
933
934     (StemTremolo
935      . (
936         (molecule-callback . ,Stem_tremolo::brew_molecule)
937         (Y-extent-callback . ,Stem_tremolo::height)
938         (X-extent-callback . #f)
939
940         (beam-width . 1.6) ; staff-space
941         (beam-thickness . 0.48) ; staff-space
942         (meta . ((interfaces . (stem-tremolo-interface item-interface ))))
943         ))
944
945     (SeparationItem
946      . (
947         (meta . ((interfaces . (spacing-interface separation-item-interface item-interface ))))
948         ))
949
950     (SeparatingGroupSpanner
951      . (
952         (spacing-procedure . ,Separating_group_spanner::set_spacing_rods)
953         (meta . ((interfaces . (spacing-interface separation-spanner-interface spanner-interface))))
954         ))
955
956     (SustainPedal
957      . (
958         (no-spacing-rods . #t)
959         (molecule-callback . ,Sustain_pedal::brew_molecule)
960         (self-alignment-X . 0)
961         (direction . 1)
962         (padding . 0.0)  ;; padding relative to SustainPedalLineSpanner
963         (pedal-type . text)
964         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
965         (meta . ((interfaces . (piano-pedal-interface text-spanner-interface text-interface self-alignment-interface font-interface item-interface))))
966         ))
967
968     (SustainPedalLineSpanner 
969      . (
970         (axes . (1))
971         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
972         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
973         
974         (padding . 1.2)
975         (minimum-space . 1.0)
976         (direction . -1)
977         (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
978         ))
979
980     (System
981      . (
982         (axes . (0 1))
983         (X-extent-callback . ,Axis_group_interface::group_extent_callback)
984         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
985         (meta . ((interfaces . (system-interface axis-group-interface spanner-interface))))
986         ))
987
988     (SystemStartBrace
989      . (
990         (glyph . "brace")
991         (molecule-callback . ,System_start_delimiter::brew_molecule)
992         (collapse-height . 5.0)
993         (font-family . braces)
994         (Y-extent-callback . #f)
995         (meta . ((interfaces . (system-start-delimiter-interface font-interface))))
996         ))
997
998     (SystemStartBracket
999      . (
1000         (Y-extent-callback . #f)
1001         (molecule-callback . ,System_start_delimiter::brew_molecule)
1002         (glyph . "bracket")
1003         (arch-height . 1.5)
1004         (arch-angle . 50.0)
1005         (arch-thick . 0.25)
1006         (arch-width . 1.5)
1007         (bracket-collapse-height . 1)
1008         (thickness . 0.25)
1009         (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1010         ))
1011
1012     (SystemStartBar
1013      . (
1014         (Y-extent-callback . #f)
1015         (molecule-callback . ,System_start_delimiter::brew_molecule)
1016         (glyph . "bar-line")
1017         (thickness . 1.6)
1018         (after-line-breaking-callback . ,System_start_delimiter::after_line_breaking)
1019         (meta . ((interfaces . (system-start-delimiter-interface spanner-interface))))
1020         ))
1021
1022     (TextScript
1023      . (
1024         (molecule-callback . ,Text_item::brew_molecule)
1025         (no-spacing-rods . #t)
1026         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1027         (direction . -1)
1028         (padding . 0.5)
1029         (script-priority . 200)
1030         ;; todo: add X self alignment?
1031         (baseline-skip . 2)
1032         (font-family . roman)
1033         (meta . ((interfaces . (text-script-interface text-interface side-position-interface font-interface item-interface ))))
1034         ))
1035
1036     (TextSpanner
1037      . (
1038         (molecule-callback . ,Text_spanner::brew_molecule)
1039         (font-family . roman)
1040         (type . line)
1041
1042         ;; urg, only for (de)cresc. text spanners
1043         (if-text-padding . 1.0)
1044         (width-correct . -1)
1045
1046         (direction . 1)
1047         (meta . ((interfaces . (text-spanner-interface side-position-interface font-interface spanner-interface))))             
1048         ))
1049     
1050     (TabNoteHead
1051      . (
1052         (font-family . roman)
1053         (style . default)
1054         (molecule-callback . ,tablature-molecule-callback)
1055         (Y-offset-callbacks  . (,Staff_symbol_referencer::callback))
1056         (extra-offset . (0 . -0.65)) ;; UGH! TODO: Clean this up!
1057         (stem-attachment-function . ,tablature-stem-attachment-function)
1058         (meta . ((interfaces
1059                   . (rhythmic-head-interface
1060                      font-interface
1061                      note-head-interface staff-symbol-referencer-interface
1062                      text-interface item-interface ))))
1063         ))
1064
1065
1066     (Tie
1067      . (
1068         (molecule-callback . ,Tie::brew_molecule)
1069         (spacing-procedure . ,Spanner::set_spacing_rods)
1070         (staffline-clearance . 0.35)
1071         (details . ((ratio . 0.333) (height-limit . 1.0)))
1072         (thickness . 1.2)
1073         (x-gap . -0.1)
1074         (y-offset . 0.6)
1075         (minimum-length  . 2.5)
1076         (meta . ((interfaces . (tie-interface spanner-interface))))
1077         ))
1078
1079     (TieColumn
1080      . (
1081         (after-line-breaking-callback . ,Tie_column::after_line_breaking)
1082         (X-extent-callback . ())
1083         (Yoo-extent-callback . ())      
1084         (meta . ((interfaces . (tie-column-interface spanner-interface))))
1085         ))
1086
1087     (TimeSignature
1088      . (
1089         (molecule-callback . ,Time_signature::brew_molecule)
1090         (break-align-symbol . time-signature)
1091         (break-visibility . ,all-visible)
1092         (space-alist . (
1093                         (first-note . (extra-space . 2.0))
1094                         (right-edge . (extra-space . 0.5))
1095                         (staff-bar .  (minimum-space . 2.0))
1096                         ))
1097         (breakable . #t)
1098         (style . C)
1099         (font-family . number)
1100         (meta . ((interfaces . (time-signature-interface break-aligned-interface font-interface item-interface ))))
1101         ))
1102
1103     (TupletBracket
1104      . (
1105         (gap . 2.0)
1106         (padding . 0.9)
1107         (thickness . 1.6)
1108         (edge-widen . (0.0 . 0.0))
1109         (edge-height . (0.7 . 0.7))
1110         (shorten-pair . (-0.2 . -0.2))
1111         (before-line-breaking-callback . ,Tuplet_bracket::before_line_breaking)
1112         (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
1113         (molecule-callback . ,Tuplet_bracket::brew_molecule)
1114         (font-family . roman)
1115         (font-shape . italic)
1116
1117         (font-relative-size . -1)
1118         (meta .  ((interfaces . (text-interface tuplet-bracket-interface font-interface spanner-interface))))
1119         ))
1120
1121     (UnaCordaPedal
1122      . (
1123         (molecule-callback . ,Text_item::brew_molecule)
1124         (font-family . roman)
1125         (font-shape . italic)
1126         (no-spacing-rods . #t)
1127         (self-alignment-X . 0)
1128         (direction . 1)
1129         (pedal-type . text)
1130         (padding . 0.0)  ;; padding relative to UnaCordaPedalLineSpanner
1131         (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
1132         (meta . ((interfaces . (text-interface self-alignment-interface font-interface item-interface ))))
1133         ))
1134
1135     (UnaCordaPedalLineSpanner 
1136      . (
1137         (axes . (1))
1138         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
1139         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1140         
1141         (padding . 1.2)
1142         (minimum-space . 1.0)
1143         (direction . -1)
1144         (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface spanner-interface))))
1145         ))
1146
1147     (VoltaBracket
1148      . (
1149         (molecule-callback . ,Volta_bracket_interface::brew_molecule)
1150         (direction . 1)
1151         (padding . 1)
1152         (font-style . volta)
1153         (Y-offset-callbacks . (,Side_position_interface::aligned_side))
1154         (thickness . 1.6)  ;  stafflinethickness
1155         (height . 2.0) ; staffspace;
1156         (minimum-space . 5)
1157         (font-family . number)
1158         (font-relative-size . -2)
1159         (meta . ((interfaces . (volta-bracket-interface text-interface side-position-interface font-interface spanner-interface))))
1160         ))
1161     
1162     (VerticalAlignment
1163      . (
1164         (axes . (1))
1165         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)
1166         (stacking-dir . -1)
1167         (meta . ((interfaces . (align-interface axis-group-interface spanner-interface))))
1168         ))
1169
1170     (VerticalAxisGroup
1171      . (
1172         (axes . (1))
1173         (Y-extent-callback . ,Axis_group_interface::group_extent_callback)      
1174         
1175         (meta . ((interfaces . (axis-group-interface spanner-interface))))
1176         ))
1177    )
1178  )
1179
1180
1181
1182
1183 (define (completize-grob-entry x)
1184   "transplant assoc key into 'name entry of 'meta of X
1185 "
1186   (let* ((name-sym  (car x))
1187          (grob-entry (cdr x))
1188          (metaentry (cdr (assoc 'meta grob-entry)))
1189          (ifaces-entry
1190           (cdr (assoc 'interfaces metaentry)))
1191
1192         )
1193     (set! metaentry (assoc-set! metaentry 'name name-sym))
1194     (set! metaentry (assoc-set! metaentry 'interfaces
1195                                 (cons 'grob-interface ifaces-entry)))
1196     (set! grob-entry (assoc-set! grob-entry 'meta metaentry))
1197     (cons name-sym grob-entry)))
1198
1199 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
1200
1201
1202
1203                                         ;  (display  (map pair? all-grob-descriptions))
1204
1205
1206 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
1207
1208 (map (lambda (x)
1209                                         ; (display (car x)) (newline)
1210
1211        (set-object-property! (car x) 'translation-type? list?)
1212        (set-object-property! (car x) 'is-grob? #t))
1213      all-grob-descriptions)
1214
1215
1216 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))