#})
{
g'2
\moveDyn #-1 #5
g'\f
}
How can I convert `\moveDyn' to a \tweak-like function so that I can
say
g'\moveDynTweak #-1 #5 -\f
instead? I naïvely tried
moveDynTweak =
#(define-music-function (X Y) (number? number?)
#{ \once \override Dynami
unction (X Y) (number? number?)
> #{ \once \override DynamicLineSpanner.outside-staff-priority = ##f
> \once \override DynamicText.X-offset = #X
> \once \offset Y-offset #Y DynamicLineSpanner #})
>
> {
>g'2
>\moveDyn #-1 #5
>g'\f
> }
>
>H
ffset = #X
> \once \offset Y-offset #Y DynamicLineSpanner #})
>
> {
> g'2
> \moveDyn #-1 #5
> g'\f
> }
>
> How can I convert `\moveDyn' to a \tweak-like function so that I can
> say
>
> g'\moveDynTweak #-1 #5 -\f
>
&
> 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 \of
Werner LEMBERG 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.
>> 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 -\moveDy
Werner LEMBERG writes:
>>> 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
>> 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 #})
Werner LEMBERG writes:
>>> 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.
> Oops, and of course #etc (or whatever it is called now).
I now have
% A tweak-like function to move dynamics.
moveDyn =
#(define-event-function (x y event) (number? number? ly:event?)
#{ \tweak DynamicLineSpanner.outside-staff-priority ##f
\offset DynamicText.X-offset
10 matches
Mail list logo