|
From: | Lukas-Fabian Moser |
Subject: | Re: how to alias commands? |
Date: | Sat, 31 Dec 2022 12:51:21 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |