lilypond-user
[Top][All Lists]
Advanced

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

Re: with and set


From: David Kastrup
Subject: Re: with and set
Date: Mon, 06 Feb 2017 00:12:19 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Simon Albrecht <address@hidden> writes:

> On 05.02.2017 23:58, Noeck wrote:
>> In other words: if the \set happens early enough (with the staff
>> creation) there is no difference.
>
> Technically, there is still a difference: if you use \with{}, the
> Staff is _created_ with that particular setting for the context
> property, if you use \set, the Staff is created without a setting for
> instrumentName, and instrumentName is set at the timestep where the
> \set command is issued. (Which might be too late in case there are
> grace notes in other contexts.)

And even if there are not: lots of things may happen at one timestep and
if any of them looks up the instrumentName setting for any reason, it
may or may not be present.  The Dynamic_performer consults the
instrumentName, for example.  Why risk it getting a wrong value?

-- 
David Kastrup



reply via email to

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