1\version "2.19.21" 2\header { 3 4texidoc = "Several automatic accidental rules 5aim to reproduce contemporary music notation 6practices: 7@itemize 8@item 9@code{'dodecaphonic} style prints accidentals on every 10note (including naturals) 11@item 12@code{'neo-modern style} prints accidentals on every note 13(not including naturals), except when a note is 14immediately repeated 15@item 16@code{'neo-modern-cautionary} style acts like neo-modern, 17adding cautionary parentheses around accidentals. 18@item 19@code{'teaching} prints accidentals normally, but adds 20cautionary accidentals when an accidental is 21already included in the key signature. 22@end itemize 23 24Both scores should show the same accidentals. 25" 26 27} 28 29\layout { ragged-right = ##t } 30 31\score { 32 \relative { 33 \accidentalStyle dodecaphonic 34 gis'4 a g gisis 35 \accidentalStyle neo-modern 36 gis8 a gis gis g' gis gis,, a' 37 \accidentalStyle neo-modern-cautionary 38 eis fis eis eis g2 39 \accidentalStyle teaching 40 \key e \major 41 e8 eis fis fis gis2 42 } 43} 44 45\score { 46 \relative { 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} 56