lilypond-user
[Top][All Lists]
Advanced

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

Re: Differentiate between contexts


From: Aaron Hill
Subject: Re: Differentiate between contexts
Date: Wed, 01 Jul 2020 07:35:50 -0700
User-agent: Roundcube Webmail/1.4.2

On 2020-07-01 7:08 am, sir.teddy.the.first@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

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