]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/preventing-natural-signs-from-being-printed-when-the-key-signature-changes.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / Documentation / snippets / preventing-natural-signs-from-being-printed-when-the-key-signature-changes.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.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.18.0"
8
9 \header {
10   lsrtags = "automatic-notation, pitches"
11
12   texidoc = "
13 When the key signature changes, natural signs are automatically printed
14 to cancel any accidentals from previous key signatures.  This may be
15 prevented by setting to @code{f} the @code{printKeyCancellation}
16 property in the @code{Staff} context.
17
18 "
19   doctitle = "Preventing natural signs from being printed when the key signature changes"
20 } % begin verbatim
21
22 \relative c' {
23   \key d \major
24   a4 b cis d
25   \key g \minor
26   a4 bes c d
27   \set Staff.printKeyCancellation = ##f
28   \key d \major
29   a4 b cis d
30   \key g \minor
31   a4 bes c d
32 }