lilypond-user
[Top][All Lists]
Advanced

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

Re: Access grob name?


From: Simon Albrecht
Subject: Re: Access grob name?
Date: Fri, 18 Sep 2015 01:40:08 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

On 17.09.2015 14:51, David Nalesnik wrote:
Hi Simon,

On Thu, Sep 17, 2015 at 7:20 AM, David Kastrup <address@hidden> wrote:
Simon Albrecht <address@hidden> writes:

> Hello,
>
> I’ve written a music function which applies some tweaks on dynamics to
> offset them. Unfortunately, it’s not possible to use the offset music
> function on X-offset, because it is a mutable property.

You can use \offset on DynamicText.X-offset.

Silly me.
Of course; the problem was that I overlooked the \version 2.19.23 in my test file, which is the last version in which this does not work. Since David K’s fix (thanks a lot!) for issue 4516, it has been working.
Sorry!



If you do need the name, try:

test =
#(define-music-function (ev) (ly:music?)
   (if (eq? (ly:music-property ev 'name) 'AbsoluteDynamicEvent)

And thanks for that, nevertheless.

Find attached what I’ve now got as a result, however intermediary it may prove. The example is of course far from any actual use case, but it demonstrates the functionality well.

Yours, Simon

Attachment: offII.ily
Description: Text document

Attachment: offII.ly
Description: Text Data


reply via email to

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