X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Fchord-name-exceptions.ly;h=86dc2e5159b7f886f4e6b49983fed966c9c4f73d;hb=e378c1bba8d1db2689fe815c449ace57e234ab17;hp=6bb65d5fe035cc8d931168f1bad397637752e8a6;hpb=ecaf73bb03e974018c17e3051b3ac3a805dd1653;p=lilypond.git diff --git a/input/regression/chord-name-exceptions.ly b/input/regression/chord-name-exceptions.ly index 6bb65d5fe0..86dc2e5159 100644 --- a/input/regression/chord-name-exceptions.ly +++ b/input/regression/chord-name-exceptions.ly @@ -1,44 +1,29 @@ -\version "2.1.28" -\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 @{ 1\\markup @{ \\super \"7\" \"wahh\" @} @} -@end example -into @code{chordNameExceptions} takes a little manoeuvring. The -following code transforms @code{chExceptionMusic} (which is a -sequential music) into a list of exceptions. -@example - (sequential-music-to-chord-exceptions chExceptionMusic \#t) -@end example -Then, -@example - (append - ... ignatzekExceptions) -@end example -adds the new exceptions to the default ones, which are defined in -@file{ly/chord-modifier-init.ly}. -" } - - -% 7sus4 denoted with ^7 wahh -chExceptionMusic = \notes { - 1-\markup { \super "7" "wahh" }} - -% add to existing exceptions. +\version "2.12.0" +\header { + + texidoc = "The property @code{chordNameExceptions} can used + to store a list of special notations for specific chords." + +} + + + % 7sus4 denoted with ^7 wahh +chExceptionMusic = { + 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/+f - \set chordNameExceptions = #chExceptions - c:7sus4 c:dim7/+f } - - -\score { - << \context ChordNames \theMusic - \context Voice \theMusic - >> - } + (sequential-music-to-chord-exceptions chExceptionMusic #t) + ignatzekExceptions) + +theMusic = \chordmode { + c:7sus4 c:dim7/+f + \set chordNameExceptions = #chExceptions + c:7sus4 c:dim7/+f +} + +\layout { ragged-right = ##t } + +<< \context ChordNames \theMusic + \context Voice \theMusic +>>