Never mind, it appears that adding "\etc" does what I am trying to do:

makeRed = -\tweak color "red" \etc

On Sun, Jan 29, 2023 at 5:53 PM Ahanu Banerjee <athecell...@gmail.com>
wrote:

> Thanks for the quick reply. I am looking to create a function that can
> apply to more than one type of object, in this instance, slurs,
> articulations, and possibly fingerings. All the examples I have seen
> require specifying the object. Is it possible to have a function behave
> like "-\tweak" that acts on the object that follows it regardless of type?
>
> On Sun, Jan 29, 2023 at 5:49 PM Jean Abou Samra <j...@abou-samra.fr>
> wrote:
>
>> On 29/01/2023 23:45, Ahanu Banerjee wrote:
>> > How can I define a function that applies one or more tweaks to the
>> object that comes after it?
>> >
>> > example: I want the following expression to be a function called
>> "\makeRed":
>> > -\tweak color "red"
>> >
>> > so that I can type \makeRed \downbow instead of -\tweak color "red"
>> \downbow
>>
>> You will find examples here:
>>
>>
>> https://lilypond.org/doc/v2.24/Documentation/notation/substitution-function-examples
>>
>> Jean
>>
>>
>>

Reply via email to