Function to create WYGIWYM chord names: Difference between revisions
m New category |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
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 | 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 | The function is customised to work with a special font that 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 | I created this function because the <code>ChordNames</code> context generates chord symbols only by chord entry (<code><c e g></code>), which often leads to misinterpretation and strange chord symbols as a result. | ||
What this function basically does is taking note-input and converting it to a | What this function basically does is taking note-input and converting it to a <code>Lyrics</code> context. For example, <code>c-"7"</code> will print the C7 chord symbol. | ||
The advantage of this function is that the input can still be transposed before it gets converted, i.e. <code>\transpose c d c- | The advantage of this function is that the input can still be transposed before it gets converted, i.e., <code>\transpose c d c-"7"</code> will print the D7 chord symbol. | ||
The following entries are possible: | The following entries are possible: | ||
<code>c</code> | * <code>c</code> → C | ||
* <code>c-"7"</code> → C7 | |||
* <code><c e></code> → C/E | |||
* <code><c e&>-"7"</code> → C7/E | |||
* <code>r</code> → N.C. | |||
* <code>s</code> → (empty) | |||
* <code>s-"text"</code> → text [not affected by transposition] | |||
These three additional functions work with any of the above (except for skip). | |||
* <code>\parenLeft c</code> → (C | |||
* <code>\parenRight c</code> → C) | |||
* <code>\parenBoth c</code> → (C) | |||
<code>\parenLeft c</code> | |||
→ (C | |||
<code>\parenRight c</code> | |||
→ C) | |||
<code>\parenBoth c</code> | |||
→ (C) | |||
<lilypond version="2.24"> | <lilypond version="2.24"> | ||
%LSR created by TaoCG | %LSR created by TaoCG | ||