lilypond-user
[Top][All Lists]
Advanced

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

Manual repeat and line break.


From: Walt North
Subject: Manual repeat and line break.
Date: Wed, 25 Dec 2024 11:55:06 -0800
User-agent: Mozilla Thunderbird

Well... after sending this I started thinking about a different question I had asked a while back and realized I could leverage that to get what I need.   it's not really ideal but it will work.

Refer to code below and the screen shot. Once i get the structure laid out I'll work on making it prettier.

The desired end result to match the James Taylor song (plus some extra parts I'm adding in) is :


AA BB CC

BB DD

AA BB EE

AA  FF

Note of course each of these will be much longer than just two measures in the real song. And that D D, E E, and F F do match each other structurally otherwise I could have taken a simpler approach.


\version "2.24.4"

\layout {
  \context {
    \ChordNames
    \override BarLine.bar-extent = #'(0 . 2)
    \consists "Bar_engraver"
  }
}

ch = \chordmode {
  a1 a \break
  \repeat volta 2 {
    b b
    \alternative {
      \volta 1 { c c }
    }
  }
  <<
    \chordmode { d d  \break e e  \break f f  }
    \chordmode {
      \set Score.repeatCommands = #'((volta #f) (volta "2.") end-repeat)
      s1
      \set Score.repeatCommands = #'((volta #f) )
      s1
      \set Score.repeatCommands = #'((volta #f) (volta "3.") )
      s1
      \set Score.repeatCommands = #'((volta #f) )
   }
  >>
}

\score {
  <<
    \new ChordNames {\ch}
    \new Staff \relative c' { a1^\segno a^"To Coda" b  b c c
                              d d^"d.s."
                               e e^"d.s. al coda"
                              f^\coda f  }
  >>

}



reply via email to

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