]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/aligning-marks-with-various-notation-objects.ly
Merge branch 'master' of git://git.sv.gnu.org/lilypond.git into td-lily
[lilypond.git] / input / lsr / aligning-marks-with-various-notation-objects.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.11.38"
4
5 \header {
6   lsrtags = "text"
7
8   texidoc = "
9 If specified, text marks may be aligned with notation objects other
10 than bar lines.  These objects include @code{ambitus},
11 @code{breathing-sign}, @code{clef}, @code{custos}, @code{staff-bar},
12 @code{left-edge}, @code{key-cancellation}, @code{key-signature}, and
13 @code{time-signature}.
14
15
16
17 In such cases, text marks will be horizontally centered above the
18 object. However this can be changed, as demonstrated on the second line
19 of this example (in a score with multiple staves, this setting should
20 be done for all the staves).
21
22
23
24 "
25   doctitle = "Aligning marks with various notation objects"
26 } % begin verbatim
27 \relative c' {
28   e1
29   
30   % the RehearsalMark will be centered above the Clef
31   \override Score.RehearsalMark #'break-align-symbols = #'(clef)
32   \key a \major
33   \clef treble
34   \mark "↓"
35   e
36   
37   % the RehearsalMark will be centered above the TimeSignature
38   \override Score.RehearsalMark #'break-align-symbols = #'(time-signature)
39   \key a \major
40   \clef treble
41   \time 3/4
42   \mark "↓"
43   e2.
44   
45   % the RehearsalMark will be centered above the KeySignature
46   \override Score.RehearsalMark #'break-align-symbols = #'(key-signature)
47   \key a \major
48   \clef treble
49   \time 4/4
50   \mark "↓"
51   e1
52
53   \break
54   e
55   
56   % the RehearsalMark will be aligned with the left edge of the KeySignature
57   \once \override Score.KeySignature #'break-align-anchor-alignment = #LEFT
58   \mark "↓"
59   \key a \major
60   e
61   
62   % the RehearsalMark will be aligned with the right edge of the KeySignature
63   \once \override Score.KeySignature #'break-align-anchor-alignment = #RIGHT
64   \key a \major
65   \mark "↓"
66   e
67   
68   % the RehearsalMark will be aligned with the left edge of the KeySignature
69   % and then shifted right by 1 unit.
70   \once \override Score.KeySignature #'break-align-anchor = #1
71   \key a \major
72   \mark "↓"
73   e1
74 }