lilypond-user
[Top][All Lists]
Advanced

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

Re: Hairpin position


From: Paolo Prete
Subject: Re: Hairpin position
Date: Sat, 11 Jan 2020 21:59:02 +0100

Hello Michael and Andrew,

please look at this (2.19.83):

{
  \once \override DynamicText.extra-offset = #'(-2 . -3)
  a'\p\< a' a' a'\ff
}

Obviously, the hairpin is not automatically moved so to be aligned with the moved DynamicText.
I wonder if is there a way to achieve this.

Best,
P




On Sat, Jan 11, 2020 at 1:18 PM Andrew Bernard <address@hidden> wrote:
Hi Paolo,

You have not told us what you are trying to achieve in clear terms.
But if you want to move dynamics, the following function I use works
fine, and the hairpin naturally adapts.

But show us a diagram of what you need.

Andrew

%====
\version "2.21.0"

% dynamics offset
doff =
#(define-music-function (offsetX offsetY)
   (number? number?)
   #{
     \once \override DynamicText.X-offset = $offsetX
     \once \override DynamicLineSpanner.Y-offset = $offsetY
   #})

{
  \doff 2 0
  a'\p\< a' a'
  \doff 3 0
  a'\ff
}

%====

reply via email to

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