On 17 September 2011 23:58, harm6 <[email protected]> wrote: > > Hi Xavier, > > you can't put \tweak in variable. > > Try: > > crescTweak = #(let ((m (make-music 'CrescendoEvent > 'span-direction -1))) > (set! (ly:music-property m 'tweaks) > (acons 'to-barline #f > (ly:music-property m 'tweaks))) > m) > { > c1 \crescTweak | % it works > d4\! % etc. > }
Actually I do not want the grob to be "hardcoded" in the definition of my variable. I'd like to be able, for example, to define a variable moveUp = -\tweak #'Y-offset #2 and to use it applied to different grobs: c4\moveUp -"text" c4\moveUp -\mordent Is it really impossible? Cheers, Xavier -- Xavier Scheuer <[email protected]> _______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
