]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/chord-name-exceptions.ly
* Documentation/user/changing-defaults.itely (Creating contexts):
[lilypond.git] / input / regression / chord-name-exceptions.ly
index 4655cbc9b01b2f9029285a6fb466ca02e2cc6562..2b7d6d897f9ba16ceb762430f03dbaf784a248a0 100644 (file)
@@ -1,10 +1,10 @@
-\version "1.9.1"
+\version "2.1.30"
 \header { texidoc = "The property @code{chordNameExceptions} can used
     to store a list of special notations for specific chords.
 
 Putting the exceptions list encoded as
 @example
-       \\notes @{ <<c f g bes>>1\\markup @{ \\super \"7\" \"wahh\" @} @}
+       \\notes @{ <c f g bes>1\\markup @{ \\super \"7\" \"wahh\" @} @}
 @end example
 into @code{chordNameExceptions} takes a little manoeuvring. The
 following code transforms @code{chExceptionMusic} (which is a
@@ -24,21 +24,21 @@ adds the new exceptions to the default ones, which are defined in
 
 % 7sus4 denoted with ^7 wahh
 chExceptionMusic = \notes {
-  <<c f g bes>>1-\markup { \super "7" "wahh" }}
+  <c f g bes>1-\markup { \super "7" "wahh" }}
 
 % add to existing exceptions.
 chExceptions = #(append
   (sequential-music-to-chord-exceptions chExceptionMusic #t)
   ignatzekExceptions)
 
-theMusic =    \chords {
-      c:7sus4 c:dim7
-      \property Current.chordNameExceptions = #chExceptions
-      c:7sus4 c:dim7 }
+theMusic = \chords {
+      c:7sus4 c:dim7/+f
+      \set chordNameExceptions = #chExceptions
+      c:7sus4 c:dim7/+f }
 
   
 \score {
-  < \context ChordNames \theMusic
+  << \context ChordNames \theMusic
     \context Voice \theMusic
-  >  
+  >>  
   }