lilypond-user
[Top][All Lists]
Advanced

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

repeats in polymetric score


From: address@hidden
Subject: repeats in polymetric score
Date: Mon, 23 Jul 2018 11:39:01 -0500

How can I use \repeat volta in a polymetric score? Removing 
Default_bar_line_engraver from the Score context and adding it to the Staff 
context seems to be the issue. When I restore Default_bar_line_engraver to the 
Score context then the repeats are displayed, but of course the score isn’t 
polymetric anymore. 

Thanks for your help,
Holland

Here’s an example:
*****************************************************
\version "2.19.30"
\language "english"

\layout {
  \context {
    \Score
    \remove "Bar_number_engraver"
     %allow each part to have its own time signature and barlines
     \remove "Timing_translator"
     \remove "Default_bar_line_engraver"
  }
  
    \context {
    \Staff
    %allow each part to have its own time signature and barlines
    \consists "Timing_translator"
    \consists "Default_bar_line_engraver"
  }
}


violin = \relative c'' {
  \time 5/4
  c4 c c c c
  \repeat volta 2 {
  \time 4/4
  c4 c c c
  }
  c4 c c c
}

violinTwo = \relative c'' {
  \time 4/4
  d4 d d d
  \repeat volta 2 {
  \time 5/4
  d4 d d d d
  }
  \time 4/4
  d4 d d d
}


violinPart = \new Staff \with {
  instrumentName = "Violin"
} \violin

violinTwoPart = \new Staff \with {
  instrumentName = "Violin 2"
}\violinTwo

\score {
  <<
    \violinPart
    \violinTwoPart
  >>
  \layout { }
}
************************************************************


reply via email to

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