Thanks, that's what I was looking for.

-----Ursprüngliche Nachricht-----
Von: lilypond-user
<lilypond-user-bounces+sir.teddy.the.first=gmail....@gnu.org> Im Auftrag von
Aaron Hill
Gesendet: Mittwoch, 1. Juli 2020 16:36
An: lilypond-user@gnu.org
Betreff: Re: Differentiate between contexts

On 2020-07-01 7:08 am, sir.teddy.the.fi...@gmail.com wrote:
> How can I explicitly reference the second ChordNames-Context, 
> preferably by name?

Does this work?  (I assumed you wanted to modify chrdsII.)

%%%%
\version "2.20.0"

\score {
   <<
     \new ChordNames = "chrdsI" \with { chordChanges = ##t }
     \chordmode { e1:min | 1 | 1 | 1 | 1 | 1 | 1 | 1 | }
     \new Staff \relative c' { c1 d e f g a b c | }

     \new ChordNames = "chrdsII" \with { chordChanges = ##t }
     \chordmode { e1:min | 1 | 1 | 1 | 1 | 1 | 1 | 1 | }
     \new Staff \relative c' {
       c1 | 1 | 1 | 1 |
       \context ChordNames = "chrdsII"
         { \set chordChanges = ##f }
       1 | 1 | 1 | 1 |
     }
   >>
}
%%%%


-- Aaron Hill


Reply via email to