Update .ly files.
[lilypond.git] / input / new / aligning-marks-with-various-notation-objects.ly
blob79f78ef93857e875ce7c4dfc202a77fc2ea1e793
1 \version "2.12.0"
3 \header {
4 lsrtags = "text"
5 texidoc = "If specified, text marks may be aligned with notation
6 objects other than bar lines. These objects include @code{ambitus},
7 @code{breathing-sign}, @code{clef}, @code{custos}, @code{staff-bar},
8 @code{left-edge}, @code{key-cancellation}, @code{key-signature}, and
9 @code{time-signature}.
11 In such cases, text marks will be horizontally centered above the
12 object. However this can be changed, as demonstrated on the second
13 line of this example (in a score with multiple staves, this setting
14 should be done for all the staves)."
15 doctitle = "Aligning marks with various notation objects"
18 \relative c' {
21 % the RehearsalMark will be centered above the Clef
22 \override Score.RehearsalMark #'break-align-symbols = #'(clef)
23 \key a \major
24 \clef treble
25 \mark "↓"
28 % the RehearsalMark will be centered above the TimeSignature
29 \override Score.RehearsalMark #'break-align-symbols = #'(time-signature)
30 \key a \major
31 \clef treble
32 \time 3/4
33 \mark "↓"
34 e2.
36 % the RehearsalMark will be centered above the KeySignature
37 \override Score.RehearsalMark #'break-align-symbols = #'(key-signature)
38 \key a \major
39 \clef treble
40 \time 4/4
41 \mark "↓"
44 \break
47 % the RehearsalMark will be aligned with the left edge of the KeySignature
48 \once \override Score.KeySignature #'break-align-anchor-alignment = #LEFT
49 \mark "↓"
50 \key a \major
53 % the RehearsalMark will be aligned with the right edge of the KeySignature
54 \once \override Score.KeySignature #'break-align-anchor-alignment = #RIGHT
55 \key a \major
56 \mark "↓"
59 % the RehearsalMark will be aligned with the left edge of the KeySignature
60 % and then shifted right by one unit.
61 \once \override Score.KeySignature #'break-align-anchor = #1
62 \key a \major
63 \mark "↓"