>> > Is it possible to override properties for a given named context
>> > in the layout block.
>>
>> You want to override properties of *grobs* within a given named
>> context, and this is not possible.
> 
> Well, that's not entirely true.
> You can do:
> 
> \score {
>    \layout {
>      \context {
>        \Lyrics
>        \applyContext
>          #(lambda (ctx)
>            (when (string=? (ly:context-id ctx) "testB")
>              (ly:context-pushpop-property ctx 'LyricText 'color red)))
>      }
>    }
> 
>    <<
>      \context Lyrics = "testA" \lyricmode { test4 lyrics A _ }
>      \context Lyrics = "testB" \lyricmode { test4 lyrics B _ }
>    >>
> }

Nice!  I didn't think of that.


    Werner

Reply via email to