>>   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 .

Thanks!  Please check whether

  moveDyn =
    #(define-event-function (X Y etc) (number? number? ly:music?)
      #{ \tweak DynamicLineSpanner.outside-staff-priority ##f
         \tweak DynamicText.X-offset #X
         \offset DynamicLineSpanner.Y-offset #Y
         etc #})

  {
    g'2
    g'\moveDyn #-1 #5 -\f
  }

is really correct; I will then add this to the documentation.


    Werner

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

Reply via email to