[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Hairpin whiteout problem
From: |
David Kastrup |
Subject: |
Re: Hairpin whiteout problem |
Date: |
Thu, 24 Oct 2019 23:51:25 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Simon Albrecht <address@hidden> writes:
> On 24.10.19 18:33, Ben wrote:
>> Is it possible to whiteout hairpins?
>
> Of course—the real problem here is that you have to make the hairpin
> ignore the markup for its placement. Here’s a fidgety solution:
>
> %%%%%%%%%%
> \version "2.19.83"
>
> placeAbsolute = #(define-event-function (xy ev) (pair? ly:music?)
> #{
> \tweak whiteout ##t
> \tweak outside-staff-priority ##f
> \tweak Y-offset 0
> \tweak extra-offset $xy
> $ev
> #})
Worth mentioning that if you have 2.19.83, the above can be written as
placeAbsolute = -\tweak whiteout ##t
-\tweak outside-staff-priority ##f
-\tweak Y-offset 0
-\tweak extra-offset
\etc
--
David Kastrup