This function is an update to an earlier version which can be found here: http://lists.gnu.org/archive/html/lilypond-user/2009-02/msg00293.html
The function is customised to work with a special font which can also be found in the above link. It shouldn't be too difficult to get the function to work with other fonts.
I created this function because the internal ChordNames context generates chord symbols only by chord entry ( <c e g>
) which often leads to misinterpretation and strange chord symbols are the result.
What this function basically does is taking note-input and converting it to a lyric-context.
For example c-"7"
will print C7 chord symbol.
The advantage of this function is that the input can still be transposed before it gets converted, i.e. \transpose c d c-"7"
will print D7 chord symbol.
The following entries are possible:
c
→ C
c-"7"
→ C7
<c e>
→ C/E
<c e>-"7"
→ C7/E
r
→ N.C.
s
→
s-"text"
→ text [not affected by transposition]
and these three additional functions work with any of the above (except for skip)
\parenLeft c
→ (C
\parenRight c
→ C)
\parenBoth c
→ (C)