lilypond-user
[Top][All Lists]
Advanced

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

Repeat structures question


From: Menu Jacques
Subject: Repeat structures question
Date: Wed, 3 May 2017 21:04:39 +0200

Hello folks,

As of 2.19.55 in the example below, one can « replicate » the \repeat command 
needed in P_POne_Staff_One_Voice_One in both \chordmode and \lyricmode.
The same score is obtained with the \repeat only in P_POne_Staff_One_Voice_One.

Is such a « replication »  good practice? Are there case where this could lead 
to sync problems between chords, music and lyrics?

Thanks for your advice!

JM

—

\version "2.19.55"

\header {
  title              = "Repeat structures questions"
}

\paper {
}

\layout {
}

P_POne_Harmony_Voice = \chordmode {
  \clef "treble"
  \time 2/4
  \repeat volta 2 {
    f2 | % 2
    c2 | % 3
  }
  f2 | % 4
}

P_POne_Staff_One_Voice_One = \relative {
  \clef "treble"
  \time 2/4
  \repeat volta 2 {
    f'4. ^\markup { \bold Allegro } r8 | % 2
    f8 a8 b8 a8 | % 3
  }
  d,8 \mf d4 e8 | % 4

}

P_POne_Staff_One_Voice_One_Stanza_One = \lyricmode {
  \time 2/4
  \repeat volta 2 {
    Aa Bb Cc Dd Ee
  }
  Ff Gg Hh
}

\score {
  <<
    \new PianoStaff <<
      \set PianoStaff.instrumentName = #"Music"

      \context ChordNames = "P_POne_Harmony_Voice"
      \P_POne_Harmony_Voice

      \new Staff <<
        \context Voice = "P_POne_Staff_One_Voice_One" <<
          \P_POne_Staff_One_Voice_One
        >>
        \new Lyrics
        \lyricsto "P_POne_Staff_One_Voice_One"
        \P_POne_Staff_One_Voice_One_Stanza_One
      >>
    >>
  >>

  \layout {
  }

  \midi {
  }
}




reply via email to

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