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