[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setting context properties with \with
From: |
Werner LEMBERG |
Subject: |
Re: Setting context properties with \with |
Date: |
Mon, 30 Dec 2024 06:25:28 +0000 (UTC) |
>> Anyway, both situations don't work; I would call it a bug.
>
> I would rather call it a doc issue. It doesn't make sense to me
> that \with { x = y } would set a value that can never be unset.
I think I've misunderstood how `\with` works. I have always thought
that it sets default values for a specific instance of a context
before this instance gets created. Apparently, I'm wrong – it doesn't
set default values, it just sets values.
So yes, please improve the documentation. The example
```
\new Voice \with { fontSize = 20 } {
c''
}
```
is a good one, however, the NR should IMHO be extended to demonstrate
the difference to
```
\new Staff \with { fontSize = 20 } {
c''
}
```
Werner