[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing the car or cdr of a pair
From: |
Jacques Menu Muzhic |
Subject: |
Re: Changing the car or cdr of a pair |
Date: |
Mon, 25 Dec 2017 23:43:07 +0100 |
Hello David and Malte,
Thanks for the alternatives, I now have what I needed!
JM
> Le 25 déc. 2017 à 20:21, Malte Meyn <address@hidden> a écrit :
>
>
>
> Am 25.12.2017 um 19:01 schrieb David Kastrup:
>> David Kastrup <address@hidden> writes:
>>> \once \override Staff.LigatureBracket.edge-height =
>>> #(grob-transformer 'edge-height
>>> (lambda (grob original)
>>> (cons 0.3 (cdr original))))
>>>
>>> For example.
>> Malte's suggestion to use \offset does something similar internally and
>> employs a nicer user interface.
>
> If you want to add something to the original value(s), \offset is easier,
> yes. But if you want to use absolute values, using grob-transformer instead
> of before-line-breaking is easier so I would prefer your suggestion in that
> case:
>
> My suggested solution
>
> \once \override LigatureBracket.before-line-breaking =
> #(lambda (grob)
> (let* ((orig-height (ly:grob-property grob 'edge-height))
> (orig-left (car orig-height)))
> (ly:grob-set-property! grob 'edge-height (cons orig-left 3))))
>
> has the same effect as this variant of your simpler solution:
>
> \once \override LigatureBracket.edge-height =
> #(grob-transformer 'edge-height
> (lambda (grob original)
> (cons (car original) 3)))
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user