X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fincluded%2Fchord-names-jazz.ly;fp=Documentation%2Fincluded%2Fchord-names-jazz.ly;h=5be2e57a56026ad91b332089df793cc4d0b37c65;hb=941dff9d2a67080e0dd8474f1e70f0c72ace6424;hp=0000000000000000000000000000000000000000;hpb=5a22d6233a39d3164e1ca043244794c268be4ad0;p=lilypond.git diff --git a/Documentation/included/chord-names-jazz.ly b/Documentation/included/chord-names-jazz.ly new file mode 100644 index 0000000000..5be2e57a56 --- /dev/null +++ b/Documentation/included/chord-names-jazz.ly @@ -0,0 +1,152 @@ +\version "2.14.0" +\header { + +texidoc = " Chord names are generated from a list pitches. The +functions which construct these names can be customised. Here are shown +Jazz chords, following Ignatzek (pp. 17-18, 1995) and +an alternative Jazz chord notation. + +Chords following Banter (1987) can also be printed from this file, but +are turned off for brevity. + +" + +} + +chs = \transpose c' c' +{ + 1 + % m = minor triad + + \break + + + % triangle = maj + + \break + + + + \break + % 6 = major triad with added sixth + % m6 = minor triad with added sixth + + \break + + + + \break + + + + \break + + + + \break + + + + \break + + + + \break + + + + \break + + % add9 + +} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% alternate Jazz notation + +efullmusicJazzAlt = +{ + 1-\markup { "+" } + -\markup { \normal-size-super + % \override #'(font-family . math) "N" } + \override #'(font-family . math) "M" } + %%c:3.5.7 = \markup { \override #'(font-family . math) "M" } + %%c:3.5.7 = \markup { \normal-size-super "maj7" } + + -\markup { \super "o" } % should be $\circ$ ? + -\markup { \super \combine "o" "/" } + -\markup { \super "o7" } +} + +efullJazzAlt = #(sequential-music-to-chord-exceptions efullmusicJazzAlt #f) + +epartialmusicJazzAlt = { + 1-\markup { \normal-size-super "2" } + -\markup { "m" } + -\markup { \normal-size-super "sus4" } + -\markup { \normal-size-super "5" } + + %% TODO, partial exceptions + -\markup { "m" }-\markup { \normal-size-super "sus4" } + -\markup { "m" }-\markup { \normal-size-super "sus2" } +} + +epartialJazzAlt = #(sequential-music-to-chord-exceptions epartialmusicJazzAlt #f) + +jazzAltProperties = \sequential { + \set majorSevenSymbol = #whiteTriangleMarkup + \set chordNameSeparator = #(make-simple-markup "/") + \set chordNameExceptionsFull = #efullJazzAlt + \set chordNameExceptionsPartial = #epartialJazzAlt + \set chordNameFunction = #jazz-chord-names +} + +banterProperties = \sequential { + \set chordNameFunction = #banter-chord-names +} + +\score{ + << + \new ChordNames { + \set instrumentName = #"Ignatzek (default)" + \set shortInstrumentName = #"Def" + \chs + } + + \new ChordNames { + \jazzAltProperties + \set instrumentName = #"Alternative" + \set shortInstrumentName = #"Alt" + \chs + } + +%{ + + %% This is the Banter (1987) style. It gives exceedingly + %% verbose (wide) names, making the output file take up to 4 pages. + %% (TODO: how big is is now?) + %% Turned off by default. + + %% TODO: use smaller font for Banter (or remove some esoteric + %% chords). + + \new ChordNames { + \banterProperties + \set instrumentName = #"Banter" + \set shortInstrumentName = #"Ban" + \chs + } +%} + + \new Staff \transpose c c' { \chs } + >> + \layout { + indent = 3.\cm + \context { + \ChordNames + \consists Instrument_name_engraver + } + } +} +