Re: ChordGrid and chordNameExceptions
Thomas Morley <[email protected]>
| Newsgroups | gmane.comp.gnu.lilypond.general |
|---|---|
| Message-ID | <CABsfGyVcSQf0YuJoPAxiFsLEd7qbK=GowccgNinhdBzY_bjm9Q@mail.gmail.com> |
Am Di., 4. Aug. 2026 um 16:58 Uhr schrieb Eric Benson <[email protected]>: > > Thanks! So ChordNames are in a \Score context, but ChordGrid has its own separate \ChordGridScore context. > > On Tue, Aug 4, 2026 at 1:20 AM Thomas Morley <[email protected]> wrote: >> >> Am Mo., 3. Aug. 2026 um 22:12 Uhr schrieb Eric Benson <[email protected]>: >> > >> > >> > >> > On Mon, Aug 3, 2026 at 12:49 PM Carl Sorensen <[email protected]> wrote: >> >> >> >> >> >> >> >> On Mon, Aug 3, 2026, 1:35 PM Eric Benson <[email protected]> wrote: >> >>> >> >>> I started experimenting with LilyPond's ChordGrid display. I can't find very many examples using it, so I guess it isn't very popular yet. I'm using Brandt and Roemer chord names instead of the built-in Ignatzek chord names, using chordNameExceptions for that purpose. It looks like ChordGrid doesn't follow chordNameExceptions. Am I doing something wrong, or is that intentional? Is there another way to supply my own chord names in the ChordGrid context? >> >> >> >> >> >> Please post a small example to the lists we can see what you're trying. >> >> >> >> Thanks, >> >> >> >> Carl >> >> Amend your \layout like: >> >> \layout { >> indent = 0 >> ragged-right = ##t >> \context { >> \ChordGridScore >> chordNameExceptions = #jazzChordsAdd >> } >> \context { >> \Score >> chordNameExceptions = #jazzChordsAdd >> } >> } >> >> Works for me. >> >> Cheers, >> Harm Although you have a working solution, there's something strange. Consider: \version "2.27.2" myExceptionMusic = { <c e gis>-\markup \super { "5<" } } myException = #(append (sequential-music-to-chord-exceptions myExceptionMusic #t) ignatzekExceptions) \score { \new ChordGrid \chordmode { c1:1.3.5+ } \layout { \context { \Score chordNameExceptions = \myException } } } \score { \new ChordGrid \chordmode { \set Score.chordNameExceptions = \myException c1:1.3.5+ } \layout { } } I've no clue why the outcome is different. (Image attached) Cheers, Harm
atest-122.cropped.png
(image/png, 1.3 KB) - not displayed