]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/separating-key-cancellations-from-key-signature-changes.ly
f6eb4f054d5a78d04845435cd32dfd8b3d24e64d
[lilypond.git] / Documentation / snippets / separating-key-cancellations-from-key-signature-changes.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.14.2"
8
9 \header {
10   lsrtags = "tweaks-and-overrides, pitches"
11
12 %% Translation of GIT committish: 28097cf54698db364afeb75658e4c8e0e0ccd716
13   texidocfr = "
14 Les altérations supprimées lors d'un changement de tonalité sont par
15 défaut accolés à la nouvelle armure.  Ce comportement peut s'adapter
16 grâce à la propriété @code{'break-align-orders} de l'objet
17 @code{BreakAlignment}.
18
19 La valeur de @code{'break-align-orders} est constituée d'un vecteur à
20 trois composantes listant l'ordre des éléments à l'occasion d'une
21 rupture.  Seule la deuxième liste est ici modifiée,
22 @code{key-cancellation} étant déplacé avant @code{staff-bar}.  En ne
23 modifiant que la deuxième liste, cette modification dans l'ordre
24 d'apparition des éléments sera effective seulement en cours de système,
25 et non en début ou fin de ligne.
26
27 "
28   doctitlefr = "Séparation entre altérations annulées et nouvelle armure"
29
30   texidoc = "
31 By default, the accidentals used for key cancellations are placed
32 adjacent to those for key signature changes.  This behavior can be
33 changed by overriding the @code{'break-align-orders} property of the
34 @code{BreakAlignment} grob.
35
36
37 The value of @code{'break-align-orders} is a vector of length 3, with
38 quoted lists of breakable items as elements.  This example only
39 modifies the second list, moving @code{key-cancellation} before
40 @code{staff-bar}; by modifying the second list, break alignment
41 behavior only changes in the middle of a system, not at the beginning
42 or the end.
43
44 "
45   doctitle = "Separating key cancellations from key signature changes"
46 } % begin verbatim
47
48 \new Staff {
49   \override Score.BreakAlignment #'break-align-orders =
50     #'#((left-edge ambitus breathing-sign clef staff-bar
51                    key-cancellation key-signature time-signature custos)
52
53         (left-edge ambitus breathing-sign clef key-cancellation
54                    staff-bar key-signature time-signature custos)
55
56         (left-edge ambitus breathing-sign clef key-cancellation
57                    key-signature staff-bar time-signature custos))
58
59   \key des \major
60   c'1
61   \bar "||"
62   \key bes \major
63   c'1
64 }