]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/separating-key-cancellations-from-key-signature-changes.ly
Merge branch 'master' into lilypond/translation
[lilypond.git] / Documentation / snippets / separating-key-cancellations-from-key-signature-changes.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.29"
5
6 \header {
7   lsrtags = "pitches, tweaks-and-overrides"
8
9   texidoc = "
10 By default, the accidentals used for key cancellations are placed
11 adjacent to those for key signature changes.  This behavior can be
12 changed by overriding the @code{'break-align-orders} property of the
13 @code{BreakAlignment} grob.
14
15
16 The value of @code{'break-align-orders} is a vector of length 3, with
17 quoted lists of breakable items as elements.  This example only
18 modifies the second list, moving @code{key-cancellation} before
19 @code{staff-bar}; by modifying the second list, break alignment
20 behavior only changes in the middle of a system, not at the beginning
21 or the end.
22
23 "
24   doctitle = "Separating key cancellations from key signature changes"
25 } % begin verbatim
26
27 \new Staff {
28   \override Score.BreakAlignment #'break-align-orders =
29     #'#((left-edge ambitus breathing-sign clef staff-bar
30                    key-cancellation key-signature time-signature custos)
31
32         (left-edge ambitus breathing-sign clef key-cancellation
33                    staff-bar key-signature time-signature custos)
34
35         (left-edge ambitus breathing-sign clef key-cancellation
36                    key-signature staff-bar time-signature custos))
37
38   \key des \major
39   c'1
40   \bar "||"
41   \key bes \major
42   c'1
43 }