Re: Define "tweak" function

2023-01-29 Thread David Kastrup
Ahanu Banerjee writes: > Never mind, it appears that adding "\etc" does what I am trying to do: > > makeRed = -\tweak color "red" \etc Pretty much the primordial use case for \etc . -- David Kastrup

Re: Define "tweak" function

2023-01-29 Thread Ahanu Banerjee
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 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, slu

Re: Define "tweak" function

2023-01-29 Thread Ahanu Banerjee
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 act

Re: Define "tweak" function

2023-01-29 Thread Jean Abou Samra
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 o

Define "tweak" function

2023-01-29 Thread Ahanu Banerjee
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 Thanks, -Ahanu