One addition:
Am 31.12.22 um 12:45 schrieb Lukas-Fabian Moser:
Hi Kenneth,
Am 31.12.22 um 11:26 schrieb Kenneth Flak:
Is there a way to alias a command in lilypond? F.x. I would like to
substite `\markup \rN` with simply `\rn`. Defining `rn` as a variable
doesn't work, so what are the ways?
Usually it does actually work:
\version "2.24.0"
something = \trill
{
a'4\something
}
Quite often, one wants a shorthand for a function that actually needs an
argument. This is possible using David Kastrup's ingenious \etc:
\version "2.24.0"
col = \once\override NoteHead.color = \etc
our = \tweak color \etc
{
\col #red a4 b
\our #blue a\our #green ^"Test"
}
Lukas