X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fseparating-key-cancellations-from-key-signature-changes.ly;fp=Documentation%2Fsnippets%2Fseparating-key-cancellations-from-key-signature-changes.ly;h=b342eaed0907e10559fd7086c1483bf877f203ce;hb=941dff9d2a67080e0dd8474f1e70f0c72ace6424;hp=0000000000000000000000000000000000000000;hpb=5a22d6233a39d3164e1ca043244794c268be4ad0;p=lilypond.git diff --git a/Documentation/snippets/separating-key-cancellations-from-key-signature-changes.ly b/Documentation/snippets/separating-key-cancellations-from-key-signature-changes.ly new file mode 100644 index 0000000000..b342eaed09 --- /dev/null +++ b/Documentation/snippets/separating-key-cancellations-from-key-signature-changes.ly @@ -0,0 +1,46 @@ +%% DO NOT EDIT this file manually; it is automatically +%% generated from LSR http://lsr.dsi.unimi.it +%% Make any changes in LSR itself, or in Documentation/snippets/new/ , +%% and then run scripts/auxiliar/makelsr.py +%% +%% This file is in the public domain. +\version "2.14.0" + +\header { + lsrtags = "pitches, tweaks-and-overrides" + + texidoc = " +By default, the accidentals used for key cancellations are placed +adjacent to those for key signature changes. This behavior can be +changed by overriding the @code{'break-align-orders} property of the +@code{BreakAlignment} grob. + + +The value of @code{'break-align-orders} is a vector of length 3, with +quoted lists of breakable items as elements. This example only +modifies the second list, moving @code{key-cancellation} before +@code{staff-bar}; by modifying the second list, break alignment +behavior only changes in the middle of a system, not at the beginning +or the end. + +" + doctitle = "Separating key cancellations from key signature changes" +} % begin verbatim + +\new Staff { + \override Score.BreakAlignment #'break-align-orders = + #'#((left-edge ambitus breathing-sign clef staff-bar + key-cancellation key-signature time-signature custos) + + (left-edge ambitus breathing-sign clef key-cancellation + staff-bar key-signature time-signature custos) + + (left-edge ambitus breathing-sign clef key-cancellation + key-signature staff-bar time-signature custos)) + + \key des \major + c'1 + \bar "||" + \key bes \major + c'1 +}