lilypond-user
[Top][All Lists]
Advanced

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

Re: nopc -- Proposed Predefines


From: Nicolas Sceaux
Subject: Re: nopc -- Proposed Predefines
Date: Mon, 14 Jul 2008 11:24:39 +0200

Le 14 juil. 08 à 04:21, Carl Sorensen a écrit :

I propose some new predefined functions:

\pointAndClickOn

pointAndClickOn = #(ly:set-option 'point-and-click #t)

and

\pointAndClickOff

pointAndClickOff = #(ly:set-option 'point-and-click #f)


These do not do what you think they do.
When the first "pointAndClickOn = ..." is read by the parser, the
scheme expression that is following is evaluated, and thus
point-and-click is turned on. pointAndClickOn then holds the value
returned by ly:set-option (which is #t I guess).
So what you have done here, is to set pointAndclickOn to #t, and
pointAndClickOff to #f, and turned on then off the point and click
function.

The music function mentionned by James in the first place did what
you want:

noPointAndClick =
#(define-music-function (parser location) ()
  (ly:set-option 'point-and-click #f)
  (make-music 'SequentialMusic 'void #t))

here, the option is set when \noPointAndClick is invoked, not
when it is defined.





reply via email to

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