Werner LEMBERG <w...@gnu.org> writes:

>> moveDynTweak = -\single \moveDyn \etc
>
> Thanks!
>
>>> I naïvely tried
>>>
>>>   moveDynTweak =
>>>     #(define-music-function (X Y) (number? number?)
>>>       #{ \once \override DynamicLineSpanner.outside-staff-priority = ##f
>>>          \once \override DynamicText.X-offset = #X
>>>          \once \offset Y-offset #Y DynamicLineSpanner
>>>          \etc #})
>>>
>>> but this doesn't work.
>> 
>> There is a difference between a tweak and an override.
>
> Ah, bad editing, sorry.  I tried of course
>
>   moveDynTweak =
>     #(define-music-function (X Y) (number? number?)
>       #{ \tweak DynamicLineSpanner.outside-staff-priority ##f
>          \tweak DynamicText.X-offset #X
>          \offset DynamicLineSpanner.Y-offset #Y
>          \etc #})

Should have worked when using -\moveDynTweak ...  Since you are not
using this for anything other dynamic expressions, it would be likely
better to use define-event-function here, obviating the need to write -
before \moveDynTweak .

-- 
David Kastrup

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to