Graham Percival <[EMAIL PROTECTED]> writes:
> Should variables in define-music-function have #s ?
>
> padText = #(define-music-function (parser location padding) (number?)
> #{
>
> % Both of these lines work. Which should be in the docs?
> % \once \override TextScript #'padding = $padding
> \once \override TextScript #'padding = #$padding
> #})
>
> \relative c''' {
> c4^"piu mosso" b a b
> \padText #1.8
> c4^"piu mosso" d e f
> \padText #2.6
> c4^"piu mosso" fis a g
> }
I would write #$padding iso $padding, but cannot come with a convincing
rationale (except that IMHO \identifer style variable should be better
used for music expressions, and plain scheme variable for other types,
like numbers, like padding).
nicolas
_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel