[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scheme documentation and optional arguments
From: |
Paul Scott |
Subject: |
scheme documentation and optional arguments |
Date: |
Fri, 30 Mar 2007 13:44:34 -0700 |
User-agent: |
Icedove 1.5.0.10 (X11/20070307) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Nicolas created the following for me some time ago and it works:
#(define* (textPad padding #:optional once?)
(ly:export ; this is necessary for using the expression
; directly inside a block
(if once?
#{ \once \override TextScript #'padding = #$padding #}
#{ \override TextScript #'padding = #$padding #})))
The newer documentation on music functions 12.1 uses
define-music-function instead of define* Where can I find documentation
to make the #:optional once? part above work with define-music-function
so I can write some more functions that I want?
TIA,
Paul Scott
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGDXayVxeh4Z8mvCsRAl0wAKCXxGBAWJfYYho9vCuLDBsR03XeBQCglRLp
74vLrGspSSAMArFO/N1LCJs=
=xQ0S
-----END PGP SIGNATURE-----
- scheme documentation and optional arguments,
Paul Scott <=