[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lily in scm, using music variables
From: |
Han-Wen Nienhuys |
Subject: |
lily in scm, using music variables |
Date: |
Tue, 4 May 2004 20:13:41 +0200 |
address@hidden writes:
> A function was introduced, that can be useful for debugging or
> simply finding out how a music expression can be built
is it necessary to do in such a complex way? I would rather rewrite
the parser entry points so that
#{ c4 $myMusic #}
becomes
(let*
((parser (ly:clone-current-parser)))
(ly:parser-define parser 'myMusic myMusic)
(ly:parse-string parser "c4 \myMusic "))
Then it also works for non-Music objects and requires much less code.
That should be feasible, AFAICT. What do you think?
--
Han-Wen Nienhuys | address@hidden | http://www.xs4all.nl/~hanwen