lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Define an alias to a parametrized command


From: David Kastrup
Subject: Re: Define an alias to a parametrized command
Date: Wed, 28 Jun 2023 21:22:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Simon Albrecht <simon.albrecht@mail.de> writes:

> On 28.06.23 00:54, Valentin Petzel wrote:
>> If you want a real alias (that is a second binding to the same function) you
>> can do
>>
>> #(define acc acciaccatura)
>>
>> This will create another binding to the same object
> AFAIK,
> acc = #acciaccatura
> and likewise
> af = #after
> will have the same effect.

True.  The actual value of \etc is when you want to supply some initial
fixed arguments while keeping the rest variable.

For just creating an alias taking the same number of arguments, the
above way is at least conceptually simpler.

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]