]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/accidental-contemporary.ly
Merge master into nested-bookparts
[lilypond.git] / input / regression / accidental-contemporary.ly
1 \version "2.11.61"
2 \header {
3
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
23
24 Both scores should show the same accidentals.
25 "
26
27 }
28
29 \layout { ragged-right = ##t }
30
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
42   }
43 }
44
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
54   }
55 }