6 texidoc = " Chord names are generated from a list pitches. The
7 functions constructing the names are customisable. This file shows
8 Jazz chords. Compare with @file{chords-ignatzek.ly}."
12 chs = \notes \transpose c c'
15 <<c es g>> % m = minor triad
20 <<c e g b>> % triangle = maj
26 <<c es ges bes>>\break
27 <<c e g a>> % 6 = major triad with added sixth
28 <<c es g a>> % m6 = minor triad with added sixth
30 <<c es g bes d'>> \break
31 <<c es g bes d' f' a' >>
34 <<c e g bes des' >> \break
38 <<c e g bes d' f' a'>>\break
39 <<c e g bes d' fis' as'>>
41 <<c e g bes dis' fis'>>
42 <<c e g bes d' f' as'>>\break
43 <<c e g bes des' f' as'>>
46 <<c e g bes d' f' as'>>\break
47 <<c e g bes des' f' as'>>
48 <<c e g bes des' f' a'>>
50 <<c e g b d' f' a'>>\break
52 <<c e g bes des' f ' a'>>
62 <<c e gis>>1-\markup { "+" }
63 <<c e g b>>-\markup { \normal-size-super
64 % \override #'(font-family . math) "N" }
65 \override #'(font-family . math) "M" }
66 %%c:3.5.7 = \markup { \override #'(font-family . math) "M" }
67 %%c:3.5.7 = \markup { \normal-size-super "maj7" }
69 <<c es ges>>-\markup { \super "o" } % should be $\circ$ ?
70 <<c es ges bes>>-\markup { \super \combine "o" "/" }
71 <<c es ges beses>>-\markup { \super "o7" }
74 efull = #(sequential-music-to-chord-exceptions efullmusic #f)
76 epartialmusic = \notes{
77 <<c d>>1-\markup { \normal-size-super "2" }
78 <<c es>>-\markup { "m" }
79 <<c f>>-\markup { \normal-size-super "sus4" }
80 <<c g>>-\markup { \normal-size-super "5" }
82 %% TODO, partial exceptions
83 <<c es f>>-\markup { "m" }-\markup { \normal-size-super "sus4" }
84 <<c d es>>-\markup { "m" }-\markup { \normal-size-super "sus2" }
87 epartial = #(sequential-music-to-chord-exceptions epartialmusic #f)
95 \property ChordNames.chordNameFunction = #double-plus-new-chord->markup
96 \property ChordNames.chordNameStyle = #'jazz
99 \property ChordNames.majorSevenSymbol = #whiteTriangleMarkup
100 \property ChordNames.chordNameSeparator = #(make-simple-markup "/")
101 \property ChordNames.chordNameExceptionsFull = #efull
102 \property ChordNames.chordNameExceptionsPartial = #epartial
105 %%\property ChordNames.chordNoteNamer = #'step->markup-ignatzek
106 %%chordRootNamer = #note-name->markup
107 \property ChordNames.chordNameFunction = #jazz-chord-names
111 \context Staff \notes \transpose c c { \chs }
116 ChordName \override #'word-space = #1