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