lilypond-user
[Top][All Lists]
Advanced

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

Re: create custom context definitions using a scheme function


From: David Kastrup
Subject: Re: create custom context definitions using a scheme function
Date: Thu, 09 Jan 2014 21:12:17 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Janek Warchoł <address@hidden> writes:

> Hi,
>
> I want to create custom context definitions using a scheme function.
> Later on the function will take some arguments and actually do
> something interesting, but right now i cannot get the most basic
> examples to work:
>
> %%%%% why the override isn't applied here?
>
> test =
> #(define-scheme-function (parser location)()
>    #{
>      \layout {
>        \context {
>          \Staff
>          \override NoteHead #'color = #blue
>        }
>      }
>    #})
>
> \layout { \test }

Presumably because Scheme expressions in layout definitions are not
interpreted.  That's similar to a few other places where a local module
can be manipulated by Scheme expressions like #(set-staff-size) and
similar stuff where the expectation is that the return value should not
get interpreted.

-- 
David Kastrup



reply via email to

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