]> git.donarmstrong.com Git - lilypond.git/blob - scm/define-grobs.scm
Merge branch 'master' into translation
[lilypond.git] / scm / define-grobs.scm
1 ;;;; This file is part of LilyPond, the GNU music typesetter.
2 ;;;;
3 ;;;; Copyright (C) 1998--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
4 ;;;;                 Jan Nieuwenhuizen <janneke@gnu.org>
5 ;;;;
6 ;;;; LilyPond is free software: you can redistribute it and/or modify
7 ;;;; it under the terms of the GNU General Public License as published by
8 ;;;; the Free Software Foundation, either version 3 of the License, or
9 ;;;; (at your option) any later version.
10 ;;;;
11 ;;;; LilyPond is distributed in the hope that it will be useful,
12 ;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ;;;; GNU General Public License for more details.
15 ;;;;
16 ;;;; You should have received a copy of the GNU General Public License
17 ;;;; along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
18
19 ;;;; distances are given in line-thickness (thicknesses) and
20 ;;;; staff-space (distances)
21
22 ;;;; WARNING: the meta field should be the last one.
23 ;;;; WARNING: don't use anonymous functions for initialization.
24
25 ;; TODO: junk the meta field in favor of something more compact?
26
27
28 (define-session-public all-grob-descriptions
29   `(
30     (Accidental
31      . (
32         (alteration . ,accidental-interface::calc-alteration)
33         (avoid-slur . inside)
34         (glyph-name . ,accidental-interface::glyph-name)
35         (glyph-name-alist . ,standard-alteration-glyph-name-alist)
36         (stencil . ,ly:accidental-interface::print)
37         (horizontal-skylines . ,(ly:make-unpure-pure-container ly:accidental-interface::horizontal-skylines))
38         (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
39         (X-extent . ,ly:accidental-interface::width)
40         (Y-extent . ,accidental-interface::height)
41         (meta . ((class . Item)
42                  (interfaces . (accidental-interface
43                                 inline-accidental-interface
44                                 font-interface))))))
45
46     (AccidentalCautionary
47      . (
48         (alteration . ,accidental-interface::calc-alteration)
49         (avoid-slur . inside)
50         (glyph-name-alist . ,standard-alteration-glyph-name-alist)
51         (parenthesized . #t)
52         (stencil . ,ly:accidental-interface::print)
53         (Y-extent . ,accidental-interface::height)
54         (meta . ((class . Item)
55                  (interfaces . (accidental-interface
56                                 inline-accidental-interface
57                                 font-interface))))))
58
59     (AccidentalPlacement
60      . (
61         (direction .  ,LEFT)
62         (positioning-done . ,ly:accidental-placement::calc-positioning-done)
63
64         ;; this is quite small, but it is very ugly to have
65         ;; accs closer to the previous note than to the next one.
66         (right-padding . 0.15)
67
68         ;; for horizontally stacked scripts.
69         (script-priority .  -100)
70
71         (X-extent . ,ly:axis-group-interface::width)
72         (meta . ((class . Item)
73                  (interfaces . (accidental-placement-interface))))))
74
75     (AccidentalSuggestion
76      . (
77         (alteration . ,accidental-interface::calc-alteration)
78         (direction . ,UP)
79         (font-size . -2)
80         (glyph-name-alist . ,standard-alteration-glyph-name-alist)
81         (outside-staff-priority . 0)
82         (script-priority . 0)
83         (self-alignment-X . ,CENTER)
84         (side-axis . ,Y)
85         (staff-padding . 0.25)
86         (stencil . ,ly:accidental-interface::print)
87         (X-extent . ,ly:accidental-interface::width)
88         (X-offset . ,(ly:make-simple-closure
89                       `(,+
90                         ,(ly:make-simple-closure
91                           (list ly:self-alignment-interface::centered-on-x-parent))
92                         ,(ly:make-simple-closure
93                           (list ly:self-alignment-interface::x-aligned-on-self)))))
94         (Y-extent . ,accidental-interface::height)
95         (Y-offset . ,side-position-interface::y-aligned-side)
96         (meta . ((class . Item)
97                  (interfaces . (accidental-interface
98                                 accidental-suggestion-interface
99                                 font-interface
100                                 script-interface
101                                 self-alignment-interface
102                                 side-position-interface))))))
103
104     (Ambitus
105      . (
106         (axes . (,X ,Y))
107         (break-align-symbol . ambitus)
108         (break-visibility . ,begin-of-line-visible)
109         (non-musical . #t)
110         (space-alist . (
111                         (cue-end-clef . (extra-space . 0.5))
112                         (clef . (extra-space . 0.5))
113                         (cue-clef . (extra-space . 0.5))
114                         (key-signature . (extra-space . 0.0))
115                         (staff-bar . (extra-space . 0.0))
116                         (time-signature . (extra-space . 0.0))
117                         (first-note . (fixed-space . 0.0))))
118         (X-extent . ,ly:axis-group-interface::width)
119         (Y-extent . ,axis-group-interface::height)
120         (meta . ((class . Item)
121                  (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
122                                       (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
123                  (interfaces . (ambitus-interface
124                                 axis-group-interface
125                                 break-aligned-interface))))))
126
127     (AmbitusAccidental
128      . (
129         (direction . ,LEFT)
130         (glyph-name-alist . ,standard-alteration-glyph-name-alist)
131         (padding . 0.5)
132         (side-axis . ,X)
133         (stencil . ,ly:accidental-interface::print)
134         (X-offset . ,ly:side-position-interface::x-aligned-side)
135         (Y-extent . ,accidental-interface::height)
136         (meta . ((class . Item)
137                  (interfaces . (accidental-interface
138                                 break-aligned-interface
139                                 font-interface
140                                 side-position-interface))))))
141
142     (AmbitusLine
143      . (
144         (gap . ,ambitus-line::calc-gap)
145         (length-fraction . 0.7)
146         (maximum-gap . 0.45)
147         (stencil . ,ambitus::print)
148         (thickness . 2)
149         (X-offset . ,ly:self-alignment-interface::centered-on-x-parent)
150         (meta . ((class . Item)
151                  (interfaces . (ambitus-interface
152                                 font-interface))))))
153
154     (AmbitusNoteHead
155      . (
156         (duration-log . 2)
157         (glyph-name . ,note-head::calc-glyph-name)
158         (stencil . ,ly:note-head::print)
159         (Y-offset . ,staff-symbol-referencer::callback)
160         (Y-extent . ,grob::always-Y-extent-from-stencil)
161         (meta . ((class . Item)
162                  (interfaces . (ambitus-interface
163                                 font-interface
164                                 ledgered-interface
165                                 note-head-interface
166                                 rhythmic-head-interface
167                                 staff-symbol-referencer-interface))))))
168
169     (Arpeggio
170      . (
171         (cross-staff . ,ly:arpeggio::calc-cross-staff)
172         (direction . ,LEFT)
173         (padding . 0.5)
174         (positions . ,ly:arpeggio::calc-positions)
175         (protrusion . 0.4)
176         (script-priority . 0)
177         (side-axis . ,X)
178         (staff-position . 0.0)
179         (stencil . ,ly:arpeggio::print)
180         (X-extent . ,ly:arpeggio::width)
181         (Y-extent . ,(grob::unpure-Y-extent-from-stencil ly:arpeggio::pure-height))
182         (X-offset . ,ly:side-position-interface::x-aligned-side)
183         (Y-offset . ,staff-symbol-referencer::callback)
184         (meta . ((class . Item)
185                  (interfaces . (arpeggio-interface
186                                 font-interface
187                                 side-position-interface
188                                 staff-symbol-referencer-interface))))))
189
190     (BalloonTextItem
191      . (
192         (annotation-balloon . #t)
193         (annotation-line . #t)
194         (extra-spacing-width . (+inf.0 . -inf.0))
195         (stencil . ,ly:balloon-interface::print)
196         (text . ,(grob::calc-property-by-copy 'text))
197         (X-offset . ,(grob::calc-property-by-copy 'X-offset))
198         (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
199         (Y-extent . ,grob::always-Y-extent-from-stencil)
200         (meta . ((class . Item)
201                  (interfaces . (balloon-interface
202                                 font-interface
203                                 text-interface))))))
204
205     (BarLine
206      . (
207         (allow-span-bar . #t)
208         (bar-extent . ,ly:bar-line::calc-bar-extent)
209         (break-align-anchor . ,ly:bar-line::calc-anchor)
210         (break-align-symbol . staff-bar)
211         (break-visibility . ,bar-line::calc-break-visibility)
212         (extra-spacing-height . ,pure-from-neighbor-interface::account-for-span-bar)
213         (gap . 0.4)
214         (glyph . "|")
215         (glyph-name . ,bar-line::calc-glyph-name)
216
217         ;;
218         ;; Ross. page 151 lists other values, we opt for a leaner look
219         ;;
220         ;; TODO:
221         ;; kern should scale with line-thickness too.
222         (kern . 3.0)
223         (thin-kern . 3.0)
224         (hair-thickness . 1.9)
225         (thick-thickness . 6.0)
226
227         (layer . 0)
228         (non-musical . #t)
229         (rounded . #f)
230         (space-alist . (
231                         (time-signature . (extra-space . 0.75))
232                         (custos . (minimum-space . 2.0))
233                         (clef . (minimum-space . 1.0))
234                         (key-signature . (extra-space . 1.0))
235                         (key-cancellation . (extra-space . 1.0))
236                         (first-note . (fixed-space . 1.3))
237                         (next-note . (semi-fixed-space . 0.9))
238                         (right-edge . (extra-space . 0.0))))
239         (stencil . ,ly:bar-line::print)
240         (Y-extent . ,grob::always-Y-extent-from-stencil)
241         (meta . ((class . Item)
242                  (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
243                                       (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
244                  (interfaces . (bar-line-interface
245                                 break-aligned-interface
246                                 font-interface
247                                 pure-from-neighbor-interface))))))
248
249     (BarNumber
250      . (
251         (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
252         ;; want the bar number before the clef at line start.
253         (break-align-symbols . (left-edge staff-bar))
254
255         (break-visibility . ,begin-of-line-visible)
256         (direction . ,UP)
257         (extra-spacing-width . (+inf.0 . -inf.0))
258         (font-family . roman)
259         (font-size . -2)
260         (non-musical . #t)
261         ;; w/o padding, bars numbers are not positioned over the staff as
262         ;; they are slightly to the left. so we add just a bit.
263         (horizon-padding . 0.05)
264         (outside-staff-priority . 100)
265         (padding . 1.0)
266         (self-alignment-X . ,RIGHT)
267         (side-axis . ,Y)
268         (stencil . ,ly:text-interface::print)
269         (X-offset . ,(ly:make-simple-closure
270                       `(,+
271                         ,(ly:make-simple-closure
272                           (list ly:break-alignable-interface::self-align-callback))
273                         ,(ly:make-simple-closure
274                           (list ly:self-alignment-interface::x-aligned-on-self)))))
275         (Y-offset . ,side-position-interface::y-aligned-side)
276         (Y-extent . ,grob::always-Y-extent-from-stencil)
277         (meta .
278               ((class . Item)
279                (interfaces . (break-alignable-interface
280                               font-interface
281                               self-alignment-interface
282                               side-position-interface
283                               text-interface))))))
284
285     (BassFigure
286      . (
287         (stencil . ,ly:text-interface::print)
288         (Y-extent . ,grob::always-Y-extent-from-stencil)
289         (meta . ((class . Item)
290                  (interfaces . (bass-figure-interface
291                                 font-interface
292                                 rhythmic-grob-interface
293                                 text-interface))))))
294
295     (BassFigureAlignment
296      . (
297         (axes . (,Y))
298         (padding . 0.2)
299         (positioning-done . ,ly:align-interface::align-to-minimum-distances)
300         (stacking-dir . ,DOWN)
301         (X-extent . ,ly:axis-group-interface::width)
302         (Y-extent . ,axis-group-interface::height)
303         (meta . ((class . Spanner)
304                  (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
305                                       (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
306                  (interfaces . (align-interface
307                                 axis-group-interface
308                                 bass-figure-alignment-interface))))))
309
310     (BassFigureAlignmentPositioning
311      . (
312         (axes . (,Y))
313         (direction . ,UP)
314         (padding . 0.5)
315         (side-axis . ,Y)
316         (staff-padding . 1.0)
317         (X-extent . ,ly:axis-group-interface::width)
318         (Y-extent . ,axis-group-interface::height)
319         (Y-offset . ,side-position-interface::y-aligned-side)
320         (meta . ((class . Spanner)
321                  (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
322                                       (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
323                  (interfaces . (axis-group-interface
324                                 side-position-interface))))))
325
326     (BassFigureBracket
327      . (
328         (edge-height . (0.2 . 0.2))
329         (stencil . ,ly:enclosing-bracket::print)
330         (X-extent . ,ly:enclosing-bracket::width)
331         (meta . ((class . Item)
332                  (interfaces . (enclosing-bracket-interface))))))
333
334     (BassFigureContinuation
335      . (
336         (stencil . ,ly:figured-bass-continuation::print)
337         (Y-offset . ,ly:figured-bass-continuation::center-on-figures)
338         (meta . ((class . Spanner)
339                  (interfaces . (figured-bass-continuation-interface))))))
340
341     (BassFigureLine
342      . (
343         (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
344         (axes . (,Y))
345         (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
346         (X-extent . ,ly:axis-group-interface::width)
347         (Y-extent . ,axis-group-interface::height)
348         (meta . ((class . Spanner)
349                  (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
350                                       (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
351                  (interfaces . (axis-group-interface))))))
352
353
354     (Beam
355      . (
356         ;; todo: clean this up a bit: the list is getting
357         ;; rather long.
358         (auto-knee-gap . 5.5)
359         (beam-segments . ,ly:beam::calc-beam-segments)
360         (beam-thickness . 0.48) ; in staff-space
361
362         ;; We have some unreferenced problems here.
363         ;;
364         ;; If we shorten beamed stems less than normal stems (1 staff-space),
365         ;; or high order less than 8th beams, patterns like
366         ;;     c''4 [c''8 c''] c''4 [c''16 c]
367         ;; are ugly (different stem lengths).
368         ;;
369         ;; But if we shorten 16th beams as much as 8th beams, a single
370         ;; forced 16th beam looks *very* short.
371
372         ;; We choose to shorten 8th beams the same as single stems,
373         ;; and high order beams less than 8th beams, so that all
374         ;; isolated shortened beams look nice and a bit shortened,
375         ;; sadly possibly breaking patterns with high order beams.
376         (beamed-stem-shorten . (1.0 0.5 0.25))
377
378         (beaming . ,ly:beam::calc-beaming)
379         (clip-edges . #t)
380         (collision-interfaces . (beam-interface
381                                  clef-interface
382                                  clef-modifier-interface
383                                  flag-interface
384                                  inline-accidental-interface
385                                  key-signature-interface
386                                  note-head-interface
387                                  stem-interface
388                                  time-signature-interface))
389         (cross-staff . ,ly:beam::calc-cross-staff)
390         (damping . 1)
391         (details
392          .(
393            (secondary-beam-demerit . 10)
394            (stem-length-demerit-factor . 5)
395            (region-size . 2)
396            (beam-eps . 0.001)
397            (stem-length-limit-penalty . 5000)
398            (damping-direction-penalty . 800)
399            (hint-direction-penalty . 20)
400            (musical-direction-factor . 400)
401            (ideal-slope-factor . 10)
402            (collision-penalty . 500)
403            (collision-padding . 0.35)
404            (round-to-zero-slope . 0.02)))
405         (direction . ,ly:beam::calc-direction)
406
407         (normalized-endpoints . ,ly:spanner::calc-normalized-endpoints)
408         ;; only for debugging.
409         (font-family . roman)
410
411         (beam-gap . ,ly:beam::calc-beam-gap)
412         (minimum-length . ,ly:beam::calc-minimum-length)
413         (neutral-direction . ,DOWN)
414         (positions . ,beam::place-broken-parts-individually)
415         (springs-and-rods . ,ly:beam::calc-springs-and-rods)
416         (X-positions . ,ly:beam::calc-x-positions)
417         (transparent . ,(grob::inherit-parent-property
418                          X 'transparent))
419
420         ;; this is a hack to set stem lengths, if positions is set.
421         (quantized-positions . ,ly:beam::set-stem-lengths)
422
423         (shorten . ,ly:beam::calc-stem-shorten)
424         (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
425         (stencil . ,ly:beam::print)
426
427         (meta . ((class . Spanner)
428                  (object-callbacks . ((normal-stems . ,ly:beam::calc-normal-stems)))
429                  (interfaces . (beam-interface
430                                 font-interface
431                                 staff-symbol-referencer-interface
432                                 unbreakable-spanner-interface))))))
433
434     (BendAfter
435      . (
436         (minimum-length . 0.5)
437         (stencil . ,bend::print)
438         (thickness . 2.0)
439         (meta . ((class . Spanner)
440                  (interfaces . (bend-after-interface
441                                 spanner-interface))))))
442
443     (BreakAlignGroup
444      . (
445         (axes . (,X))
446         (break-align-anchor . ,ly:break-aligned-interface::calc-average-anchor)
447         (break-visibility . ,ly:break-aligned-interface::calc-break-visibility)
448         (X-extent . ,ly:axis-group-interface::width)
449         (meta . ((class . Item)
450                  (interfaces . (axis-group-interface
451                                 break-aligned-interface))))))
452
453     (BreakAlignment
454      . (
455         (axes . (,X))
456         (break-align-orders . ;; end of line
457                             #((
458                                left-edge
459                                cue-end-clef
460                                ambitus
461                                breathing-sign
462                                clef
463                                cue-clef
464                                staff-bar
465                                key-cancellation
466                                key-signature
467                                time-signature
468                                custos)
469
470                               ;; unbroken
471                               (
472                                left-edge
473                                cue-end-clef
474                                ambitus
475                                breathing-sign
476                                clef
477                                cue-clef
478                                staff-bar
479                                key-cancellation
480                                key-signature
481                                time-signature
482                                custos)
483
484                               ;; begin of line
485                               (
486                                left-edge
487                                ambitus
488                                breathing-sign
489                                clef
490                                key-cancellation
491                                key-signature
492                                time-signature
493                                staff-bar
494                                cue-clef
495                                custos)))
496         (non-musical . #t)
497         (positioning-done . ,ly:break-alignment-interface::calc-positioning-done)
498         (stacking-dir . 1)
499         (X-extent . ,ly:axis-group-interface::width)
500         (meta . ((class . Item)
501                  (interfaces . (axis-group-interface
502                                 break-alignment-interface))))))
503
504     (BreathingSign
505      . (
506         (break-align-symbol . breathing-sign)
507         (break-visibility . ,begin-of-line-invisible)
508         (non-musical . #t)
509         (space-alist . (
510                         (ambitus . (extra-space . 2.0))
511                         (custos . (minimum-space . 1.0))
512                         (key-signature . (minimum-space . 1.5))
513                         (time-signature . (minimum-space . 1.5))
514                         (staff-bar . (minimum-space . 1.5))
515                         (clef . (minimum-space . 2.0))
516                         (cue-clef . (minimum-space . 2.0))
517                         (cue-end-clef . (minimum-space . 2.0))
518                         (first-note . (fixed-space . 1.0)) ;huh?
519                         (right-edge . (extra-space . 0.1))))
520         (stencil . ,ly:text-interface::print)
521         (text . ,(make-musicglyph-markup "scripts.rcomma"))
522         (Y-offset . ,ly:breathing-sign::offset-callback)
523         (Y-extent . ,grob::always-Y-extent-from-stencil)
524         (meta . ((class . Item)
525                  (interfaces . (break-aligned-interface
526                                 breathing-sign-interface
527                                 font-interface
528                                 text-interface))))))
529
530     (ChordName
531      . (
532         (after-line-breaking . ,ly:chord-name::after-line-breaking)
533         (font-family . sans)
534         (font-size . 1.5)
535         (stencil . ,ly:text-interface::print)
536         (extra-spacing-height . (0.2 . -0.2))
537         (extra-spacing-width . (-0.5 . 0.5))
538         (word-space . 0.0)
539         (Y-extent . ,grob::always-Y-extent-from-stencil)
540         (meta . ((class . Item)
541                  (interfaces . (chord-name-interface
542                                 font-interface
543                                 rhythmic-grob-interface
544                                 text-interface))))))
545
546     (Clef
547      . (
548         (avoid-slur . inside)
549         (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
550         (break-align-anchor-alignment . ,RIGHT)
551         (break-align-symbol . clef)
552         (break-visibility . ,begin-of-line-visible)
553         (extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height-at-beginning-of-line)
554         (glyph-name . ,ly:clef::calc-glyph-name)
555         (non-musical . #t)
556         (space-alist . ((cue-clef . (extra-space . 2.0))
557                         (staff-bar . (extra-space . 0.7))
558                         (key-cancellation . (minimum-space . 3.5))
559                         (key-signature . (minimum-space . 3.5))
560                         (time-signature . (minimum-space . 4.2))
561                         (first-note . (minimum-fixed-space . 5.0))
562                         (next-note . (extra-space . 1.0))
563                         (right-edge . (extra-space . 0.5))))
564         (stencil . ,ly:clef::print)
565         (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
566         (Y-offset . ,staff-symbol-referencer::callback)
567         (Y-extent . ,grob::always-Y-extent-from-stencil)
568         (meta . ((class . Item)
569                  (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
570                                       (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
571                  (interfaces . (break-aligned-interface
572                                 clef-interface
573                                 font-interface
574                                 pure-from-neighbor-interface
575                                 staff-symbol-referencer-interface))))))
576
577     (ClefModifier
578      . (
579         (break-visibility . ,(grob::inherit-parent-property
580                               X 'break-visibility))
581         (font-shape . italic)
582         (font-size . -4)
583         (transparent . ,(grob::inherit-parent-property
584                          X 'transparent))
585         (color . ,(grob::inherit-parent-property
586                    X 'color))
587         (self-alignment-X . ,CENTER)
588         (staff-padding . 0.2)
589         (stencil . ,ly:text-interface::print)
590         (X-offset . ,(ly:make-simple-closure
591                       `(,+
592                         ,(ly:make-simple-closure
593                           (list ly:self-alignment-interface::x-aligned-on-self))
594                         ,(ly:make-simple-closure
595                           (list ly:self-alignment-interface::centered-on-x-parent)))))
596         (Y-offset . ,side-position-interface::y-aligned-side)
597         (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
598         (Y-extent . ,grob::always-Y-extent-from-stencil)
599         (meta . ((class . Item)
600                  (interfaces . (clef-modifier-interface
601                                 font-interface
602                                 self-alignment-interface
603                                 side-position-interface
604                                 text-interface))))))
605
606     (ClusterSpanner
607      . (
608         (cross-staff . ,ly:cluster::calc-cross-staff)
609         (minimum-length . 0.0)
610         (padding . 0.25)
611         (springs-and-rods . ,ly:spanner::set-spacing-rods)
612         (stencil . ,ly:cluster::print)
613         (style . ramp)
614         (meta . ((class . Spanner)
615                  (interfaces . (cluster-interface))))))
616
617     (ClusterSpannerBeacon
618      . (
619         (Y-extent . ,ly:cluster-beacon::height)
620         (meta . ((class . Item)
621                  (interfaces . (cluster-beacon-interface
622                                 rhythmic-grob-interface))))))
623
624     (CombineTextScript
625      . (
626         (avoid-slur . outside)
627         (baseline-skip . 2)
628         (direction . ,UP)
629         (extra-spacing-width . (+inf.0 . -inf.0))
630         (font-series . bold)
631         (outside-staff-priority . 450)
632         (padding . 0.5)
633         (script-priority . 200)
634         (side-axis . ,Y)
635         (staff-padding . 0.5)
636         ;; todo: add X self alignment?
637         (stencil . ,ly:text-interface::print)
638         (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
639         (Y-offset . ,side-position-interface::y-aligned-side)
640         (Y-extent . ,grob::always-Y-extent-from-stencil)
641         (meta . ((class . Item)
642                  (interfaces . (font-interface
643                                 side-position-interface
644                                 text-interface
645                                 text-script-interface))))))
646
647     (CueClef
648      . (
649         (avoid-slur . inside)
650         (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
651         (break-align-symbol . cue-clef)
652         (break-visibility . ,begin-of-line-visible)
653         (extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height-at-beginning-of-line)
654         (font-size . -4)
655         (glyph-name . ,ly:clef::calc-glyph-name)
656         (non-musical . #t)
657         (full-size-change . #t)
658         (space-alist . ((staff-bar . (minimum-space . 2.7))
659                         (key-cancellation . (minimum-space . 3.5))
660                         (key-signature . (minimum-space . 3.5))
661                         (time-signature . (minimum-space . 4.2))
662                         (custos . (minimum-space . 0.0))
663                         (first-note . (minimum-fixed-space . 3.0))
664                         (next-note . (extra-space . 1.0))
665                         (right-edge . (extra-space . 0.5))))
666         (stencil . ,ly:clef::print)
667         (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
668         (Y-offset . ,staff-symbol-referencer::callback)
669         (Y-extent . ,grob::always-Y-extent-from-stencil)
670         (meta . ((class . Item)
671                  (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
672                                       (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
673                  (interfaces . (break-aligned-interface
674                                 clef-interface
675                                 font-interface
676                                 pure-from-neighbor-interface
677                                 staff-symbol-referencer-interface))))))
678
679     (CueEndClef
680      . (
681         (avoid-slur . inside)
682         (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
683         (break-align-symbol . cue-end-clef)
684         (break-visibility . ,begin-of-line-invisible)
685         (extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height-at-beginning-of-line)
686         (font-size . -4)
687         (glyph-name . ,ly:clef::calc-glyph-name)
688         (non-musical . #t)
689         (full-size-change . #t)
690         (space-alist . ((clef . (extra-space . 0.7))
691                         (cue-clef . (extra-space . 0.7))
692                         (staff-bar . (extra-space . 0.7))
693                         (key-cancellation . (minimum-space . 3.5))
694                         (key-signature . (minimum-space . 3.5))
695                         (time-signature . (minimum-space . 4.2))
696                         (first-note . (minimum-fixed-space . 5.0))
697                         (next-note . (extra-space . 1.0))
698                         (right-edge . (extra-space . 0.5))))
699         (stencil . ,ly:clef::print)
700         (Y-offset . ,staff-symbol-referencer::callback)
701         (Y-extent . ,grob::always-Y-extent-from-stencil)
702         (meta . ((class . Item)
703                  (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
704                                       (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
705                  (interfaces . (break-aligned-interface
706                                 clef-interface
707                                 font-interface
708                                 pure-from-neighbor-interface
709                                 staff-symbol-referencer-interface))))))
710
711     (Custos
712      . (
713         (break-align-symbol . custos)
714         (break-visibility . ,end-of-line-visible)
715         (neutral-direction . ,DOWN)
716         (non-musical . #t)
717         (space-alist . (
718                         (first-note . (minimum-fixed-space . 0.0))
719                         (right-edge . (extra-space . 0.1))))
720         (stencil . ,ly:custos::print)
721         (style . vaticana)
722         (Y-offset . ,staff-symbol-referencer::callback)
723         (meta . ((class . Item)
724                  (interfaces  . (break-aligned-interface
725                                  custos-interface
726                                  font-interface
727                                  staff-symbol-referencer-interface))))))
728
729     (DotColumn
730      . (
731         (axes . (,X))
732         (direction . ,RIGHT)
733         (positioning-done . ,ly:dot-column::calc-positioning-done)
734         (X-extent . ,ly:axis-group-interface::width)
735         (meta . ((class . Item)
736                  (interfaces . (axis-group-interface
737                                 dot-column-interface))))))
738
739     (Dots
740      . (
741         (avoid-slur . inside)
742         (dot-count . ,dots::calc-dot-count)
743         (staff-position . ,dots::calc-staff-position)
744         (stencil . ,ly:dots::print)
745         (Y-extent . ,grob::always-Y-extent-from-stencil)
746         (extra-spacing-height . (-0.5 . 0.5))
747         (meta . ((class . Item)
748                  (interfaces . (dots-interface
749                                 font-interface
750                                 staff-symbol-referencer-interface))))))
751
752     (DoublePercentRepeat
753      . (
754         (break-align-symbol . staff-bar)
755         (break-visibility . ,begin-of-line-invisible)
756         (dot-negative-kern . 0.75)
757         (font-encoding . fetaMusic)
758         (non-musical . #t)
759         (slash-negative-kern . 1.6)
760         (slope . 1.0)
761         (stencil . ,ly:percent-repeat-item-interface::double-percent)
762         (Y-extent . ,grob::always-Y-extent-from-stencil)
763         (thickness . 0.48)
764         (meta . ((class . Item)
765                  (interfaces . (break-aligned-interface
766                                 font-interface
767                                 percent-repeat-interface
768                                 percent-repeat-item-interface))))))
769
770     (DoublePercentRepeatCounter
771      . (
772         (direction . ,UP)
773         (font-encoding . fetaText)
774         (font-size . -2)
775         (padding . 0.2)
776         (self-alignment-X . ,CENTER)
777         (side-axis . ,Y)
778         (staff-padding . 0.25)
779         (stencil . ,ly:text-interface::print)
780         (X-offset . ,(ly:make-simple-closure
781                       `(,+
782                         ,(ly:make-simple-closure
783                           (list ly:self-alignment-interface::centered-on-y-parent))
784                         ,(ly:make-simple-closure
785                           (list ly:self-alignment-interface::x-aligned-on-self)))))
786         (Y-offset . ,side-position-interface::y-aligned-side)
787         (Y-extent . ,grob::always-Y-extent-from-stencil)
788         (meta . ((class . Item)
789                  (interfaces . (font-interface
790                                 percent-repeat-interface
791                                 percent-repeat-item-interface
792                                 self-alignment-interface
793                                 side-position-interface
794                                 text-interface))))))
795
796     (DoubleRepeatSlash
797      . (
798         (dot-negative-kern . 0.75)
799         (font-encoding . fetaMusic)
800         (slash-negative-kern . 1.6)
801         (slope . 1.0)
802         (stencil . ,ly:percent-repeat-item-interface::beat-slash)
803         (Y-extent . ,grob::always-Y-extent-from-stencil)
804         (thickness . 0.48)
805         (meta . ((class . Item)
806                  (interfaces . (font-interface
807                                 percent-repeat-interface
808                                 percent-repeat-item-interface
809                                 rhythmic-grob-interface))))))
810
811     (DynamicLineSpanner
812      . (
813         (axes . (,Y))
814         (cross-staff . ,ly:side-position-interface::calc-cross-staff)
815         (direction . ,DOWN)
816         (minimum-space . 1.2)
817         (outside-staff-priority . 250)
818         (padding . 0.6)
819         (side-axis . ,Y)
820         (slur-padding . 0.3)
821         (staff-padding . 0.1)
822         (vertical-skylines . ,grob::always-vertical-skylines-from-element-stencils)
823         (X-extent . ,ly:axis-group-interface::width)
824         (Y-extent . ,axis-group-interface::height)
825         (Y-offset . ,side-position-interface::y-aligned-side)
826         (meta . ((class . Spanner)
827                  (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
828                                       (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
829                  (interfaces . (axis-group-interface
830                                 dynamic-interface
831                                 dynamic-line-spanner-interface
832                                 side-position-interface))))))
833
834     (DynamicText
835      . (
836
837         ;; todo.
838
839         (collision-bias . -2.0)
840         (collision-padding . 0.5)
841         (direction . ,ly:script-interface::calc-direction)
842         (extra-spacing-width . (+inf.0 . -inf.0))
843         (font-encoding . fetaText)
844         (font-series . bold)
845         (font-shape . italic)
846         (positioning-done . ,ly:script-interface::calc-positioning-done)
847         (right-padding . 0.5)
848         (self-alignment-X . ,CENTER)
849         (self-alignment-Y . ,CENTER)
850         (stencil . ,ly:text-interface::print)
851         (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
852         (Y-extent . ,grob::always-Y-extent-from-stencil)
853         (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
854         (Y-offset . ,self-alignment-interface::y-aligned-on-self)
855         (meta . ((class . Item)
856                  (interfaces . (dynamic-interface
857                                 dynamic-text-interface
858                                 font-interface
859                                 script-interface
860                                 self-alignment-interface
861                                 text-interface))))))
862
863     (DynamicTextSpanner
864      . (
865         (before-line-breaking . ,dynamic-text-spanner::before-line-breaking)
866         (bound-details . ((right . ((attach-dir .  ,LEFT)
867                                     (Y . 0)
868                                     (padding . 0.75)
869                                     ))
870                           (right-broken . ((attach-dir .  ,RIGHT)
871                                            (padding . 0.0)
872                                            ))
873
874                           (left . ((attach-dir .  ,LEFT)
875                                    (Y . 0)
876                                    (stencil-offset . (-0.75 . -0.5))
877                                    (padding . 0.75)
878                                    ))
879                           (left-broken . ((attach-dir .  ,RIGHT)
880                                           ))
881                           ))
882         (dash-fraction . 0.2)
883         (dash-period . 3.0)
884
885         ;; rather ugh with NCSB
886         ;; (font-series . bold)
887         (font-shape . italic)
888
889         ;; need to blend with dynamic texts.
890         (font-size . 1)
891
892         (left-bound-info . ,ly:line-spanner::calc-left-bound-info-and-text)
893
894         (minimum-length . 2.0)
895         ;; make sure the spanner doesn't get too close to notes
896         (minimum-Y-extent . (-1 . 1))
897
898         (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
899         (skyline-horizontal-padding . 0.2)
900         (springs-and-rods . ,ly:spanner::set-spacing-rods)
901         (stencil . ,ly:line-spanner::print)
902         (style . dashed-line)
903         (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
904         (meta . ((class . Spanner)
905                  (interfaces . (dynamic-interface
906                                 dynamic-text-spanner-interface
907                                 font-interface
908                                 line-interface
909                                 line-spanner-interface
910                                 spanner-interface
911                                 text-interface))))))
912
913
914     (Episema
915      . (
916         (bound-details . ((left . ((Y . 0)
917                                    (padding . 0)
918                                    (attach-dir . ,LEFT)
919                                    ))
920                           (right . ((Y . 0)
921                                     (padding . 0)
922                                     (attach-dir . ,RIGHT)
923                                     ))
924                           ))
925         (direction . ,UP)
926         (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
927         (quantize-position . #t)
928         (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
929         (side-axis . ,Y)
930         (stencil . ,ly:line-spanner::print)
931         (style . line)
932         (Y-offset . ,side-position-interface::y-aligned-side)
933         (meta . ((class . Spanner)
934                  (interfaces . (episema-interface
935                                 font-interface
936                                 line-interface
937                                 line-spanner-interface
938                                 side-position-interface))))))
939
940
941     (Fingering
942      . (
943
944         ;; sync with TextScript (?)
945         (add-stem-support . ,only-if-beamed)
946         (avoid-slur . around)
947         (cross-staff . ,script-or-side-position-cross-staff)
948         (direction . ,ly:script-interface::calc-direction)
949         (font-encoding . fetaText)
950         (font-size . -5)                ; don't overlap when next to heads.
951         (padding . 0.5)
952         (positioning-done . ,ly:script-interface::calc-positioning-done)
953         (script-priority . 100)
954         (self-alignment-X . ,CENTER)
955         (self-alignment-Y . ,CENTER)
956         (slur-padding . 0.2)
957         (staff-padding . 0.5)
958         (stencil . ,ly:text-interface::print)
959         (text . ,fingering::calc-text)
960         (Y-extent . ,grob::always-Y-extent-from-stencil)
961         (meta . ((class . Item)
962                  (interfaces . (finger-interface
963                                 font-interface
964                                 self-alignment-interface
965                                 side-position-interface
966                                 text-interface
967                                 text-script-interface))))))
968
969     (FingeringColumn
970      . (
971         (padding . 0.2)
972         (positioning-done . ,ly:fingering-column::calc-positioning-done)
973         (snap-radius . 0.3)
974         (meta . ((class . Item)
975                  (interfaces . (fingering-column-interface))))))
976
977     (Flag
978      . (
979         (glyph-name . ,ly:flag::glyph-name)
980         (stencil . ,ly:flag::print)
981         (transparent . ,(grob::inherit-parent-property
982                          X 'transparent))
983         (color . ,(grob::inherit-parent-property
984                    X 'color))
985         (X-extent . ,ly:flag::width)
986         (X-offset . ,ly:flag::calc-x-offset)
987         (Y-offset . ,(ly:make-unpure-pure-container ly:flag::calc-y-offset ly:flag::pure-calc-y-offset))
988         (Y-extent . ,grob::always-Y-extent-from-stencil)
989         (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
990         (meta . ((class . Item)
991                  (interfaces . (flag-interface
992                                 font-interface))))))
993
994     (FootnoteItem
995      . (
996         (annotation-balloon . #f)
997         (annotation-line . #t)
998         (automatically-numbered . ,(grob::calc-property-by-copy 'automatically-numbered))
999         (break-visibility . ,(grob::inherit-parent-property
1000                               X 'break-visibility))
1001         (footnote . #t)
1002         (footnote-text . ,(grob::calc-property-by-copy 'footnote-text))
1003         (stencil . ,ly:balloon-interface::print)
1004         (text . ,(grob::calc-property-by-copy 'text))
1005         (X-extent . #f)
1006         (Y-extent . #f)
1007         (X-offset . ,(grob::calc-property-by-copy 'X-offset))
1008         (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
1009         (meta . ((class . Item)
1010                  (interfaces . (balloon-interface
1011                                 footnote-interface
1012                                 font-interface
1013                                 text-interface))))))
1014
1015     (FootnoteSpanner
1016      . (
1017         (annotation-balloon . #f)
1018         (annotation-line . #t)
1019         (automatically-numbered . ,(grob::calc-property-by-copy 'automatically-numbered))
1020         (footnote . #t)
1021         (footnote-text . ,(grob::calc-property-by-copy 'footnote-text))
1022         (spanner-placement . ,LEFT)
1023         (stencil . ,ly:balloon-interface::print-spanner)
1024         (text . ,(grob::calc-property-by-copy 'text))
1025         (X-extent . #f)
1026         (Y-extent . #f)
1027         (X-offset . ,(grob::calc-property-by-copy 'X-offset))
1028         (Y-offset . ,(grob::calc-property-by-copy 'Y-offset))
1029         (meta . ((class . Spanner)
1030                  (interfaces . (balloon-interface
1031                                 footnote-interface
1032                                 footnote-spanner-interface
1033                                 font-interface
1034                                 text-interface))))))
1035
1036     (FretBoard
1037      . (
1038         (after-line-breaking . ,ly:chord-name::after-line-breaking)
1039         (fret-diagram-details . ((finger-code . below-string)))
1040         (stencil . ,fret-board::calc-stencil)
1041         (extra-spacing-height . (0.2 . -0.2))
1042         (extra-spacing-width . (-0.5 . 0.5))
1043         (Y-extent . ,grob::always-Y-extent-from-stencil)
1044         (meta . ((class . Item)
1045                  (interfaces . (chord-name-interface
1046                                 font-interface
1047                                 fret-diagram-interface
1048                                 rhythmic-grob-interface))))))
1049
1050
1051     (Glissando
1052      . (
1053         (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
1054         (bound-details . ((right . ((attach-dir .  ,LEFT)
1055                                     (end-on-accidental . #t)
1056                                     (padding . 0.5)
1057                                     ))
1058                           (left . ((attach-dir .  ,RIGHT)
1059                                    (padding . 0.5)
1060                                    ))
1061                           ))
1062         (cross-staff . ,ly:line-spanner::calc-cross-staff)
1063         (gap . 0.5)
1064         (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
1065         (normalized-endpoints . ,ly:spanner::calc-normalized-endpoints)
1066         (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
1067         (simple-Y . #t)
1068         (stencil . ,ly:line-spanner::print)
1069         (style . line)
1070         (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
1071         (X-extent . #f)
1072         (Y-extent . #f)
1073         (zigzag-width . 0.75)
1074         (meta . ((class . Spanner)
1075                  (interfaces . (glissando-interface
1076                                 line-interface
1077                                 line-spanner-interface
1078                                 unbreakable-spanner-interface))))))
1079
1080     (GraceSpacing
1081      . (
1082         (common-shortest-duration . ,grace-spacing::calc-shortest-duration)
1083         (shortest-duration-space . 1.6)
1084         (spacing-increment . 0.8)
1085         (meta . ((class . Spanner)
1086                  (interfaces . (grace-spacing-interface
1087                                 spacing-options-interface
1088                                 spanner-interface))))))
1089
1090     (GridLine
1091      . (
1092         (layer . 0)
1093         (self-alignment-X . ,CENTER)
1094         (stencil . ,ly:grid-line-interface::print)
1095         (X-extent  . ,ly:grid-line-interface::width)
1096         (X-offset . ,(ly:make-simple-closure
1097                       `(,+
1098                         ,(ly:make-simple-closure
1099                           (list ly:self-alignment-interface::centered-on-x-parent))
1100                         ,(ly:make-simple-closure
1101                           (list ly:self-alignment-interface::x-aligned-on-self)))))
1102         (meta . ((class . Item)
1103                  (interfaces . (grid-line-interface
1104                                 self-alignment-interface))))))
1105
1106     (GridPoint
1107      . (
1108         (X-extent . (0 . 0))
1109         (Y-extent . (0 . 0))
1110         (meta . ((class . Item)
1111                  (interfaces . (grid-point-interface))))))
1112
1113
1114     (Hairpin
1115      . (
1116         (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
1117         (bound-padding . 1.0)
1118         (broken-bound-padding . ,ly:hairpin::broken-bound-padding)
1119         (circled-tip . #f)
1120         (grow-direction . ,hairpin::calc-grow-direction)
1121         (height . 0.6666)
1122         (minimum-length . 2.0)
1123         (self-alignment-Y . ,CENTER)
1124         (springs-and-rods . ,ly:spanner::set-spacing-rods)
1125         (stencil . ,ly:hairpin::print)
1126         (thickness . 1.0)
1127         (to-barline . #t)
1128         (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
1129         (Y-extent . ,(grob::unpure-Y-extent-from-stencil ly:hairpin::pure-height))
1130         (Y-offset . ,self-alignment-interface::y-aligned-on-self)
1131         (meta . ((class . Spanner)
1132                  (interfaces . (dynamic-interface
1133                                 hairpin-interface
1134                                 line-interface
1135                                 self-alignment-interface
1136                                 spanner-interface))))))
1137
1138     (HorizontalBracket
1139      . (
1140         (bracket-flare . (0.5 . 0.5))
1141         (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
1142         (direction . ,DOWN)
1143         (padding . 0.2)
1144         (side-axis . ,Y)
1145         (staff-padding . 0.2)
1146         (stencil . ,ly:horizontal-bracket::print)
1147         (thickness . 1.0)
1148         (Y-offset . ,side-position-interface::y-aligned-side)
1149         (meta . ((class . Spanner)
1150                  (interfaces . (horizontal-bracket-interface
1151                                 line-interface
1152                                 side-position-interface
1153                                 spanner-interface))))))
1154
1155
1156     (InstrumentName
1157      . (
1158         (direction . ,LEFT)
1159         (padding . 0.3)
1160         (self-alignment-X . ,CENTER)
1161         (self-alignment-Y . ,CENTER)
1162         (stencil . ,system-start-text::print)
1163         (X-offset . ,system-start-text::calc-x-offset)
1164         (Y-offset . ,system-start-text::calc-y-offset)
1165         (meta . ((class . Spanner)
1166                  (interfaces . (font-interface
1167                                 self-alignment-interface
1168                                 side-position-interface
1169                                 system-start-text-interface))))))
1170
1171     (InstrumentSwitch
1172      . (
1173         (direction . ,UP)
1174         (extra-spacing-width . (+inf.0 . -inf.0))
1175         (outside-staff-priority . 500)
1176         (padding . 0.5)
1177         (self-alignment-X . ,LEFT)
1178         (side-axis . ,Y)
1179         (staff-padding . 0.5)
1180         (stencil . ,ly:text-interface::print)
1181         (Y-extent . ,grob::always-Y-extent-from-stencil)
1182         (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1183         (Y-offset . ,side-position-interface::y-aligned-side)
1184         (meta . ((class . Item)
1185                  (interfaces . (font-interface
1186                                 self-alignment-interface
1187                                 side-position-interface
1188                                 text-interface))))))
1189
1190
1191     (KeyCancellation
1192      . (
1193         (break-align-symbol . key-cancellation)
1194         (break-visibility . ,begin-of-line-invisible)
1195         (glyph-name-alist . ,cancellation-glyph-name-alist)
1196         (non-musical . #t)
1197         (flat-positions . (2 3 4 2 1 2 1))
1198         (sharp-positions . (4 5 4 2 3 2 3))
1199         (space-alist . (
1200                         (time-signature . (extra-space . 1.25))
1201                         (staff-bar . (extra-space . 0.6))
1202                         (key-signature . (extra-space . 0.5))
1203                         (cue-clef . (extra-space . 0.5))
1204                         (right-edge . (extra-space . 0.5))
1205                         (first-note . (fixed-space . 2.5))))
1206         (stencil . ,ly:key-signature-interface::print)
1207         (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
1208         (Y-extent . ,grob::always-Y-extent-from-stencil)
1209         (extra-spacing-width . (0.0 . 1.0))
1210         (extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height-including-staff)
1211         (Y-offset . ,staff-symbol-referencer::callback)
1212         (meta . ((class . Item)
1213                  (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1214                                       (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
1215                  (interfaces . (break-aligned-interface
1216                                 font-interface
1217                                 key-cancellation-interface
1218                                 key-signature-interface
1219                                 pure-from-neighbor-interface
1220                                 staff-symbol-referencer-interface))))))
1221
1222     (KeySignature
1223      . (
1224         (avoid-slur . inside)
1225         (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1226         (break-align-anchor-alignment . ,RIGHT)
1227         (break-align-symbol . key-signature)
1228         (break-visibility . ,begin-of-line-visible)
1229         (glyph-name-alist . ,standard-alteration-glyph-name-alist)
1230         (non-musical . #t)
1231         (flat-positions . (2 3 4 2 1 2 1))
1232         (sharp-positions . (4 5 4 2 3 2 3))
1233         (space-alist . (
1234                         (time-signature . (extra-space . 1.15))
1235                         (staff-bar . (extra-space . 1.1))
1236                         (cue-clef . (extra-space . 0.5))
1237                         (right-edge . (extra-space . 0.5))
1238                         (first-note . (fixed-space . 2.5))))
1239         (stencil . ,ly:key-signature-interface::print)
1240         (Y-extent . ,grob::always-Y-extent-from-stencil)
1241         (extra-spacing-width . (0.0 . 1.0))
1242         (extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height-including-staff)
1243         (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
1244         (Y-offset . ,staff-symbol-referencer::callback)
1245         (meta . ((class . Item)
1246                  (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1247                                       (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
1248                  (interfaces . (break-aligned-interface
1249                                 font-interface
1250                                 key-signature-interface
1251                                 pure-from-neighbor-interface
1252                                 staff-symbol-referencer-interface))))))
1253
1254     (KievanLigature
1255      . (
1256         (springs-and-rods . ,ly:spanner::set-spacing-rods)
1257         (stencil . ,ly:kievan-ligature::print)
1258         (padding . 0.5)
1259         (meta . ((class . Spanner)
1260                  (interfaces . (font-interface
1261                                 kievan-ligature-interface))))))
1262
1263     (LaissezVibrerTie
1264      . (
1265         (control-points . ,ly:semi-tie::calc-control-points)
1266         (cross-staff . ,semi-tie::calc-cross-staff)
1267         (details . ((ratio . 0.333)
1268                     (height-limit . 1.0)))
1269         (direction . ,ly:tie::calc-direction)
1270         (head-direction . ,LEFT)
1271         (stencil  . ,laissez-vibrer::print)
1272         (thickness . 1.0)
1273         (extra-spacing-height . (-0.5 . 0.5))
1274         (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
1275         (Y-extent . ,grob::always-Y-extent-from-stencil)
1276         (meta . ((class . Item)
1277                  (interfaces . (semi-tie-interface))))))
1278
1279     (LaissezVibrerTieColumn
1280      . (
1281         (head-direction . ,ly:semi-tie-column::calc-head-direction)
1282         (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1283         (X-extent . #f)
1284         (Y-extent . #f)
1285         (meta . ((class . Item)
1286                  (interfaces . (semi-tie-column-interface))))))
1287
1288     (LedgerLineSpanner
1289      . (
1290         (layer . 0)
1291         (length-fraction . 0.25)
1292         (minimum-length-fraction . 0.25)
1293         (springs-and-rods . ,ly:ledger-line-spanner::set-spacing-rods)
1294         (stencil . ,ly:ledger-line-spanner::print)
1295         (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
1296         (X-extent . #f)
1297         (Y-extent . #f)
1298         (meta . ((class . Spanner)
1299                  (interfaces . (ledger-line-spanner-interface))))))
1300
1301     (LeftEdge
1302      . (
1303         (break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
1304         (break-align-symbol . left-edge)
1305         (break-visibility . ,center-invisible)
1306         (non-musical . #t)
1307         (extra-spacing-height . (+inf.0 . -inf.0))
1308         (space-alist . (
1309                         (ambitus . (extra-space . 2.0))
1310                         (breathing-sign . (minimum-space . 0.0))
1311                         (cue-end-clef . (extra-space . 0.8))
1312                         (clef . (extra-space . 0.8))
1313                         (cue-clef . (extra-space . 0.8))
1314                         (staff-bar . (extra-space . 0.0))
1315                         (key-cancellation . (extra-space . 0.0))
1316                         (key-signature . (extra-space . 0.8))
1317                         (time-signature . (extra-space . 1.0))
1318                         (custos . (extra-space . 0.0))
1319                         (first-note . (fixed-space . 2.0))
1320                         (right-edge . (extra-space . 0.0))
1321                         ))
1322         (X-extent . (0 . 0))
1323         (meta . ((class . Item)
1324                  (interfaces . (break-aligned-interface))))))
1325
1326     (LigatureBracket
1327      . (
1328         ;; ugh.  A ligature bracket is totally different from
1329         ;; a tuplet bracket.
1330
1331         (bracket-visibility . #t)
1332         (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
1333         (direction . ,UP)
1334         (edge-height . (0.7 . 0.7))
1335         (padding . 2.0)
1336         (positions . ,ly:tuplet-bracket::calc-positions)
1337         (shorten-pair . (-0.2 . -0.2))
1338         (staff-padding . 0.25)
1339         (stencil . ,ly:tuplet-bracket::print)
1340         (thickness . 1.6)
1341         (X-positions . ,ly:tuplet-bracket::calc-x-positions)
1342         (meta . ((class . Spanner)
1343                  (interfaces . (line-interface
1344                                 tuplet-bracket-interface))))))
1345
1346     (LyricExtender
1347      . (
1348         (minimum-length . 1.5)
1349         (stencil . ,ly:lyric-extender::print)
1350         (thickness . 0.8) ; line-thickness
1351         (Y-extent . (0 . 0))
1352         (meta . ((class . Spanner)
1353                  (interfaces . (lyric-extender-interface
1354                                 lyric-interface))))))
1355
1356     (LyricHyphen
1357      . (
1358         (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
1359         (dash-period . 10.0)
1360         (height . 0.42)
1361         (length . 0.66)
1362         (minimum-distance . 0.1)
1363         (minimum-length . 0.3)
1364         (padding . 0.07)
1365         (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1366         (stencil . ,ly:lyric-hyphen::print)
1367         (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
1368         (thickness . 1.3)
1369         (Y-extent . (0 . 0))
1370         (meta . ((class . Spanner)
1371                  (interfaces . (font-interface
1372                                 lyric-hyphen-interface
1373                                 lyric-interface
1374                                 spanner-interface))))))
1375
1376     (LyricSpace
1377      . (
1378         (minimum-distance . 0.45)
1379         (padding . 0.0)
1380         (springs-and-rods . ,ly:lyric-hyphen::set-spacing-rods)
1381         (X-extent . #f)
1382         (Y-extent . #f)
1383         (meta . ((class . Spanner)
1384                  (interfaces . (lyric-hyphen-interface
1385                                 spanner-interface))))))
1386
1387     (LyricText
1388      . (
1389         (extra-spacing-width . (0.0 . 0.0))
1390         ;; Recede in height for purposes of note spacing,
1391         ;; so notes in melismata can be freely spaced above lyrics
1392         (extra-spacing-height . (0.2 . -0.2))
1393         (font-series . medium)
1394         (font-size . 1.0)
1395         (self-alignment-X . ,CENTER)
1396         (stencil . ,lyric-text::print)
1397         (text . ,(grob::calc-property-by-copy 'text))
1398         (word-space . 0.6)
1399         (skyline-horizontal-padding . 0.1)
1400         (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
1401         (X-offset . ,ly:self-alignment-interface::aligned-on-x-parent)
1402         (Y-extent . ,grob::always-Y-extent-from-stencil)
1403         (meta . ((class . Item)
1404                  (interfaces . (font-interface
1405                                 lyric-syllable-interface
1406                                 rhythmic-grob-interface
1407                                 self-alignment-interface
1408                                 text-interface))))))
1409
1410     (MeasureCounter
1411      . (
1412         (count-from . 1)
1413         (direction . ,UP)
1414         (font-encoding . fetaText)
1415         (font-size . -2)
1416         (outside-staff-horizontal-padding . 0.5)
1417         (outside-staff-priority . 750)
1418         (self-alignment-X . ,CENTER)
1419         (side-axis . ,Y)
1420         (staff-padding . 0.5)
1421         (stencil . ,measure-counter-stencil)
1422         (meta . ((class . Spanner)
1423                  (interfaces . (font-interface
1424                                 measure-counter-interface
1425                                 self-alignment-interface
1426                                 side-position-interface
1427                                 text-interface))))))
1428
1429     (MeasureGrouping
1430      . (
1431         (direction . ,UP)
1432         (height . 2.0)
1433         (padding . 2)
1434         (side-axis . ,Y)
1435         (staff-padding . 3)
1436         (stencil . ,ly:measure-grouping::print)
1437         (thickness . 1)
1438         (Y-offset . ,side-position-interface::y-aligned-side)
1439         (meta . ((class . Spanner)
1440                  (interfaces . (measure-grouping-interface
1441                                 side-position-interface))))))
1442
1443     (MelodyItem
1444      . (
1445         (neutral-direction . ,DOWN)
1446         (meta . ((class . Item)
1447                  (interfaces . (melody-spanner-interface))))))
1448
1449     (MensuralLigature
1450      . (
1451         (springs-and-rods . ,ly:spanner::set-spacing-rods)
1452         (stencil . ,ly:mensural-ligature::print)
1453         (thickness . 1.3)
1454         (meta . ((class . Spanner)
1455                  (interfaces . (font-interface
1456                                 mensural-ligature-interface))))))
1457
1458     (MetronomeMark
1459      . (
1460         (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1461         (break-visibility . ,end-of-line-invisible)
1462         (direction . ,UP)
1463         (extra-spacing-width . (+inf.0 . -inf.0))
1464         (outside-staff-horizontal-padding . 0.2)
1465         (outside-staff-priority . 1000)
1466         (padding . 0.8)
1467         (side-axis . ,Y)
1468         (stencil . ,ly:text-interface::print)
1469         (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
1470         (Y-offset . ,side-position-interface::y-aligned-side)
1471         (X-offset . ,(ly:make-simple-closure
1472                       `(,+
1473                         ,(ly:make-simple-closure
1474                           (list ly:break-alignable-interface::self-align-callback))
1475                         ,(ly:make-simple-closure
1476                           (list ly:self-alignment-interface::x-aligned-on-self)))))
1477         (self-alignment-X . ,LEFT)
1478         (break-align-symbols . (time-signature))
1479         (non-break-align-symbols . (paper-column-interface))
1480         (Y-extent . ,grob::always-Y-extent-from-stencil)
1481         (meta . ((class . Item)
1482                  (interfaces . (break-alignable-interface
1483                                 font-interface
1484                                 metronome-mark-interface
1485                                 self-alignment-interface
1486                                 side-position-interface
1487                                 text-interface))))))
1488
1489     (MultiMeasureRest
1490      . (
1491         (expand-limit . 10)
1492         (hair-thickness . 2.0)
1493         (round-up-exceptions . ())
1494         (padding . 1)
1495         (spacing-pair . (break-alignment . break-alignment))
1496         (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1497         (stencil . ,ly:multi-measure-rest::print)
1498         (thick-thickness . 6.6)
1499         ;; See Wanske pp. 125
1500         (usable-duration-logs . ,(iota 4 -3))
1501         (Y-extent . ,(ly:make-unpure-pure-container ly:multi-measure-rest::height))
1502         (Y-offset . ,staff-symbol-referencer::callback)
1503         (meta . ((class . Spanner)
1504                  (interfaces . (font-interface
1505                                 multi-measure-interface
1506                                 multi-measure-rest-interface
1507                                 rest-interface
1508                                 staff-symbol-referencer-interface))))))
1509
1510     (MultiMeasureRestNumber
1511      . (
1512         (bound-padding  . 2.0)
1513         (direction . ,UP)
1514         (font-encoding . fetaText)
1515         (padding . 0.4)
1516         (self-alignment-X . ,CENTER)
1517         (side-axis . ,Y)
1518         (springs-and-rods . ,ly:multi-measure-rest::set-text-rods)
1519         (staff-padding . 0.4)
1520         (stencil . ,ly:text-interface::print)
1521         (X-offset . ,(ly:make-simple-closure
1522                       `(,+
1523                         ,(ly:make-simple-closure
1524                           (list ly:self-alignment-interface::x-aligned-on-self))
1525                         ,(ly:make-simple-closure
1526                           (list ly:self-alignment-interface::x-centered-on-y-parent)))))
1527         (Y-offset . ,side-position-interface::y-aligned-side)
1528         (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
1529         (Y-extent . ,grob::always-Y-extent-from-stencil)
1530         (meta . ((class . Spanner)
1531                  (interfaces . (font-interface
1532                                 multi-measure-interface
1533                                 self-alignment-interface
1534                                 side-position-interface
1535                                 text-interface))))))
1536
1537     (MultiMeasureRestText
1538      . (
1539         (direction . ,UP)
1540         (outside-staff-priority . 450)
1541         (padding . 0.2)
1542         (self-alignment-X . ,CENTER)
1543         (skyline-horizontal-padding . 0.2)
1544         (staff-padding . 0.25)
1545         (stencil . ,ly:text-interface::print)
1546         (X-offset . ,(ly:make-simple-closure
1547                       `(,+
1548                         ,(ly:make-simple-closure
1549                           (list ly:self-alignment-interface::x-centered-on-y-parent))
1550                         ,(ly:make-simple-closure
1551                           (list ly:self-alignment-interface::x-aligned-on-self)))))
1552         (Y-offset . ,side-position-interface::y-aligned-side)
1553         (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
1554         (Y-extent . ,grob::always-Y-extent-from-stencil)
1555         (meta . ((class . Spanner)
1556                  (interfaces . (font-interface
1557                                 multi-measure-interface
1558                                 self-alignment-interface
1559                                 side-position-interface
1560                                 text-interface))))))
1561
1562
1563     (NonMusicalPaperColumn
1564      . (
1565         (allow-loose-spacing . #t)
1566         (axes . (,X))
1567         (before-line-breaking . ,ly:paper-column::before-line-breaking)
1568         (bound-alignment-interfaces . (break-alignment-interface))
1569         (full-measure-extra-space . 1.0)
1570         (horizontal-skylines . ,ly:separation-item::calc-skylines)
1571         ;;                    (stencil . ,ly:paper-column::print)
1572
1573         (keep-inside-line . #t)
1574         (line-break-permission . allow)
1575         (non-musical . #t)
1576         (page-break-permission . allow)
1577
1578         ;; debugging stuff: print column number.
1579         ;;               (font-size . -6) (font-name . "sans")  (Y-extent . #f)
1580
1581         (X-extent . ,ly:axis-group-interface::width)
1582         (meta . ((class . Paper_column)
1583                  (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1584                                       (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1585                  (interfaces . (axis-group-interface
1586                                 font-interface
1587                                 paper-column-interface
1588                                 separation-item-interface
1589                                 spaceable-grob-interface))))))
1590
1591     (NoteCollision
1592      . (
1593         (axes . (,X ,Y))
1594         (positioning-done . ,ly:note-collision-interface::calc-positioning-done)
1595         (prefer-dotted-right . #t)
1596         (X-extent . ,ly:axis-group-interface::width)
1597         (Y-extent . ,axis-group-interface::height)
1598         (meta . ((class . Item)
1599                  (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1600                                       (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1601                  (interfaces . (axis-group-interface
1602                                 note-collision-interface))))))
1603
1604     (NoteColumn
1605      . (
1606         (axes . (,X ,Y))
1607         (bound-alignment-interfaces . (rhythmic-head-interface stem-interface))
1608         (horizontal-skylines . ,ly:separation-item::calc-skylines)
1609         (skyline-vertical-padding . 0.15)
1610         (X-extent . ,ly:axis-group-interface::width)
1611         (Y-extent . ,axis-group-interface::height)
1612         (meta . ((class . Item)
1613                  (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1614                                       (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1615                  (interfaces . (axis-group-interface
1616                                 note-column-interface
1617                                 separation-item-interface))))))
1618
1619     (NoteHead
1620      . (
1621         (flexa-width . 2.0)
1622         (duration-log . ,note-head::calc-duration-log)
1623         (extra-spacing-height . ,ly:note-head::include-ledger-line-height)
1624         (glyph-name . ,note-head::calc-glyph-name)
1625         (ligature-flexa . #f)
1626         (stem-attachment . ,ly:note-head::calc-stem-attachment)
1627         (stencil . ,ly:note-head::print)
1628         (X-offset . ,ly:note-head::stem-x-shift)
1629         (Y-offset . ,staff-symbol-referencer::callback)
1630         (Y-extent . ,grob::always-Y-extent-from-stencil)
1631         (meta . ((class . Item)
1632                  (interfaces . (font-interface
1633                                 gregorian-ligature-interface
1634                                 ledgered-interface
1635                                 ligature-head-interface
1636                                 mensural-ligature-interface
1637                                 note-head-interface
1638                                 rhythmic-grob-interface
1639                                 rhythmic-head-interface
1640                                 staff-symbol-referencer-interface
1641                                 vaticana-ligature-interface))))))
1642
1643     (NoteName
1644      . (
1645         (stencil . ,ly:text-interface::print)
1646         (Y-extent . ,grob::always-Y-extent-from-stencil)
1647         (meta . ((class . Item)
1648                  (interfaces . (font-interface
1649                                 note-name-interface
1650                                 text-interface))))))
1651
1652     (NoteSpacing
1653      . (
1654         ;; Changed this from 0.75.
1655         ;; If you ever change this back, please document! --hwn
1656         (knee-spacing-correction . 1.0)
1657         (same-direction-correction . 0.25)
1658         (space-to-barline . #t)
1659         (stem-spacing-correction . 0.5)
1660         (meta . ((class . Item)
1661                  (interfaces . (note-spacing-interface
1662                                 spacing-interface))))))
1663
1664     (OttavaBracket
1665      . (
1666         (dash-fraction . 0.3)
1667         (direction . ,UP)
1668         (edge-height . (0 . 1.2))
1669         (font-shape . italic)
1670         (minimum-length . 1.0)
1671         (outside-staff-priority . 400)
1672         (padding . 0.5)
1673         (shorten-pair . (0.0 . -0.6))
1674         (staff-padding . 1.0)
1675         (stencil . ,ly:ottava-bracket::print)
1676         (style . dashed-line)
1677         (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
1678         (Y-offset . ,side-position-interface::y-aligned-side)
1679         (meta . ((class . Spanner)
1680                  (interfaces . (font-interface
1681                                 horizontal-bracket-interface
1682                                 line-interface
1683                                 ottava-bracket-interface
1684                                 side-position-interface
1685                                 text-interface))))))
1686
1687
1688     (PaperColumn
1689      . (
1690         (allow-loose-spacing . #t)
1691         (axes . (,X))
1692         (before-line-breaking . ,ly:paper-column::before-line-breaking)
1693         (bound-alignment-interfaces . (note-column-interface))
1694         (horizontal-skylines . ,ly:separation-item::calc-skylines)
1695         (keep-inside-line . #t)
1696         ;; 0.08 comes from spacing-horizontal-skyline.ly
1697         ;; allows double flat of F to be nestled over dots of C
1698         (skyline-vertical-padding . 0.08)
1699         ;; (stencil . ,ly:paper-column::print)
1700         (X-extent . ,ly:axis-group-interface::width)
1701
1702         ;; debugging
1703         ;;                       (font-size . -6) (font-name . "sans") (Y-extent . #f)
1704         (meta . ((class . Paper_column)
1705                  (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1706                                       (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1707                  (interfaces . (axis-group-interface
1708                                 font-interface
1709                                 paper-column-interface
1710                                 separation-item-interface
1711                                 spaceable-grob-interface))))))
1712
1713     (ParenthesesItem
1714      . (
1715         (font-size . -6)
1716         (padding . 0.2)
1717         (stencil . ,parentheses-item::print)
1718         (stencils . ,parentheses-item::calc-parenthesis-stencils)
1719         ;; X-extent needs to be non-empty in order to allow proper
1720         ;; horizontal attachment.  ParenthesesItem does not reserve
1721         ;; space of its own, however.
1722         (X-extent . (0 . 0))
1723         (meta . ((class . Item)
1724                  (interfaces . (font-interface
1725                                 parentheses-interface))))))
1726
1727     (PercentRepeat
1728      . (
1729         (dot-negative-kern . 0.75)
1730         (font-encoding . fetaMusic)
1731         (slope . 1.0)
1732         (spacing-pair . (break-alignment . staff-bar))
1733         (springs-and-rods . ,ly:multi-measure-rest::set-spacing-rods)
1734         (stencil . ,ly:multi-measure-rest::percent)
1735         (thickness . 0.48)
1736         (meta . ((class . Spanner)
1737                  (interfaces . (font-interface
1738                                 multi-measure-rest-interface
1739                                 percent-repeat-interface))))))
1740
1741     (PercentRepeatCounter
1742      . (
1743         (direction . ,UP)
1744         (font-encoding . fetaText)
1745         (font-size . -2)
1746         (padding . 0.2)
1747         (self-alignment-X . ,CENTER)
1748         (staff-padding . 0.25)
1749         (stencil . ,ly:text-interface::print)
1750         (X-offset . ,(ly:make-simple-closure
1751                       `(,+
1752                         ,(ly:make-simple-closure
1753                           (list ly:self-alignment-interface::x-centered-on-y-parent))
1754                         ,(ly:make-simple-closure
1755                           (list ly:self-alignment-interface::x-aligned-on-self)))))
1756         (Y-offset . ,side-position-interface::y-aligned-side)
1757         (Y-extent . ,grob::always-Y-extent-from-stencil)
1758         (meta . ((class . Spanner)
1759                  (interfaces . (font-interface
1760                                 percent-repeat-interface
1761                                 self-alignment-interface
1762                                 side-position-interface
1763                                 text-interface))))))
1764
1765     (PhrasingSlur
1766      . (
1767         (control-points . ,ly:slur::calc-control-points)
1768         (cross-staff . ,ly:slur::calc-cross-staff)
1769         (details . ,default-slur-details)
1770         (direction . ,ly:slur::calc-direction)
1771         (height-limit . 2.0)
1772         (minimum-length . 1.5)
1773         (ratio . 0.333)
1774         (spanner-id . "")
1775         (springs-and-rods . ,ly:spanner::set-spacing-rods)
1776         (stencil . ,ly:slur::print)
1777         (thickness . 1.1)
1778         (vertical-skylines . ,(ly:make-unpure-pure-container ly:slur::vertical-skylines ly:grob::pure-simple-vertical-skylines-from-extents))
1779         (Y-extent . ,slur::height)
1780         (meta . ((class . Spanner)
1781                  (interfaces . (slur-interface))))))
1782
1783     ;; an example of a text spanner
1784     (PianoPedalBracket
1785      . (
1786         (bound-padding . 1.0)
1787         (bracket-flare . (0.5 . 0.5))
1788         (direction . ,DOWN)
1789         (edge-height . (1.0 . 1.0))
1790         (shorten-pair . (0.0 . 0.0))
1791         (stencil . ,ly:piano-pedal-bracket::print)
1792         (style . line)
1793         (thickness .  1.0)
1794         (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
1795         (meta . ((class . Spanner)
1796                  (interfaces . (line-interface
1797                                 piano-pedal-bracket-interface
1798                                 piano-pedal-interface))))))
1799
1800
1801     (RehearsalMark
1802      . (
1803         (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
1804         (baseline-skip . 2)
1805         (break-align-symbols . (staff-bar key-signature clef))
1806         (break-visibility . ,end-of-line-invisible)
1807         (direction . ,UP)
1808         (extra-spacing-width . (+inf.0 . -inf.0))
1809         (font-size . 2)
1810         (non-musical . #t)
1811         (outside-staff-horizontal-padding . 0.2)
1812         (outside-staff-priority . 1500)
1813         (padding . 0.8)
1814         (self-alignment-X . ,CENTER)
1815         (stencil . ,ly:text-interface::print)
1816         (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
1817         (X-offset . ,(ly:make-simple-closure
1818                       `(,+
1819                         ,(ly:make-simple-closure
1820                           (list ly:break-alignable-interface::self-align-callback))
1821                         ,(ly:make-simple-closure
1822                           (list ly:self-alignment-interface::x-aligned-on-self)))))
1823         (Y-offset . ,side-position-interface::y-aligned-side)
1824         (Y-extent . ,grob::always-Y-extent-from-stencil)
1825         (meta . ((class . Item)
1826                  (interfaces . (break-alignable-interface
1827                                 font-interface
1828                                 mark-interface
1829                                 self-alignment-interface
1830                                 side-position-interface
1831                                 text-interface))))))
1832
1833     (RepeatSlash
1834      . (
1835         (slash-negative-kern . 0.85)
1836         (slope . 1.7)
1837         (stencil . ,ly:percent-repeat-item-interface::beat-slash)
1838         (Y-extent . ,grob::always-Y-extent-from-stencil)
1839         (thickness . 0.48)
1840         (meta . ((class . Item)
1841                  (interfaces . (percent-repeat-interface
1842                                 percent-repeat-item-interface
1843                                 rhythmic-grob-interface))))))
1844
1845     (RepeatTie
1846      . (
1847         (cross-staff . ,semi-tie::calc-cross-staff)
1848         (control-points . ,ly:semi-tie::calc-control-points)
1849         (details . ((ratio . 0.333)
1850                     (height-limit . 1.0)))
1851         (direction . ,ly:tie::calc-direction)
1852         (head-direction . ,RIGHT)
1853         (stencil  . ,ly:tie::print)
1854         (thickness . 1.0)
1855         (extra-spacing-height . (-0.5 . 0.5))
1856         (Y-extent . ,grob::always-Y-extent-from-stencil)
1857         (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
1858         (meta . ((class . Item)
1859                  (interfaces . (semi-tie-interface))))))
1860
1861     (RepeatTieColumn
1862      . (
1863         (direction . ,ly:tie::calc-direction)
1864         (head-direction . ,ly:semi-tie-column::calc-head-direction)
1865         (positioning-done . ,ly:semi-tie-column::calc-positioning-done)
1866         (X-extent . #f)
1867         (Y-extent . #f)
1868         (meta . ((class . Item)
1869                  (interfaces . (semi-tie-column-interface))))))
1870
1871     (Rest
1872      . (
1873         (cross-staff . ,ly:rest::calc-cross-staff)
1874         (duration-log . ,stem::calc-duration-log)
1875         (minimum-distance . 0.25)
1876         (stencil . ,ly:rest::print)
1877         (X-extent . ,ly:rest::width)
1878         (Y-extent . ,(ly:make-unpure-pure-container ly:rest::height ly:rest::pure-height))
1879         (Y-offset . ,(ly:make-unpure-pure-container ly:rest::y-offset-callback))
1880         (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
1881         (meta . ((class . Item)
1882                  (interfaces . (font-interface
1883                                 rest-interface
1884                                 rhythmic-grob-interface
1885                                 rhythmic-head-interface
1886                                 staff-symbol-referencer-interface))))))
1887
1888     (RestCollision
1889      . (
1890         (minimum-distance . 0.75)
1891         (positioning-done . ,ly:rest-collision::calc-positioning-done)
1892         (meta . ((class . Item)
1893                  (interfaces . (rest-collision-interface))))))
1894
1895
1896     (Script
1897      . (
1898         (add-stem-support . #t)
1899         (cross-staff . ,ly:script-interface::calc-cross-staff)
1900         (direction . ,ly:script-interface::calc-direction)
1901         (font-encoding . fetaMusic)
1902         (positioning-done . ,ly:script-interface::calc-positioning-done)
1903         (side-axis . ,Y)
1904
1905         ;; padding set in script definitions.
1906         (slur-padding . 0.2)
1907         (staff-padding . 0.25)
1908
1909         (stencil . ,ly:script-interface::print)
1910         (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
1911         (Y-extent . ,grob::always-Y-extent-from-stencil)
1912         (X-offset . ,script-interface::calc-x-offset)
1913         (Y-offset . ,side-position-interface::y-aligned-side)
1914         (meta . ((class . Item)
1915                  (interfaces . (font-interface
1916                                 script-interface
1917                                 side-position-interface))))))
1918
1919     (ScriptColumn
1920      . (
1921         (before-line-breaking . ,ly:script-column::before-line-breaking)
1922         (meta . ((class . Item)
1923                  (interfaces . (script-column-interface))))))
1924
1925     (ScriptRow
1926      . (
1927         (before-line-breaking . ,ly:script-column::row-before-line-breaking)
1928         (meta . ((class . Item)
1929                  (interfaces . (script-column-interface))))))
1930
1931     (Slur
1932      . (
1933         (avoid-slur . inside)
1934         (control-points . ,ly:slur::calc-control-points)
1935         (cross-staff . ,ly:slur::calc-cross-staff)
1936         (details . ,default-slur-details)
1937         (direction . ,ly:slur::calc-direction)
1938         (height-limit . 2.0)
1939         (line-thickness . 0.8)
1940         (minimum-length . 1.5)
1941         (ratio . 0.25)
1942         (spanner-id . "")
1943         (springs-and-rods . ,ly:spanner::set-spacing-rods)
1944         (stencil . ,ly:slur::print)
1945         (thickness . 1.2)
1946         (vertical-skylines . ,(ly:make-unpure-pure-container ly:slur::vertical-skylines ly:grob::pure-simple-vertical-skylines-from-extents))
1947         (Y-extent . ,slur::height)
1948         (meta . ((class . Spanner)
1949                  (interfaces . (slur-interface))))))
1950
1951     (SostenutoPedal
1952      . (
1953         (direction . ,RIGHT)
1954         (extra-spacing-width . (+inf.0 . -inf.0))
1955         (font-shape . italic)
1956         (padding . 0.0) ;; padding relative to SostenutoPedalLineSpanner
1957         (self-alignment-X . ,CENTER)
1958         (stencil . ,ly:text-interface::print)
1959         (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
1960         (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
1961         (Y-extent . ,grob::always-Y-extent-from-stencil)
1962         (meta . ((class . Item)
1963                  (interfaces . (font-interface
1964                                 piano-pedal-script-interface
1965                                 self-alignment-interface
1966                                 text-interface))))))
1967
1968     (SostenutoPedalLineSpanner
1969      . (
1970         (axes . (,Y))
1971         (direction . ,DOWN)
1972         (minimum-space . 1.0)
1973         (outside-staff-priority . 1000)
1974         (padding . 1.2)
1975         (side-axis . ,Y)
1976         (staff-padding . 1.0)
1977         (vertical-skylines . ,grob::always-vertical-skylines-from-element-stencils)
1978         (X-extent . ,ly:axis-group-interface::width)
1979         (Y-extent . ,axis-group-interface::height)
1980         (Y-offset . ,side-position-interface::y-aligned-side)
1981         (meta . ((class . Spanner)
1982                  (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
1983                                       (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
1984                  (interfaces . (axis-group-interface
1985                                 piano-pedal-interface
1986                                 side-position-interface))))))
1987
1988     (SpacingSpanner
1989      . (
1990         (average-spacing-wishes . #t)
1991         (base-shortest-duration . ,(ly:make-moment 3 16))
1992         (common-shortest-duration . ,ly:spacing-spanner::calc-common-shortest-duration)
1993         (shortest-duration-space . 2.0)
1994         (spacing-increment . 1.2)
1995         (springs-and-rods . ,ly:spacing-spanner::set-springs)
1996         (meta . ((class . Spanner)
1997                  (interfaces . (spacing-options-interface
1998                                 spacing-spanner-interface))))))
1999
2000     (SpanBar
2001      . (
2002         (allow-span-bar . #t)
2003         (bar-extent . ,axis-group-interface::height)
2004         (before-line-breaking . ,ly:span-bar::before-line-breaking)
2005         (break-align-symbol . staff-bar)
2006         (cross-staff . #t)
2007         (glyph-name . ,ly:span-bar::calc-glyph-name)
2008         (layer . 0)
2009         (non-musical . #t)
2010         (stencil . ,ly:span-bar::print)
2011         (X-extent . ,ly:span-bar::width)
2012         (Y-extent . (+inf.0 . -inf.0))
2013         (meta . ((class . Item)
2014                  (interfaces . (bar-line-interface
2015                                 font-interface
2016                                 span-bar-interface))))))
2017
2018     (SpanBarStub
2019      . (
2020         (X-extent . ,(grob::inherit-parent-property
2021                       X 'X-extent))
2022         (extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height)
2023         ;; we want this to be ignored, so empty, but the extra spacing height
2024         ;; should preserve the span bar's presence for horizontal spacing
2025         (Y-extent . ,pure-from-neighbor-interface::height-if-pure)
2026         (meta . ((class . Item)
2027                  (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2028                                       (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
2029                  (interfaces . (pure-from-neighbor-interface))))))
2030
2031     (StaffGrouper
2032      . (
2033         (staff-staff-spacing . ((basic-distance . 9)
2034                                 (minimum-distance . 7)
2035                                 (padding . 1)
2036                                 (stretchability . 5)))
2037         (staffgroup-staff-spacing . ((basic-distance . 10.5)
2038                                      (minimum-distance . 8)
2039                                      (padding . 1)
2040                                      (stretchability . 9)))
2041         (meta . ((class . Spanner)
2042                  (interfaces . (staff-grouper-interface))))))
2043
2044     (StaffSpacing
2045      . (
2046         (non-musical . #t)
2047         (stem-spacing-correction . 0.4)
2048         (meta . ((class . Item)
2049                  (interfaces . (spacing-interface
2050                                 staff-spacing-interface))))))
2051
2052     (StaffSymbol
2053      . (
2054         (layer . 0)
2055         (ledger-line-thickness . (1.0 . 0.1))
2056         (line-count . 5)
2057         (stencil . ,ly:staff-symbol::print)
2058         (Y-extent . ,(ly:make-unpure-pure-container ly:staff-symbol::height))
2059         (meta . ((class . Spanner)
2060                  (interfaces . (staff-symbol-interface))))))
2061
2062     (StanzaNumber
2063      . (
2064         (direction . ,LEFT)
2065         (font-series . bold)
2066         (padding . 1.0)
2067         (side-axis . ,X)
2068         (stencil . ,ly:text-interface::print)
2069         (X-offset . ,ly:side-position-interface::x-aligned-side)
2070         (Y-extent . ,grob::always-Y-extent-from-stencil)
2071         (meta . ((class . Item)
2072                  (interfaces . (font-interface
2073                                 side-position-interface
2074                                 stanza-number-interface
2075                                 text-interface))))))
2076
2077     (Stem
2078      . (
2079         (beamlet-default-length . (1.1 . 1.1))
2080         (beamlet-max-length-proportion . (0.75 . 0.75))
2081         (cross-staff . ,ly:stem::calc-cross-staff)
2082         (default-direction . ,ly:stem::calc-default-direction)
2083         (details
2084          . (
2085             ;; 3.5 (or 3 measured from note head) is standard length
2086             ;; 32nd, 64th, 128th flagged stems should be longer
2087             (lengths . (3.5 3.5 3.5 4.25 5.0 6.0))
2088
2089             ;; FIXME.  3.5 yields too long beams (according to Ross and
2090             ;; looking at Baerenreiter examples) for a number of common
2091             ;; boundary cases.  Subtracting half a beam thickness fixes
2092             ;; this, but the bug may well be somewhere else.
2093
2094             ;; FIXME this should come from 'lengths
2095             (beamed-lengths . (3.26 3.5 3.6))
2096
2097             ;; The 'normal' minima
2098             (beamed-minimum-free-lengths . (1.83 1.5 1.25))
2099             ;;(beamed-minimum-free-lengths . (2.0 1.83 1.25))
2100
2101             ;; The 'extreme case' minima
2102             (beamed-extreme-minimum-free-lengths . (2.0 1.25))
2103
2104             ;; Stems in unnatural (forced) direction should be shortened by
2105             ;; one staff space, according to [Roush & Gourlay].
2106             ;; Flagged stems we shorten only half a staff space.
2107             (stem-shorten . (1.0 0.5))
2108
2109             ))
2110
2111         ;; We use the normal minima as minimum for the ideal lengths,
2112         ;; and the extreme minima as abolute minimum length.
2113
2114         (direction . ,ly:stem::calc-direction)
2115         (duration-log . ,stem::calc-duration-log)
2116         (length . ,(ly:make-unpure-pure-container ly:stem::calc-length ly:stem::pure-calc-length))
2117         (neutral-direction . ,DOWN)
2118         (positioning-done . ,ly:stem::calc-positioning-done)
2119         (stem-info . ,ly:stem::calc-stem-info)
2120         (stem-begin-position . ,(ly:make-unpure-pure-container ly:stem::calc-stem-begin-position ly:stem::pure-calc-stem-begin-position))
2121         (stencil . ,ly:stem::print)
2122         (thickness . 1.3)
2123         (X-extent . ,ly:stem::width)
2124         (X-offset . ,ly:stem::offset-callback)
2125         (Y-extent . ,(ly:make-unpure-pure-container ly:stem::height ly:stem::pure-height))
2126         (Y-offset . ,staff-symbol-referencer::callback)
2127         (meta . ((class . Item)
2128                  (interfaces . (stem-interface))))))
2129
2130     (StemStub
2131      . (
2132         (X-extent . ,stem-stub::width)
2133         (extra-spacing-height . ,stem-stub::extra-spacing-height)
2134         (Y-extent . ,(ly:make-unpure-pure-container #f stem-stub::pure-height))
2135         (meta . ((class . Item)
2136                  (interfaces . ())))))
2137
2138     (StemTremolo
2139      . (
2140         (beam-thickness . 0.48) ; staff-space
2141         (beam-width . ,ly:stem-tremolo::calc-width) ; staff-space
2142         (direction . ,ly:stem-tremolo::calc-direction)
2143         (slope . ,ly:stem-tremolo::calc-slope)
2144         (stencil . ,ly:stem-tremolo::print)
2145         (style . ,ly:stem-tremolo::calc-style)
2146         (X-extent . ,ly:stem-tremolo::width)
2147         (Y-extent . ,(grob::unpure-Y-extent-from-stencil ly:stem-tremolo::pure-height))
2148         (X-offset . ,(ly:make-simple-closure
2149                       `(,+
2150                         ,(ly:make-simple-closure
2151                           (list ly:self-alignment-interface::centered-on-x-parent))
2152                         ,(ly:make-simple-closure
2153                           (list ly:self-alignment-interface::x-aligned-on-self)))))
2154         (Y-offset . ,(ly:make-unpure-pure-container ly:stem-tremolo::calc-y-offset ly:stem-tremolo::pure-calc-y-offset))
2155         (meta . ((class . Item)
2156                  (interfaces . (self-alignment-interface
2157                                 stem-tremolo-interface))))))
2158
2159     (StringNumber
2160      . (
2161         (avoid-slur . around)
2162         (cross-staff . ,script-or-side-position-cross-staff)
2163         (font-encoding . fetaText)
2164         (font-size . -5)                ; don't overlap when next to heads.
2165         (padding . 0.5)
2166         (script-priority . 100)
2167         (self-alignment-X . ,CENTER)
2168         (self-alignment-Y . ,CENTER)
2169         (staff-padding . 0.5)
2170         (stencil . ,print-circled-text-callback)
2171         (text . ,string-number::calc-text)
2172         (Y-extent . ,grob::always-Y-extent-from-stencil)
2173         (meta . ((class . Item)
2174                  (interfaces . (font-interface
2175                                 self-alignment-interface
2176                                 side-position-interface
2177                                 string-number-interface
2178                                 text-interface
2179                                 text-script-interface))))))
2180
2181     (StrokeFinger
2182      . (
2183         (digit-names . #("p" "i" "m" "a" "x"))
2184         (font-shape . italic)
2185         (font-size . -4)                ; don't overlap when next to heads.
2186         (padding . 0.5)
2187         (script-priority . 100)
2188         (self-alignment-X . ,CENTER)
2189         (self-alignment-Y . ,CENTER)
2190         (staff-padding . 0.5)
2191         (stencil . ,ly:text-interface::print)
2192         (text . ,stroke-finger::calc-text)
2193         (Y-extent . ,grob::always-Y-extent-from-stencil)
2194         (meta . ((class . Item)
2195                  (interfaces . (font-interface
2196                                 self-alignment-interface
2197                                 side-position-interface
2198                                 stroke-finger-interface
2199                                 text-interface
2200                                 text-script-interface))))))
2201
2202     (SustainPedal
2203      . (
2204         (direction . ,RIGHT)
2205         (extra-spacing-width . (+inf.0 . -inf.0))
2206         (padding . 0.0)  ;; padding relative to SustainPedalLineSpanner
2207         (self-alignment-X . ,CENTER)
2208         (stencil . ,ly:sustain-pedal::print)
2209         (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
2210         (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2211         (Y-extent . ,grob::always-Y-extent-from-stencil)
2212         (meta . ((class . Item)
2213                  (interfaces . (font-interface
2214                                 piano-pedal-interface
2215                                 piano-pedal-script-interface
2216                                 self-alignment-interface
2217                                 text-interface))))))
2218
2219     (SustainPedalLineSpanner
2220      . (
2221         (axes . (,Y))
2222         (direction . ,DOWN)
2223         (minimum-space . 1.0)
2224         (outside-staff-priority . 1000)
2225         (padding . 1.2)
2226         (side-axis . ,Y)
2227         (staff-padding . 1.2)
2228         (vertical-skylines . ,grob::always-vertical-skylines-from-element-stencils)
2229         (X-extent . ,ly:axis-group-interface::width)
2230         (Y-extent . ,axis-group-interface::height)
2231         (Y-offset . ,side-position-interface::y-aligned-side)
2232         (meta . ((class . Spanner)
2233                  (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2234                                       (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2235                  (interfaces . (axis-group-interface
2236                                 piano-pedal-interface
2237                                 side-position-interface))))))
2238
2239     (System
2240      . (
2241         (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2242         (axes . (,X ,Y))
2243         (outside-staff-placement-directive . left-to-right-polite)
2244         (skyline-horizontal-padding . 1.0)
2245         (vertical-skylines . ,ly:axis-group-interface::calc-skylines)
2246         (X-extent . ,ly:axis-group-interface::width)
2247         (Y-extent . ,(ly:make-unpure-pure-container ly:system::height ly:system::calc-pure-height))
2248         (meta . ((class . System)
2249                  (object-callbacks . ((footnotes-before-line-breaking . ,ly:system::footnotes-before-line-breaking)
2250                                       (footnotes-after-line-breaking . ,ly:system::footnotes-after-line-breaking)
2251                                       (pure-relevant-grobs . ,ly:system::calc-pure-relevant-grobs)
2252                                       (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2253                                       (vertical-skyline-elements . ,ly:system::vertical-skyline-elements)
2254                                       (vertical-alignment . ,ly:system::get-vertical-alignment)))
2255                  (interfaces . (axis-group-interface
2256                                 system-interface))))))
2257
2258     (SystemStartBar
2259      . (
2260         (collapse-height . 5.0)
2261         (direction . ,LEFT)
2262
2263         ;; ugh--hardcoded.
2264         (padding . -0.1)  ;; bar must cover rounded ending of staff line.
2265         (stencil . ,ly:system-start-delimiter::print)
2266         (style . bar-line)
2267         (thickness . 1.6)
2268         (X-offset . ,ly:side-position-interface::x-aligned-side)
2269         (meta . ((class . Spanner)
2270                  (interfaces . (side-position-interface
2271                                 system-start-delimiter-interface))))))
2272
2273     (SystemStartBrace
2274      . (
2275         (collapse-height . 5.0)
2276         (direction . ,LEFT)
2277         (font-encoding . fetaBraces)
2278         (padding . 0.3)
2279         (stencil . ,ly:system-start-delimiter::print)
2280         (style . brace)
2281         (X-offset . ,ly:side-position-interface::x-aligned-side)
2282         (meta . ((class . Spanner)
2283                  (interfaces . (font-interface
2284                                 side-position-interface
2285                                 system-start-delimiter-interface))))))
2286
2287     (SystemStartBracket
2288      . (
2289         (collapse-height . 5.0)
2290         (direction . ,LEFT)
2291         (padding . 0.8)
2292         (stencil . ,ly:system-start-delimiter::print)
2293         (style . bracket)
2294         (thickness . 0.45)
2295         (X-offset . ,ly:side-position-interface::x-aligned-side)
2296         (meta . ((class . Spanner)
2297                  (interfaces . (font-interface
2298                                 side-position-interface
2299                                 system-start-delimiter-interface))))))
2300
2301     (SystemStartSquare
2302      . (
2303         (direction . ,LEFT)
2304         (stencil . ,ly:system-start-delimiter::print)
2305         (style . line-bracket)
2306         (thickness . 1.0)
2307         (X-offset . ,ly:side-position-interface::x-aligned-side)
2308         (meta . ((class . Spanner)
2309                  (interfaces . (font-interface
2310                                 side-position-interface
2311                                 system-start-delimiter-interface))))))
2312
2313
2314     (TabNoteHead
2315      . (
2316         (details . ((cautionary-properties . ((angularity . 0.4)
2317                                               (half-thickness . 0.075)
2318                                               (padding . 0)
2319                                               (procedure . ,parenthesize-stencil)
2320                                               (width . 0.25)))
2321                     (head-offset . 3/5)
2322                     (harmonic-properties . ((angularity . 2)
2323                                             (half-thickness . 0.075)
2324                                             (padding . 0)
2325                                             (procedure . ,parenthesize-stencil)
2326                                             (width . 0.25)))
2327                     (repeat-tied-properties . ((note-head-visible . #t)
2328                                                (parenthesize . #t)))
2329                     (tied-properties . ((break-visibility . ,begin-of-line-visible)
2330                                         (parenthesize . #t)))))
2331
2332         (direction . ,CENTER)
2333         (duration-log . ,note-head::calc-duration-log)
2334         (font-series . bold)
2335         (font-size . -2)
2336         (stem-attachment . (0.0 . 1.35))
2337         (stencil . ,tab-note-head::print)
2338         (whiteout . #t)
2339         (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2340         (Y-offset . ,staff-symbol-referencer::callback)
2341         (Y-extent . ,grob::always-Y-extent-from-stencil)
2342         (meta . ((class . Item)
2343                  (interfaces  . (font-interface
2344                                  note-head-interface
2345                                  rhythmic-grob-interface
2346                                  rhythmic-head-interface
2347                                  staff-symbol-referencer-interface
2348                                  tab-note-head-interface
2349                                  text-interface))))))
2350
2351     (TextScript
2352      . (
2353         (avoid-slur . around)
2354         (cross-staff . ,script-or-side-position-cross-staff)
2355         (direction . ,DOWN)
2356         (extra-spacing-width . (+inf.0 . -inf.0))
2357         (outside-staff-horizontal-padding . 0.2)
2358         (outside-staff-priority . 450)
2359
2360         ;; sync with Fingering ?
2361         (padding . 0.3)
2362
2363         (script-priority . 200)
2364         (side-axis . ,Y)
2365         (slur-padding . 0.5)
2366         (staff-padding . 0.5)
2367         (stencil . ,ly:text-interface::print)
2368         (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
2369         ;; todo: add X self alignment?
2370         (Y-extent . ,grob::always-Y-extent-from-stencil)
2371         (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2372         (Y-offset . ,side-position-interface::y-aligned-side)
2373         (meta . ((class . Item)
2374                  (interfaces . (font-interface
2375                                 instrument-specific-markup-interface
2376                                 self-alignment-interface
2377                                 side-position-interface
2378                                 text-interface
2379                                 text-script-interface))))))
2380
2381     (TextSpanner
2382      . (
2383         (bound-details . ((left . ((Y . 0)
2384                                    (padding . 0.25)
2385                                    (attach-dir . ,LEFT)
2386                                    ))
2387                           (left-broken . ((attach-dir . ,RIGHT)))
2388                           (right . ((Y . 0)
2389                                     (padding . 0.25)
2390                                     ))
2391                           ))
2392         (dash-fraction . 0.2)
2393         (dash-period . 3.0)
2394         (direction . ,UP)
2395         (font-shape . italic)
2396         (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2397         (outside-staff-priority . 350)
2398         (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2399         (side-axis . ,Y)
2400         (staff-padding . 0.8)
2401         (stencil . ,ly:line-spanner::print)
2402         (style . dashed-line)
2403         (Y-offset . ,side-position-interface::y-aligned-side)
2404
2405         (meta . ((class . Spanner)
2406                  (interfaces . (font-interface
2407                                 line-interface
2408                                 line-spanner-interface
2409                                 side-position-interface))))))
2410
2411     (Tie
2412      . (
2413         (avoid-slur . inside)
2414         (control-points . ,ly:tie::calc-control-points)
2415         (details . (
2416                     ;; for a full list, see tie-details.cc
2417                     (ratio . 0.333)
2418                     (center-staff-line-clearance . 0.6)
2419                     (tip-staff-line-clearance . 0.45)
2420                     (note-head-gap . 0.2)
2421                     (stem-gap . 0.35)
2422                     (height-limit . 1.0)
2423                     (horizontal-distance-penalty-factor . 10)
2424                     (same-dir-as-stem-penalty . 8)
2425                     (min-length-penalty-factor . 26)
2426                     (tie-tie-collision-distance . 0.45)
2427                     (tie-tie-collision-penalty . 25.0)
2428                     (intra-space-threshold . 1.25)
2429                     (outer-tie-vertical-distance-symmetry-penalty-factor . 10)
2430                     (outer-tie-length-symmetry-penalty-factor . 10)
2431                     (vertical-distance-penalty-factor . 7)
2432                     (outer-tie-vertical-gap . 0.25)
2433                     (multi-tie-region-size . 3)
2434                     (single-tie-region-size . 4)
2435                     (between-length-limit . 1.0)))
2436
2437         (direction . ,ly:tie::calc-direction)
2438         (font-size . -6)
2439         (line-thickness . 0.8)
2440         (neutral-direction . ,UP)
2441         (springs-and-rods . ,ly:spanner::set-spacing-rods)
2442         (stencil . ,ly:tie::print)
2443         (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
2444         (thickness . 1.2)
2445         (meta . ((class . Spanner)
2446                  (interfaces . (tie-interface))))))
2447
2448     (TieColumn
2449      . (
2450         (before-line-breaking . ,ly:tie-column::before-line-breaking)
2451         (positioning-done . ,ly:tie-column::calc-positioning-done)
2452         (X-extent . #f)
2453         (Y-extent . #f)
2454         (meta . ((class . Spanner)
2455                  (interfaces . (tie-column-interface))))))
2456
2457     (TimeSignature
2458      . (
2459         (avoid-slur . inside)
2460         (break-align-anchor
2461          . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
2462         (break-align-symbol . time-signature)
2463         (break-align-anchor-alignment . ,LEFT)
2464         (break-visibility . ,all-visible)
2465         (extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height-including-staff)
2466         (extra-spacing-width . (0.0 . 0.8))
2467         (non-musical . #t)
2468         (space-alist . (
2469                         (cue-clef . (extra-space . 1.5))
2470                         (first-note . (fixed-space . 2.0))
2471                         (right-edge . (extra-space . 0.5))
2472                         (staff-bar . (extra-space . 1.0))))
2473         (stencil . ,ly:time-signature::print)
2474         (Y-extent . ,grob::always-Y-extent-from-stencil)
2475         (style . C)
2476         (meta . ((class . Item)
2477                  (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2478                                       (pure-relevant-grobs . ,ly:pure-from-neighbor-interface::calc-pure-relevant-grobs)))
2479                  (interfaces . (break-aligned-interface
2480                                 font-interface
2481                                 pure-from-neighbor-interface
2482                                 time-signature-interface))))))
2483
2484     (TrillPitchAccidental
2485      . (
2486         (direction . ,LEFT)
2487         (font-size . -4)
2488         (glyph-name-alist . ,standard-alteration-glyph-name-alist)
2489         (padding . 0.2)
2490         (side-axis . ,X)
2491         (stencil . ,ly:accidental-interface::print)
2492         (X-offset . ,ly:side-position-interface::x-aligned-side)
2493         (Y-extent . ,accidental-interface::height)
2494         (meta . ((class . Item)
2495                  (interfaces . (accidental-interface
2496                                 font-interface
2497                                 inline-accidental-interface
2498                                 side-position-interface
2499                                 trill-pitch-accidental-interface))))))
2500
2501     (TrillPitchGroup
2502      . (
2503         (axes . (,X))
2504         (direction . ,RIGHT)
2505         (font-size . -4)
2506         (padding . 0.3)
2507         (side-axis . ,X)
2508         (stencil . ,parenthesize-elements)
2509         (stencils . ,parentheses-item::calc-parenthesis-stencils)
2510         ;; offset a bit to the right, further if needed to clear the main note
2511         (X-offset . ,(lambda (grob)
2512                        (ly:side-position-interface::x-aligned-side grob 2.5)))
2513         (Y-extent . ,grob::always-Y-extent-from-stencil)
2514         (meta . ((class . Item)
2515                  (interfaces . (axis-group-interface
2516                                 font-interface
2517                                 note-head-interface
2518                                 parentheses-interface
2519                                 side-position-interface))))))
2520
2521     (TrillPitchHead
2522      . (
2523         (duration-log . 2)
2524         (font-size . -4)
2525         (stencil . ,ly:note-head::print)
2526         (Y-offset . ,staff-symbol-referencer::callback)
2527         (Y-extent . ,grob::always-Y-extent-from-stencil)
2528         (meta . ((class . Item)
2529                  (interfaces . (font-interface
2530                                 ledgered-interface
2531                                 pitched-trill-interface
2532                                 rhythmic-head-interface
2533                                 staff-symbol-referencer-interface))))))
2534
2535     (TrillSpanner
2536      . (
2537         (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2538         (bound-details . ((left . ((text . ,(make-musicglyph-markup "scripts.trill"))
2539                                    (Y . 0)
2540                                    (stencil-offset . (-0.5 . -1))
2541                                    (padding . 0.5)
2542                                    (attach-dir . ,CENTER)
2543                                    ))
2544                           (left-broken . ((end-on-note . #t)))
2545                           (right . ((Y . 0)))
2546                           ))
2547         (direction . ,UP)
2548         (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2549         (outside-staff-priority . 50)
2550         (padding . 0.5)
2551         (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2552         (side-axis . ,Y)
2553         (staff-padding . 1.0)
2554         (stencil . ,ly:line-spanner::print)
2555         (style . trill)
2556         (Y-offset . ,side-position-interface::y-aligned-side)
2557         (meta . ((class . Spanner)
2558                  (interfaces . (font-interface
2559                                 line-interface
2560                                 line-spanner-interface
2561                                 side-position-interface
2562                                 trill-spanner-interface))))))
2563
2564     (TupletBracket
2565      . (
2566         (avoid-scripts . #t)
2567         (connect-to-neighbor . ,ly:tuplet-bracket::calc-connect-to-neighbors)
2568         (cross-staff . ,ly:tuplet-bracket::calc-cross-staff)
2569         (direction  . ,ly:tuplet-bracket::calc-direction)
2570         (edge-height . (0.7 . 0.7))
2571         (full-length-to-extent . #t)
2572         (padding . 1.1)
2573         (positions . ,ly:tuplet-bracket::calc-positions)
2574         (shorten-pair . (-0.2 . -0.2))
2575         (staff-padding . 0.25)
2576         (stencil . ,ly:tuplet-bracket::print)
2577         (thickness . 1.6)
2578         (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
2579         (X-positions . ,ly:tuplet-bracket::calc-x-positions)
2580
2581         (meta . ((class . Spanner)
2582                  (interfaces . (line-interface
2583                                 tuplet-bracket-interface))))))
2584
2585     (TupletNumber
2586      . (
2587         (avoid-slur . inside)
2588         (cross-staff . ,ly:tuplet-number::calc-cross-staff)
2589         (direction . ,tuplet-number::calc-direction)
2590         (font-shape . italic)
2591         (font-size . -2)
2592         (stencil . ,ly:tuplet-number::print)
2593         (text . ,tuplet-number::calc-denominator-text)
2594         (X-offset . ,ly:tuplet-number::calc-x-offset)
2595         (Y-offset . ,ly:tuplet-number::calc-y-offset)
2596         (meta . ((class . Spanner)
2597                  (interfaces . (font-interface
2598                                 text-interface
2599                                 tuplet-number-interface))))))
2600
2601
2602     (UnaCordaPedal
2603      . (
2604         (direction . ,RIGHT)
2605         (extra-spacing-width . (+inf.0 . -inf.0))
2606         (font-shape . italic)
2607         (padding . 0.0)  ;; padding relative to UnaCordaPedalLineSpanner
2608         (self-alignment-X . ,CENTER)
2609         (stencil . ,ly:text-interface::print)
2610         (vertical-skylines . ,grob::always-vertical-skylines-from-stencil)
2611         (Y-extent . ,grob::always-Y-extent-from-stencil)
2612         (X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
2613         (meta . ((class . Item)
2614                  (interfaces . (font-interface
2615                                 piano-pedal-script-interface
2616                                 self-alignment-interface
2617                                 text-interface))))))
2618
2619     (UnaCordaPedalLineSpanner
2620      . (
2621         (axes . (,Y))
2622         (direction . ,DOWN)
2623         (minimum-space . 1.0)
2624         (outside-staff-priority . 1000)
2625         (padding . 1.2)
2626         (side-axis . ,Y)
2627         (staff-padding . 1.2)
2628         (vertical-skylines . ,grob::always-vertical-skylines-from-element-stencils)
2629         (X-extent . ,ly:axis-group-interface::width)
2630         (Y-extent . ,axis-group-interface::height)
2631         (Y-offset . ,side-position-interface::y-aligned-side)
2632         (meta . ((class . Spanner)
2633                  (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2634                                       (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2635                  (interfaces . (axis-group-interface
2636                                 piano-pedal-interface
2637                                 side-position-interface))))))
2638
2639
2640     (VaticanaLigature
2641      . (
2642         (flexa-width . 2.0)
2643         (stencil . ,ly:vaticana-ligature::print)
2644         (thickness . 0.6)
2645         (meta . ((class . Spanner)
2646                  (interfaces . (font-interface
2647                                 vaticana-ligature-interface))))))
2648
2649     (VerticalAlignment
2650      . (
2651         (axes . (,Y))
2652         (positioning-done . ,ly:align-interface::align-to-ideal-distances)
2653         (stacking-dir . -1)
2654         (vertical-skylines . ,ly:axis-group-interface::combine-skylines)
2655         (X-extent . ,ly:axis-group-interface::width)
2656         (Y-extent . ,axis-group-interface::height)
2657         (meta . ((class . Spanner)
2658                  (object-callbacks . ((Y-common . ,ly:axis-group-interface::calc-y-common)
2659                                       (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)
2660                                       (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)))
2661                  (interfaces . (align-interface
2662                                 axis-group-interface))))))
2663
2664     (VerticalAxisGroup
2665      . (
2666         (adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
2667         (axes . (,Y))
2668         (default-staff-staff-spacing . ((basic-distance . 9)
2669                                         (minimum-distance . 8)
2670                                         (padding . 1)))
2671         (nonstaff-unrelatedstaff-spacing . ((padding . 0.5)))
2672         (outside-staff-placement-directive . left-to-right-polite)
2673         (staff-staff-spacing . ,(ly:make-unpure-pure-container ly:axis-group-interface::calc-staff-staff-spacing ly:axis-group-interface::calc-pure-staff-staff-spacing))
2674         (stencil . ,ly:axis-group-interface::print)
2675         (skyline-horizontal-padding . 0.1)
2676         (vertical-skylines . ,ly:hara-kiri-group-spanner::calc-skylines)
2677         (X-extent . ,ly:axis-group-interface::width)
2678         (Y-extent . ,(ly:make-unpure-pure-container ly:hara-kiri-group-spanner::y-extent ly:hara-kiri-group-spanner::pure-height))
2679         (Y-offset . ,ly:hara-kiri-group-spanner::force-hara-kiri-callback)
2680         (meta . ((class . Spanner)
2681                  (object-callbacks . (
2682                                       (X-common . ,ly:axis-group-interface::calc-x-common)
2683                                       (pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2684                                       (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2685
2686                  (interfaces . (axis-group-interface
2687                                 hara-kiri-group-spanner-interface))))))
2688
2689     (VoiceFollower
2690      . (
2691         (after-line-breaking . ,ly:spanner::kill-zero-spanned-time)
2692         (bound-details . ((right . ((attach-dir .  ,CENTER)
2693                                     (padding . 1.5)
2694                                     ))
2695                           (left . ((attach-dir .  ,CENTER)
2696                                    (padding . 1.5)
2697                                    ))
2698                           ))
2699         (cross-staff . #t)
2700         (gap . 0.5)
2701         (left-bound-info . ,ly:line-spanner::calc-left-bound-info)
2702         (non-musical . #t)
2703         (right-bound-info . ,ly:line-spanner::calc-right-bound-info)
2704         (stencil . ,ly:line-spanner::print)
2705         (style . line)
2706         (X-extent . #f)
2707         (Y-extent . #f)
2708         (meta . ((class . Spanner)
2709                  (interfaces . (line-interface
2710                                 line-spanner-interface))))))
2711
2712     (VoltaBracket
2713      . (
2714         (direction . ,UP)
2715         (edge-height . (2.0 . 2.0)) ;; staff-space;
2716         (font-encoding . fetaText)
2717         (font-size . -4)
2718         (shorten-pair . ,ly:volta-bracket::calc-shorten-pair)
2719         (stencil . ,ly:volta-bracket-interface::print)
2720         (thickness . 1.6) ;; line-thickness
2721         (word-space . 0.6)
2722         (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)
2723         (Y-extent . ,(grob::unpure-Y-extent-from-stencil volta-bracket-interface::pure-height))
2724         (meta . ((class . Spanner)
2725                  (interfaces . (font-interface
2726                                 horizontal-bracket-interface
2727                                 line-interface
2728                                 side-position-interface
2729                                 text-interface
2730                                 volta-bracket-interface
2731                                 volta-interface))))))
2732
2733     (VoltaBracketSpanner
2734      . (
2735         (after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
2736         (axes . (,Y))
2737         (direction . ,UP)
2738         (no-alignment . #t)
2739         (outside-staff-priority . 600)
2740         (padding . 1)
2741         (side-axis . ,Y)
2742         (vertical-skylines . ,grob::always-vertical-skylines-from-element-stencils)
2743         (X-extent . ,ly:axis-group-interface::width)
2744         (Y-extent . ,axis-group-interface::height)
2745         (Y-offset . ,side-position-interface::y-aligned-side)
2746         (meta . ((class . Spanner)
2747                  (object-callbacks . ((pure-Y-common . ,ly:axis-group-interface::calc-pure-y-common)
2748                                       (pure-relevant-grobs . ,ly:axis-group-interface::calc-pure-relevant-grobs)))
2749                  (interfaces . (axis-group-interface
2750                                 side-position-interface
2751                                 volta-interface))))))
2752
2753     ))
2754
2755 (define (completize-grob-entry x)
2756   "Transplant assoc key into 'name entry of 'meta of X.  Set interfaces for Item, Spanner etc.
2757 "
2758   ;;  (display (car x))
2759   ;;  (newline)
2760   (let* ((name-sym  (car x))
2761          (grob-entry (cdr x))
2762          (meta-entry (assoc-get 'meta grob-entry))
2763          (class (assoc-get 'class meta-entry))
2764          (ifaces-entry
2765           (assoc-get 'interfaces meta-entry)))
2766
2767     (cond
2768      ((eq? 'Item class)
2769       (set! ifaces-entry (cons 'item-interface ifaces-entry)))
2770      ((eq? 'Spanner class)
2771       (set! ifaces-entry (cons 'spanner-interface ifaces-entry)))
2772      ((eq? 'Paper_column class)
2773       (set! ifaces-entry (cons 'item-interface
2774                                (cons 'paper-column-interface ifaces-entry))))
2775      ((eq? 'System class)
2776       (set! ifaces-entry (cons 'system-interface
2777                                (cons 'spanner-interface ifaces-entry))))
2778      (else
2779       (ly:warning "Unknown class ~a" class)))
2780
2781     (set! ifaces-entry (uniq-list (sort ifaces-entry symbol<?)))
2782     (set! ifaces-entry (cons 'grob-interface ifaces-entry))
2783
2784     (set! meta-entry (assoc-set! meta-entry 'name name-sym))
2785     (set! meta-entry (assoc-set! meta-entry 'interfaces
2786                                  ifaces-entry))
2787     (set! grob-entry (assoc-set! grob-entry 'meta meta-entry))
2788     (cons name-sym grob-entry)))
2789
2790 (set! all-grob-descriptions (map completize-grob-entry all-grob-descriptions))
2791
2792 ;;  (display (map pair? all-grob-descriptions))
2793
2794 ;; make sure that \property Foo.Bar =\turnOff doesn't complain
2795
2796 (map (lambda (x)
2797        ;; (display (car x)) (newline)
2798
2799        (set-object-property! (car x) 'translation-type? list?)
2800        (set-object-property! (car x) 'is-grob? #t))
2801      all-grob-descriptions)
2802
2803 (set! all-grob-descriptions (sort all-grob-descriptions alist<?))