lilypond-user
[Top][All Lists]
Advanced

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

Re: change barline type with time signature change


From: David Kastrup
Subject: Re: change barline type with time signature change
Date: Wed, 27 Feb 2013 12:45:29 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Jan-Peter Voigt <address@hidden> 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




reply via email to

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