lilypond-user
[Top][All Lists]
Advanced

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

Re: How to make a tweak a variable?


From: Thomas Morley
Subject: Re: How to make a tweak a variable?
Date: Thu, 22 Sep 2011 00:56:08 +0200

2011/9/22 David Kastrup <address@hidden>
You can take a look at the definition of tweak in
ly/music-functions-init.ly and transplant the Scheme code directly into
your function instead of using #{ #} for it.

--
David Kastrup

This way I guess:

\version "2.14.2"

notToBarline = #(define-music-function (parser location arg) (ly:music?)
   (set! (ly:music-property arg 'tweaks)
    (acons 'to-barline #f
       (ly:music-property arg 'tweaks)))
       arg)

{
c1 -\notToBarline \< |
d4\!  % etc.
}


Many thanks,
  Harm


reply via email to

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