I have not idea why it doesn't work. However, if you look in ly/music-functions-init.ly, you will notice that the \tweak command itself is implemented using music functions, so one possibility is to use that definition as a starting point and modify it to do
what you want, for example:

blaa = #(define-music-function (parser location Note) (ly:music?)
          (set!
           (ly:music-property Note 'tweaks)
           (acons 'color blue
                  (ly:music-property Note 'tweaks)))
          Note)

   /Mats

Roland Goretzki wrote:
Hi,

using 2.10.20

I tried to define the following:

  blau = #(define-music-function (parser location Note) (ly:music?)
         #{ \tweak #'color #blue $Note #})

But it doesn't seem to work ...
Is there a mistake in the syntax or isn't it possible to define
music-functions including the "\tweak"?

Can somebody help me, please?

Best Regards           Roland


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

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: [EMAIL PROTECTED]
        WWW: http://www.s3.kth.se/~mabe
=============================================



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

Reply via email to