1 May 2004 05:01
Re: lily in scheme
David Brandon <db <at> skotophile.com>
2004-05-01 03:01:15 GMT
2004-05-01 03:01:15 GMT
Well, first I'd say to not take anything I say too seriously. I am new
to this project and I definitely don't know everything there is to know
about the code by any means. In fact, I don't know much, yet.
What I'm thinking about, I guess, is that for developers the mixing of
scheme and lily is no problem, and very powerful, but I wonder about
the typical user, if there is such a thing.
Part of my problem is that I didn't understand what you were doing the
first time I read it, because I wasn't paying attention, but I was
partially reacting to this example:
%%%%%%%%%%% with-props.ly %%%%%%%%%%%%%%
#(use-modules (scm lily-in-scm)
(srfi srfi-1))
#(define (override->revert override-expr)
"Return a \\revert music expression for `override-expr', or
#f if it's not an override music expression."
(if (ly:music? override-expr)
(let* ((override (ly:music-property override-expr 'element))
(context (ly:music-property override-expr 'context-type))
(property (ly:music-property override 'grob-property))
(layout (ly:music-property override 'symbol)))
(if (and (ly:music? override) context property layout)
#{ \revert $context . $layout #'$property #}
#f))
#f))
#(define (overrides->reverts music)
(Continue reading)
RSS Feed