From 06a7631ec6e29338a5a7cddbbc6482a2896607bf Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Tue, 1 Nov 2011 18:29:31 +0000 Subject: [PATCH] Issue 1503 - add support for "altered" jazz chord (super-Locrian) --- Documentation/included/chord-names-jazz.ly | 161 +++++++++++---------- input/regression/chords-funky-ignatzek.ly | 1 + ly/chord-modifiers-init.ly | 1 + 3 files changed, 84 insertions(+), 79 deletions(-) diff --git a/Documentation/included/chord-names-jazz.ly b/Documentation/included/chord-names-jazz.ly index fdf49e9afa..5ef6039053 100644 --- a/Documentation/included/chord-names-jazz.ly +++ b/Documentation/included/chord-names-jazz.ly @@ -15,51 +15,52 @@ 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 - - % Lydian + 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 + + % Lydian + % altered chord } @@ -69,9 +70,11 @@ chs = \transpose c' c' efullmusicJazzAlt = { 1-\markup { "+" } - -\markup { \normal-size-super - % \override #'(font-family . math) "N" } - \override #'(font-family . math) "M" } + -\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" } @@ -104,50 +107,50 @@ jazzAltProperties = \sequential { } banterProperties = \sequential { - \set chordNameFunction = #banter-chord-names + \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 - } + \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. + %% 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). + %% TODO: use smaller font for Banter (or remove some esoteric + %% chords). - \new ChordNames { - \banterProperties - \set instrumentName = #"Banter" - \set shortInstrumentName = #"Ban" - \chs - } + \new ChordNames { + \banterProperties + \set instrumentName = #"Banter" + \set shortInstrumentName = #"Ban" + \chs + } %} - \new Staff \transpose c c' { \chs } + \new Staff \transpose c c' { \chs } >> \layout { - indent = 3.\cm - \context { - \ChordNames - \consists Instrument_name_engraver - } + indent = 3.\cm + \context { + \ChordNames + \consists Instrument_name_engraver + } } } diff --git a/input/regression/chords-funky-ignatzek.ly b/input/regression/chords-funky-ignatzek.ly index c1545c03de..7cda44e612 100644 --- a/input/regression/chords-funky-ignatzek.ly +++ b/input/regression/chords-funky-ignatzek.ly @@ -21,6 +21,7 @@ chs = 1 1 1 +1 } diff --git a/ly/chord-modifiers-init.ly b/ly/chord-modifiers-init.ly index 15b54b559c..1041e88c72 100644 --- a/ly/chord-modifiers-init.ly +++ b/ly/chord-modifiers-init.ly @@ -31,6 +31,7 @@ ignatzekExceptionMusic = { } -\markup { \super "o7" } -\markup { \super "lyd" } % Lydian + -\markup { \super "alt" } % altered chord (super-Locrian) } partialJazzMusic = { -- 2.39.2