lilypond-devel
[Top][All Lists]
Advanced

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

Re: order of function arguments


From: David Kastrup
Subject: Re: order of function arguments
Date: Tue, 23 Apr 2013 18:20:08 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Janek Warchoł <address@hidden> writes:

> Hi,
>
> 2013/4/23 David Kastrup <address@hidden>:
>> Janek Warchoł <address@hidden> writes:
>>> Btw, issue 2540 made it possible to write
>>>
>>> \version "2.17.3"
>>> { < \tweak Accidental #'color #red cis' fis'' > }
>>>
>>> which colored the sharp of the cis.  Is it possible to achieve the
>>> same goal with newer versions?  I've tried some combinations with
>>> 2.17.13 but they failed.
>>
>> If you don't want to read the manual, you can use convert-ly.
>
> Hmm.  I tried, but apparently Frescobaldi tricked me - it appeared as
> if the conversion didn't change anything.  Apologies - i've tried
> doing this directly with command line, which worked and gave me
>
> \version "2.17.3"
> { < \tweak Accidental.color #red cis' fis'' > }
>
> which, quite frankly, is exactly what i hoped for!  Woohoo!  Now we're
> talking.  So, current \tweak syntax is actually
>
> \tweak grob-property-path value grob-or-music
> (not \tweak property value grob-or-music as i mistakenly thought)

And if you really put a grob name last, you don't get a tweak but an
override.  Which does not make much sense unless you use \tweak in music
functions like \hide or \omit when it will come in handy.

> and _that_ makes my day!  I wish that someone told me that when i
> asked about it in https://codereview.appspot.com/8647044/#msg2 - it
> would save us a lot of time.

Uh, it was not at all relevant to your question?  You explicitly state
there "I understand that grob-name is at the end because it's optional,
and we want to omit it when we're using \offset as a tweak."

You claim that you understand the reason, and you explicitly state the
reason.  That does not exactly make it easy to guess that you don't
understand the reason.

-- 
David Kastrup



reply via email to

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