lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why doesn't this work?


From: Mats Bengtsson
Subject: Re: Why doesn't this work?
Date: Mon, 02 Apr 2007 11:06:26 +0200
User-agent: Thunderbird 1.5.0.10 (X11/20070221)

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
address@hidden
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: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

[Prev in Thread] Current Thread [Next in Thread]