lilypond-devel
[Top][All Lists]
Advanced

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

Re: lilypond ./ChangeLog ./darwin.patch Documentati...


From: Mats Bengtsson
Subject: Re: lilypond ./ChangeLog ./darwin.patch Documentati...
Date: Sun, 19 Feb 2006 13:50:57 +0100
User-agent: Internet Messaging Program (IMP) H3 (4.0.4)

Quoting Graham Percival <address@hidden>:

Index: lilypond/Documentation/user/programming-interface.itely
diff -u lilypond/Documentation/user/programming-interface.itely:1.47 lilypond/Documentation/user/programming-interface.itely:1.48 --- lilypond/Documentation/user/programming-interface.itely:1.47 Mon Feb 6 01:23:40 2006 +++ lilypond/Documentation/user/programming-interface.itely Sun Feb 19 04:05:00 2006
@@ -87,11 +87,25 @@
@{ #(ly:export (make-sequential-music (list newLa))) @}
@end example

+Scheme code is evaluated as soon as the parser encounters it.  To
+define some scheme code in a macro (to be called later), use
+
address@hidden
+#(define (nopc)
+  (ly:set-option 'point-and-click #f))
+#(nopc)
+
+...
+\nopc
+{ c'4 }
address@hidden example
+


Is this really correct? #(define ... ) defines the Scheme function.
#(nopc) runs it. Is \nopc just another syntax for #(nopc) ?

   /Mats





reply via email to

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