Re: Global chord modifications for multiple scores

2019-09-05 Thread Malte Meyn



Am 05.09.19 um 09:27 schrieb Witold Uchman:

Hi all!

Is there a way to globally modify chord properties in multiple scores 
contained in one file? I would like all the chords to be \germanChords 
with chordNameLowercaseMinor = ##t, but I could not find a way to put it 
in the \layout block...


Hi Witold,

the global \layout block is the correct place:

%%
\layout {
  % this was already present:
  \context {
\Lyrics
\override LyricText.self-alignment-X = #-1
  }
  % this is new:
  \context {
\ChordNames
\germanChords
chordNameLowercaseMinor = ##t
  }
}
%%

The \context block contains the name of the context (ChordNames) and all 
\overrides and \sets that should affect all contexts of that kind. The 
\set command has to be omitted.


HTH,
Malte

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Global chord modifications for multiple scores

2019-09-05 Thread Witold Uchman

Hi all!

Is there a way to globally modify chord properties in multiple scores 
contained in one file? I would like all the chords to be \germanChords 
with chordNameLowercaseMinor = ##t, but I could not find a way to put it 
in the \layout block...


Here is the code:

\version "2.18.2"
\language deutsch

\layout{
    \context { \Lyrics \override LyricText.self-alignment-X = #-1 }
}

\score {\transpose g f
    <<
    \chords{
% These two lines are repeated in every score:
    \germanChords
    \set chordNameLowercaseMinor = ##t
    g4. a:m h4:m a:m/c
    g4. a:m h4:m a:m/c
    h4.:m c d4 e
    a4.:m e:m c8 d:7 g4
    g4:/h c8 d4 g
    }
    \relative c'' {
        \cadenzaOn
    \autoBeamOff
    \key g \major
    g8 d g a g a h[ c] a4\bar "|"
    g8 d g a g a h[ c] a4\bar "|"
    h8 a h c h c d4 h\bar "|"
    a8 h c h a g a4 g
    \bar "||"
    g8[ a g] fis4( g)
    \bar "|."
    }
    \addlyrics {
    \set stanza = \markup{\with-color #(rgb-color 0.894 0.207 
0.172) \normal-text{Ant.}}

    Stwór -- co gwiaź -- dzis -- tych prze -- stwo -- rzy
    I wiecz -- ne świa -- tło wie -- rzą -- cych,
    Chrys -- te, coś wszyst -- kich od -- ku -- pił,
    Wy -- słu -- chaj na -- szą mod -- lit -- wę.
    A -- men.
    }
>>
}

--
Witold Uchman


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user