[Top][All Lists]
[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.
- Re: nopc -- Proposed Predefines, (continued)
- Re: nopc -- Proposed Predefines, Bertalan Fodor (LilyPondTool), 2008/07/15
- Re: nopc -- Proposed Predefines, Trevor Daniels, 2008/07/15
- Re: nopc -- Proposed Predefines, Bertalan Fodor (LilyPondTool), 2008/07/15
- I love editor arguments:), Patrick Horgan, 2008/07/16
- Re: I love editor arguments:), James E. Bailey, 2008/07/16
- Re: nopc -- Proposed Predefines, Reinhold Kainhofer, 2008/07/15
- Re: nopc -- Proposed Predefines, Bertalan Fodor (LilyPondTool), 2008/07/15
- Re: nopc -- Proposed Predefines, luis jure, 2008/07/15
- Re: nopc -- Proposed Predefines, Valentin Villenave, 2008/07/14
- Re: nopc -- Proposed Predefines, Trevor Daniels, 2008/07/14
- Re: nopc -- Proposed Predefines,
Nicolas Sceaux <=
- Re: nopc -- Proposed Predefines, Carl D. Sorensen, 2008/07/14
- Re: nopc -- Proposed Predefines, James E. Bailey, 2008/07/14
- Re: nopc -- Proposed Predefines, Carl D. Sorensen, 2008/07/22