]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/accidental-contemporary.ly
Release: bump Welcome versions.
[lilypond.git] / input / regression / accidental-contemporary.ly
index 145c96a9872e48bdb64382fbb21b9f198cbd579a..536cce96f5d961c64c1f92faac07740b80dac329 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.11.57"
+\version "2.19.21"
 \header {
 
 texidoc = "Several automatic accidental rules
@@ -6,28 +6,50 @@ aim to reproduce contemporary music notation
 practices:
 @itemize
 @item
-'dodecaphonic style prints accidentals on every
+@code{'dodecaphonic} style prints accidentals on every
 note (including naturals)
 @item
-'neo-modern style prints accidentals on every note
+@code{'neo-modern style} prints accidentals on every note
 (not including naturals), except when a note is
 immediately repeated
 @item
-'neo-modern-cautionary style acts like neo-modern,
+@code{'neo-modern-cautionary} style acts like neo-modern,
 adding cautionary parentheses around accidentals.
+@item
+@code{'teaching} prints accidentals normally, but adds
+cautionary accidentals when an accidental is
+already included in the key signature.
 @end itemize
+
+Both scores should show the same accidentals.
 "
 
 }
 
 \layout { ragged-right = ##t }
 
-\relative c'' {
-  #(set-accidental-style 'dodecaphonic)
-  gis4 a g gisis
-  #(set-accidental-style 'neo-modern)
-  gis8 a gis gis g' gis gis,, a'
-  #(set-accidental-style 'neo-modern-cautionary)
-  eis fis eis eis g2
+\score {
+  \relative {
+    \accidentalStyle dodecaphonic
+    gis'4 a g gisis
+    \accidentalStyle neo-modern
+    gis8 a gis gis g' gis gis,, a'
+    \accidentalStyle neo-modern-cautionary
+    eis fis eis eis g2
+    \accidentalStyle teaching
+    \key e \major
+    e8 eis fis fis gis2
+  }
 }
 
+\score {
+  \relative {
+    \set Staff.autoAccidentals = #'()
+    \set Staff.autoCautionaries = #'()
+    gis'!4 a! g! gisis!
+    gis!8 a gis! gis g'! gis! gis,,! a'
+    eis! fis! eis? eis g?2
+    \key e \major
+    e8 eis! fis? fis gis?2
+  }
+}