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 <[email protected]>
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