Nitpick: ly:spanner-bound grob name slur -> spanner.
[lilypond.git] / input / manual / chord-names-jazz.ly
blobccd42c54b73c8b2d541454a886fe55c8e8cf436e
1 \version "2.12.0"
2 \header {
4 texidoc = " Chord names are generated from a list pitches. The
5 functions which construct these names can be customised. Here are shown
6 Jazz chords, following Ignatzek (pp. 17-18, 1995) and
7 an alternative Jazz chord notation.
9 Chords following Banter (1987) can also be printed from this file, but
10 are turned off for brevity.
16 chs = \transpose c' c'
18 <c e g>1
19 <c es g>% m = minor triad
20 <c e gis>
21 <c es ges> \break
22 <c e g bes>
23 <c es g bes>
24 <c e g b> % triangle = maj
25 <c es ges beses>
26 <c es ges b> \break
27 <c e gis bes>
28 <c es g b>
29 <c e gis b>
30 <c es ges bes>\break
31 <c e g a> % 6 = major triad with added sixth
32 <c es g a> % m6 = minor triad with added sixth
33 <c e g bes d'>
34 <c es g bes d'> \break
35 <c es g bes d' f' a' >
36 <c es g bes d' f' >
37 <c es ges bes d' >
38 <c e g bes des' > \break
39 <c e g bes dis'>
40 <c e g bes d' f'>
41 <c e g bes d' fis'>
42 <c e g bes d' f' a'>\break
43 <c e g bes d' fis' as'>
44 <c e gis bes dis'>
45 <c e g bes dis' fis'>
46 <c e g bes d' f' as'>\break
47 <c e g bes des' f' as'>
48 <c e g bes d' fis'>
49 <c e g b d'>
50 <c e g bes d' f' as'>\break
51 <c e g bes des' f' as'>
52 <c e g bes des' f' a'>
53 <c e g b d'>
54 <c e g b d' f' a'>\break
55 <c e g b d' fis'>
56 <c e g bes des' f ' a'>
57 <c f g>
58 <c f g bes>\break
59 <c f g bes d'>
60 <c e g d'> % add9
61 <c es g f'>
65 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
66 % alternate Jazz notation
68 efullmusicJazzAlt =
70 <c e gis>1-\markup { "+" }
71 <c e g b>-\markup { \normal-size-super
72 % \override #'(font-family . math) "N" }
73 \override #'(font-family . math) "M" }
74 %%c:3.5.7 = \markup { \override #'(font-family . math) "M" }
75 %%c:3.5.7 = \markup { \normal-size-super "maj7" }
77 <c es ges>-\markup { \super "o" } % should be $\circ$ ?
78 <c es ges bes>-\markup { \super \combine "o" "/" }
79 <c es ges beses>-\markup { \super "o7" }
82 efullJazzAlt = #(sequential-music-to-chord-exceptions efullmusicJazzAlt #f)
84 epartialmusicJazzAlt = {
85 <c d>1-\markup { \normal-size-super "2" }
86 <c es>-\markup { "m" }
87 <c f>-\markup { \normal-size-super "sus4" }
88 <c g>-\markup { \normal-size-super "5" }
90 %% TODO, partial exceptions
91 <c es f>-\markup { "m" }-\markup { \normal-size-super "sus4" }
92 <c d es>-\markup { "m" }-\markup { \normal-size-super "sus2" }
95 epartialJazzAlt = #(sequential-music-to-chord-exceptions epartialmusicJazzAlt #f)
97 jazzAltProperties = \sequential {
98 \set majorSevenSymbol = #whiteTriangleMarkup
99 \set chordNameSeparator = #(make-simple-markup "/")
100 \set chordNameExceptionsFull = #efullJazzAlt
101 \set chordNameExceptionsPartial = #epartialJazzAlt
102 \set chordNameFunction = #jazz-chord-names
105 banterProperties = \sequential {
106 \set chordNameFunction = #banter-chord-names
109 \score{
111 \new ChordNames {
112 \set instrumentName = #"Ignatzek (default)"
113 \set shortInstrumentName = #"Def"
114 \chs
117 \new ChordNames {
118 \jazzAltProperties
119 \set instrumentName = #"Alternative"
120 \set shortInstrumentName = #"Alt"
121 \chs
126 %% This is the Banter (1987) style. It gives exceedingly
127 %% verbose (wide) names, making the output file take up to 4 pages.
128 %% (FIXME: how big is is now?)
129 %% Turned off by default.
131 %% FIXME: use smaller font for Banter (or remove some esoteric
132 %% chords).
134 \new ChordNames {
135 \banterProperties
136 \set instrumentName = #"Banter"
137 \set shortInstrumentName = #"Ban"
138 \chs
142 \new Staff \transpose c c' { \chs }
144 \layout {
145 indent = 3.\cm
146 \context {
147 \ChordNames
148 \consists Instrument_name_engraver