Re: ChordGrid and chordNameExceptions

Hans Aikema <[email protected]>
Newsgroups gmane.comp.gnu.lilypond.general
Message-ID <[email protected]>

> On 5 Aug 2026, at 12:51, Thomas Morley <[email protected]> wrote:
> 
> Am Mi., 5. Aug. 2026 um 12:19 Uhr schrieb Hans Aikema <[email protected]>:
>> 
>> I've no clue why the outcome is different. (Image attached)
>> 
>> 
>> I’d say (on second read)… it would be because "This context also accepts commands for the following context(s): Score and Timing. “ [1]
>> 
>> [1] https://lilypond.org/doc/v2.27/Documentation/internals/chordgridscore
>> 
>> 
> 
> Well, yes.
> And that's why I do not understand:

> 
> %% not working:
>  \layout {
>    \context {
>      \Score
>      chordNameExceptions = \myException
>    }
>  }
> 
> %% works:
> \layout {
>    \set Score.chordNameExceptions = \myException
>  }

> 
> %% Setting it in the music like below works as well:
>  \new ChordGrid \chordmode {
>    \set Score.chordNameExceptions = \myException
>    c1:1.3.5+
>  }

I would say it can be explained as
1) Is a customisation of the Score context, not a command for the Score context
2) and 3) are commands for the Score context
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.