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