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.



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

Reply via email to