lilypond-user
[Top][All Lists]
Advanced

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

Re: Hairpin whiteout problem


From: Ben
Subject: Re: Hairpin whiteout problem
Date: Thu, 24 Oct 2019 17:30:48 -0400
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

On 10/24/2019 5:14 PM, Simon Albrecht wrote:
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
                   #})

\relative c'
{
  c2 d e\< f g-\placeAbsolute #'(0 . -4)  _"C" f\! e d c
}
%%%%%%%%%%%

HTH, Simon

Hi Simon,

This is very helpful yes thank you! It gives me a different way to approach this.

I did notice one thing however, using your code. It seems like if I don't use capital letters (or "anything" that is big enough to cover the entire hairpin, it doesn't whiteout fully. Is this correct?

Is there any way to adjust that so it always takes up a full chunk of the hairpin regardless of the true size of the markup?

Sorry if this is a silly question.

%%%%

c2 d e\< f g-\placeAbsolute #'(0 . -3.75)  _"c" f\! e d c

%%%%



reply via email to

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