]> git.donarmstrong.com Git - lilypond.git/blob - input/new/aligning-marks-with-various-notation-objects.ly
Merge master into nested-bookparts
[lilypond.git] / input / new / aligning-marks-with-various-notation-objects.ly
1 \version "2.11.61"
2
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}.
10
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"
16 }
17
18 \relative c' {
19   e1
20   
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 "↓"
26   e1
27   
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.
35   
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 "↓"
42   e1
43
44   \break
45   e1
46   
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
51   e1
52   
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 "↓"
57   e1
58   
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 "↓"
64   e1
65 }