lilypond-devel
[Top][All Lists]
Advanced

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

Acessing contexts from scm


From: Han-Wen Nienhuys
Subject: Acessing contexts from scm
Date: Tue, 8 Oct 2002 22:41:11 +0200

address@hidden writes:
> More and more options have been added to access grob properties from scm 
>   - and now it is afaics possible to do more or less whatever you like 
> with the grobs - directly from within your .ly-file - AS LONG as you 
> don't need to access any context-properties.
> Afaics accessing context properties is still impossible from anything 
> but the engravers. Is this true? If yes, then, isn't it about time to do 
> something about this?

Yes, permission given to implement \applycontext :-)

     \applycontext #(lambda (translator-group)   ... )

should a 0-duration music expression. The function is applied to the
current context, once the interpreting process hits it.  This allows
all kinds of manipulations, like setting & getting properties, moving
around contexts, etc. It might require some more C++ exports to
scheme, but you get the idea

(of course, if you have a better suggestion, it is welcome as well.)



-- 
Han-Wen Nienhuys   |   address@hidden   |   http://www.cs.uu.nl/~hanwen 




reply via email to

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