Re: Hairpin position
Am Sa., 11. Jan. 2020 um 21:59 Uhr schrieb Paolo Prete : > > 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 'extra-offset is applied _after_ all positioning is done. This will never work like you seem to wish. Use X-offset for DynamicText instead. If you apply Y-offset additionally, you move DynamicText out of the aligning DynamicLineSpanner provides. Use DynamicLineSpanner.Y-offset instead. This is basically what Andrew's function does. Cheers, Harm
Re: Hairpin position
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 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 > } > > % >
Re: Hairpin position
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 } %
Re: Hairpin position
Hi Paolo, I don’t understand your request. How do you want the hairpin repositioned? Possibly an image to illustrate might help. Kind regards, Michael Mobil gesendet > Am 11.01.2020 um 01:14 schrieb Paolo Prete : > > > Hello, > > given: > > {{ > a'\p\< a' a' a'\ff > }} > > ... how can I move the hairpin so that its start and end dynamics (p and ff, > in this case) are automatically repositioned? > > (otherwise: how can I move the dynamics so that the hairpin is automatically > repositioned?) > > Thanks. > > Best, > > P >
Hairpin position
Hello, given: {{ a'\p\< a' a' a'\ff }} ... how can I move the hairpin so that its start and end dynamics (p and ff, in this case) are automatically repositioned? (otherwise: how can I move the dynamics so that the hairpin is automatically repositioned?) Thanks. Best, P