Jan-Peter Voigt <jp.vo...@gmx.de> writes:

> Hi Kieren, hi David K.,
>
> applyContext is good for doing somethind conditionally anywhere in the
> music stream:
>
> cond = ##t
>
> mod = \with { \override NoteHead #'color = #red }
>
> \relative c' {
>
> c4 e g b \applyContext #(lambda (context) (if cond
> (ly:context-mod-apply! context mod))) c a f d c1
>
> }
>
>
> I think, for your idea of automatically changing properties in a
> context, you will need an engraver.

\applyContext is not run "in the music stream" but during iteration, so
it _is_ automatically changing properties in a context.

-- 
David Kastrup


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to