Hello Walt, the reason is that by default contexts will be ordered in order of creation. So your intro creates the Staff, and then your first Verse will create first a ChordNames and then a Lyrics context.
You can use the alignAboveContext context property to change this default
ordering:
\version "2.24.2"
chrds = \chordmode {
a1:m | }
verseOneNotes = \relative c' {
\partial 2 e4 g |
a2. c4 |
}
verseOneLyric = \lyricmode {
Far o- ver the
}
intro = <<
\new Voice {
\section \sectionLabel \markup { \box \bold \fontsize #-1 "Intro" }
\verseOneNotes
}
>>
verseOne = <<
\new ChordNames \with { alignAboveContext = "staff" } { \partial 2 r2 |
\chrds }
\new Voice = "One" {
\section \sectionLabel \markup { \box \bold \fontsize #-1 "Verse
One" }
\verseOneNotes
}
\new Lyrics \lyricsto "One" {\verseOneLyric }
>>
sc = {
\intro \break
\verseOne \break
}
\score { \new Staff = "staff" \sc }
Cheers, Valentin
Am Donnerstag, 8. August 2024, 18:00:27 MESZ schrieb Walt North:
> Below is a sample of an issue I am having with chords, Voice, and
> Lyrics. I want the chords to be above the voice line. But in this case
> it printing between the voice line and the lyrics. But if I comment out
> the "intro" section then the chords print as expected. I am
> intentionally leaving chords out of the intro section - I want them to
> come in when the voice starts..
>
> Thanks for any insight
>
> Walt North
>
>
> \version "2.24.2"
>
> chrds = \chordmode {
> a1:m | }
>
> verseOneNotes = \relative c' {
> \partial 2 e4 g |
> a2. c4 |
> }
>
> verseOneLyric = \lyricmode {
> Far o- ver the
> }
>
> intro = <<
> \new Voice {
> \section \sectionLabel \markup { \box \bold \fontsize #-1 "Intro" }
> \verseOneNotes
> }
>
>
> verseOne = <<
> \new ChordNames { \partial 2 r2 | \chrds }
> \new Voice = "One" {
> \section \sectionLabel \markup { \box \bold \fontsize #-1 "Verse
> One" }
> \verseOneNotes
> }
> \new Lyrics \lyricsto "One" {\verseOneLyric }
>
>
> sc = {
> \intro \break
> \verseOne \break
> }
>
> \score { \sc }
>
>
> If I comment out the intro as below then the chords show as expected.
>
> sc = {
> % \intro \break
> \verseOne
> }
>
> \score { \sc }
signature.asc
Description: This is a digitally signed message part.
