[ << Backend ] | [Top][Contents][Index] | [ Scheme functions >> ] |
[ < TieColumn ] | [ Up : All layout objects ] | [ TrillPitchAccidental > ] |
3.1.147 TimeSignature
A time signature.
TimeSignature
objects are created by the following engraver(s): Time_signature_engraver
.
Standard settings:
avoid-slur
(symbol):
'inside
Method of handling slur collisions. Choices are
inside
,outside
,around
, andignore
.inside
adjusts the slur if needed to keep the grob inside the slur.outside
moves the grob vertically to the outside of the slur.around
moves the grob vertically to the outside of the slur only if there is a collision.ignore
does not move either. In grobs whose notational significance depends on vertical position (such as accidentals, clefs, etc.),outside
andaround
behave likeignore
.break-align-anchor
(number):
ly:break-aligned-interface::calc-extent-aligned-anchor
Grobs aligned to this breakable item will have their X-offsets shifted by this number. In bar lines, for example, this is used to position grobs relative to the (visual) center of the bar line.
break-align-anchor-alignment
(number):
-1
Read by
ly:break-aligned-interface::calc-extent-aligned-anchor
for aligning an anchor to a grob’s extent.break-align-symbol
(symbol):
'time-signature
This key is used for aligning, ordering, and spacing breakable items. See break-alignment-interface.
break-visibility
(vector): #(#t #t #t)A vector of 3 booleans,
#(end-of-line unbroken begin-of-line)
.#t
means visible,#f
means killed.extra-spacing-height
(pair of numbers):
pure-from-neighbor-interface::extra-spacing-height-including-staff
In the horizontal spacing problem, we increase the height of each item by this amount (by adding the ‘car’ to the bottom of the item and adding the ‘cdr’ to the top of the item). In order to make a grob infinitely high (to prevent the horizontal spacing problem from placing any other grobs above or below this grob), set this to
(-inf.0 . +inf.0)
.extra-spacing-width
(pair of numbers): '(0.0 . 0.8)In the horizontal spacing problem, we pad each item by this amount (by adding the ‘car’ on the left side of the item and adding the ‘cdr’ on the right side of the item). In order to make a grob take up no horizontal space at all, set this to
(+inf.0 . -inf.0)
.non-musical
(boolean):
#t
True if the grob belongs to a
NonMusicalPaperColumn
.senza-misura-stencil
(stencil):
#f
The symbol to print when
TimeSignature.fraction
is not set. OverridingTimeSignature.stencil
circumvents this.space-alist
(alist, with symbols as keys): '((ambitus extra-space . 1.0) (cue-clef extra-space . 1.5) (first-note semi-shrink-space . 2.0) (right-edge extra-space . 0.5) (signum-repetitionis extra-space . 1.0) (staff-bar extra-space . 1.0))An alist that specifies distances from this grob to other breakable items, using the format:
'((break-align-symbol . (spacing-style . space)) (break-align-symbol . (spacing-style . space)) ...)Standard choices for
break-align-symbol
are listed in break-alignment-interface. Additionally, three special break-align symbols available tospace-alist
are:
first-note
used when the grob is just left of the first note on a line
next-note
used when the grob is just left of any other note; if not set, the value of
first-note
gets usedright-edge
used when the grob is the last item on the line (only compatible with the
extra-space
spacing style)If
space-alist
is defined for a grob that gets spaced in a staff, an entry forfirst-note
must be present. If there is nonext-note
entry, the value offirst-note
is used instead.Choices for
spacing-style
are:
extra-space
Put this much space between the two grobs. The space is stretchable and shrinkable when paired with
first-note
ornext-note
; otherwise it is fixed.minimum-space
Put at least this much space between the left sides of both grobs, without allowing them to collide. The space is stretchable and shrinkable when paired with
first-note
ornext-note
; otherwise it is fixed. Not compatible withright-edge
.fixed-space
Only compatible with
first-note
andnext-note
. Put this much fixed space between the grob and the note.minimum-fixed-space
Only compatible with
first-note
andnext-note
. Put at least this much fixed space between the left side of the grob and the left side of the note, without allowing them to collide.semi-fixed-space
Only compatible with
first-note
andnext-note
. Put this much space between the grob and the note, such that half of the space is fixed and half is stretchable and shrinkable.shrink-space
Only compatible with
first-note
andnext-note
. Put this much space between the two grobs. The space is only shrinkable.semi-shrink-space
Only compatible with
first-note
andnext-note
. Put this much space between the grob and the note, such that half of the space is fixed and half is shrinkable.Rules for this spacing are much more complicated than this. See [Wanske] page 126–134, [Ross] page 143–147.
stencil
(stencil):
ly:time-signature::print
The symbol to print.
style
(symbol):
'C
This setting determines in what style a grob is typeset. Valid choices depend on the
stencil
callback reading this property.Y-extent
(pair of numbers):
#<unpure-pure-container #<procedure ly:grob::stencil-height (_)> >
Extent (size) in the Y direction, measured in staff-space units, relative to object’s reference point.
This object supports the following interface(s):
break-aligned-interface
, font-interface
, grob-interface
, item-interface
, pure-from-neighbor-interface
and time-signature-interface
.
This object is of class Item (characterized by item-interface
).
[ << Backend ] | [Top][Contents][Index] | [ Scheme functions >> ] |
[ < TieColumn ] | [ Up : All layout objects ] | [ TrillPitchAccidental > ] |