Re: Consist engraver within loop

2016-03-09 Thread David Kastrup
Jan-Peter Voigt writes: > Hi Urs, > > try this line: > #(eval ctx (current-module)) > > Of course normally eval is evil, but in this case you just evaluate > the name - the symbol - to the definition, which is stored under that > name inside the scope of the layout block.

Re: Consist engraver within loop

2016-03-09 Thread Urs Liska
Am 09.03.2016 um 09:25 schrieb Jan-Peter Voigt: > Hi Urs, > > try this line: > #(eval ctx (current-module)) > > Of course normally eval is evil, but in this case you just evaluate > the name - the symbol - to the definition, which is stored under that > name inside the scope of the layout block.

Re: Consist engraver within loop

2016-03-09 Thread Jan-Peter Voigt
Hi Urs, try this line: #(eval ctx (current-module)) Of course normally eval is evil, but in this case you just evaluate the name - the symbol - to the definition, which is stored under that name inside the scope of the layout block. HTH Jan-Peter Am 09.03.2016 um 09:02 schrieb Urs Liska:

Re: Consist engraver within loop

2016-03-09 Thread Urs Liska
*Bump* Maybe it will be easier to understand the question (and thus provide an answer) with a more stripped down MWE: \version "2.19.38" removeStaffLines = #(define-scheme-function (ctx)(symbol?) #{ \layout { \context { % I want to generate the following

Consist engraver within loop

2016-03-08 Thread Urs Liska
Hi all, I want to write a wrapper function to "install" an engraver in a number of contexts. It works pretty well, but I want to make it better. This is what I have so far. \version "2.19.38" install = #(define-scheme-function (contexts)(symbol-list?) (if (member 'Score contexts)