]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/included/chord-names-jazz.ly
fdf49e9afa8f8fbaecd62990a727fca5725cdb86
[lilypond.git] / Documentation / included / chord-names-jazz.ly
1 \version "2.14.0"
2 \header {
3
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.
8
9 Chords following Banter (1987) can also be printed from this file, but
10 are turned off for brevity.
11
12 "
13
14 }
15
16 chs =  \transpose c' c'
17 {
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'>
62         <c e g b fis'>  % Lydian
63 }
64
65
66 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
67 % alternate Jazz notation
68
69 efullmusicJazzAlt =
70 {
71     <c e gis>1-\markup { "+" }
72     <c e g b>-\markup { \normal-size-super
73     %                     \override #'(font-family . math) "N" }
74                           \override #'(font-family . math) "M" }
75     %%c:3.5.7 = \markup { \override #'(font-family . math) "M" }
76     %%c:3.5.7 = \markup { \normal-size-super "maj7" }
77
78    <c es ges>-\markup { \super "o" } % should be $\circ$ ?
79    <c es ges bes>-\markup { \super \combine "o" "/" }
80    <c es ges beses>-\markup { \super  "o7" }
81 }
82
83 efullJazzAlt = #(sequential-music-to-chord-exceptions efullmusicJazzAlt #f)
84
85 epartialmusicJazzAlt = {
86     <c d>1-\markup { \normal-size-super "2" }
87     <c es>-\markup { "m" }
88     <c f>-\markup { \normal-size-super "sus4" }
89     <c g>-\markup { \normal-size-super "5" }
90
91     %% TODO, partial exceptions
92     <c es f>-\markup { "m" }-\markup { \normal-size-super "sus4" }
93     <c d es>-\markup { "m" }-\markup { \normal-size-super "sus2" }
94 }
95
96 epartialJazzAlt = #(sequential-music-to-chord-exceptions epartialmusicJazzAlt #f)
97
98 jazzAltProperties = \sequential {
99     \set majorSevenSymbol = #whiteTriangleMarkup
100     \set chordNameSeparator = #(make-simple-markup  "/")
101     \set chordNameExceptionsFull = #efullJazzAlt
102     \set chordNameExceptionsPartial = #epartialJazzAlt
103     \set chordNameFunction = #jazz-chord-names
104 }
105
106 banterProperties = \sequential {
107             \set chordNameFunction = #banter-chord-names
108 }
109
110 \score{
111     <<
112         \new ChordNames {
113             \set instrumentName = #"Ignatzek (default)"
114             \set shortInstrumentName = #"Def"
115             \chs
116         }
117
118         \new ChordNames {
119             \jazzAltProperties
120             \set instrumentName = #"Alternative"
121             \set shortInstrumentName = #"Alt"
122             \chs
123         }
124
125 %{
126
127         %% This is the Banter (1987) style.  It gives exceedingly
128         %% verbose (wide) names, making the output file take up to 4 pages.
129         %% (TODO: how big is is now?)
130         %% Turned off by default.
131
132         %% TODO: use smaller font for Banter (or remove some esoteric
133         %% chords).
134
135         \new ChordNames {
136             \banterProperties
137             \set instrumentName = #"Banter"
138             \set shortInstrumentName = #"Ban"
139             \chs
140         }
141 %}
142
143         \new Staff  \transpose c c' { \chs }
144     >>
145     \layout {
146         indent = 3.\cm
147         \context {
148             \ChordNames
149             \consists Instrument_name_engraver
150         }
151     }
152 }
153