\version "2.18.2"
songNotes = \relative c'' { c4 c c c | d d d d | c c c c }
songChords = \chordmode {
% Regarding this input syntax, this is weird, but it works.
% Weird because it implies that all 7th chords are dominants,
% with major 7ths being an alteration of raising the lowered 7th to its normal degree.
c1:7.7+ |
% However, you can also enter a major 7 in this way.
% Note that all these notations collapse to the same thing:
% a set of pitches, which is transposed to C and then looked up in the chord name "exceptions".
d1:maj7 |
% Since "alt" does not have a clear definition, you will have to spell out the
% notes in the chord (or, if it is a chord with another known name, use that name)
%c1:alt.7
% Here, I'm making an assumption that "alt' could be
% an augmented 7th chord with a #9
c1:3.5+.7.9+
}
% Here is where you define your custom chord names
% While there are a variety of tweaks you can accomplish using builtins like:
% set majorSevenSymbol = \markup { j7 }
% However, all of these are unformatted, so they will look bad until you tweak their size and positioning.
myChordNames = {
% Major 7
<c e g b>1-\markup { \raise #0.7 { \magnify #0.5 { " " \triangle ##f } \normalsize 7 } }
% Augmented 7 #9: one guess as to what an "alt" chord would be
<c e g-sharp b-flat d-sharp'>1-\markup { \raise #0.7 { \normalsize 7 } \raise #1.2 { \teeny " " \tiny "alt" } }
}
% Here is where you apply your chord names to the "exceptions"
myChordExceptions = #(append (sequential-music-to-chord-exceptions myChordNames #t) ignatzekExceptions)
% Default
\score {
<<
\new ChordNames \chordmode {
\songChords
}
\songNotes
>>
\layout{}
}
% Modified
\score {
<<
% Here is where you apply the "exceptions" for chord names to your chords.
\new ChordNames \chordmode {
\set chordChanges = ##t \set chordNameExceptions = #myChordExceptions
\songChords
}
\songNotes
>>
\layout{}
}
HTH,