Consider accidentals in optical spacing correction.
[lilypond.git] / input / regression / accidental-contemporary.ly
blob9da5027861251108ae49c5bff01c8bb3eb84c20d
1 \version "2.12.0"
2 \header {
4 texidoc = "Several automatic accidental rules
5 aim to reproduce contemporary music notation
6 practices:
7 @itemize
8 @item
9 @code{'dodecaphonic} style prints accidentals on every
10 note (including naturals)
11 @item
12 @code{'neo-modern style} prints accidentals on every note
13 (not including naturals), except when a note is
14 immediately repeated
15 @item
16 @code{'neo-modern-cautionary} style acts like neo-modern,
17 adding cautionary parentheses around accidentals.
18 @item
19 @code{'teaching} prints accidentals normally, but adds
20 cautionary accidentals when an accidental is
21 already included in the key signature.
22 @end itemize
24 Both scores should show the same accidentals.
29 \layout { ragged-right = ##t }
31 \score {
32 \relative c'' {
33 #(set-accidental-style 'dodecaphonic)
34 gis4 a g gisis
35 #(set-accidental-style 'neo-modern)
36 gis8 a gis gis g' gis gis,, a'
37 #(set-accidental-style 'neo-modern-cautionary)
38 eis fis eis eis g2
39 #(set-accidental-style 'teaching)
40 \key e \major
41 e8 eis fis fis gis2
45 \score {
46 \relative c'' {
47 \set Staff.autoAccidentals = #'()
48 \set Staff.autoCautionaries = #'()
49 gis!4 a! g! gisis!
50 gis!8 a gis! gis g'! gis! gis,,! a'
51 eis! fis! eis? eis g?2
52 \key e \major
53 e8 eis! fis? fis gis?2