lilypond-user
[Top][All Lists]
Advanced

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

Re: Ending repeat bar not rendering


From: Klaus Blum
Subject: Re: Ending repeat bar not rendering
Date: Wed, 1 Feb 2017 14:15:42 -0700 (MST)

Hi MikVar, 

welcome to the list! 


MikVar wrote
> no matter what I try, the ending repeat bar is swallowed by the engraver. 

The solution should be quite simple: Don't change the repeat bar lines that
are automatically created by the \repeat commands. 

% ------------------------------------------------------
\version "2.19.54"

\header {
  title = "Repeat Bar Issue"
}

\layout {
  indent = #0
  \context {
    \Score
    \remove "Bar_number_engraver"
  }
}
 
\score {
  \new DrumStaff {
    \override Score.TimeSignature.break-visibility = ##(#f #t #t)

    \drummode {
      \stemUp

      \time 4/4
      \mark "1"
      
      \bar ".|:"
      \repeat volta 2 {
        sn4 _ "R" sn _ "L" sn _ "R" sn _ "L" 
      }

      \bar ":|.|:"

      \mark "2"
      \repeat volta 2 {
        sn4 _ "R" sn _ "L" sn _ "R" sn _ "L" 
      }
      
      % Repeat bar will not display:
      % \bar ":|."   % not necessary
    
      \break
      
      \time 4/4
      \mark "3"
      % \bar ".|:"   % not necessary
      \repeat volta 2 {
        sn4 _ "R" sn _ "L" sn _ "R" sn _ "L" 
      }

      \bar ":|.|:"

      \mark "4"
      \repeat volta 2 {
        sn4 _ "R" sn _ "L" sn _ "R" sn _ "L" 
      }
      
      \break

    }
  }
}
% ------------------------------------------------------

If you want your changes to the middle repeat line to be done automatically,
you can even try this:

% ------------------------------------------------------
\version "2.19.54"

\header {
  title = "Repeat Bar Issue"
}

\layout {
  indent = #0
  \context {
    \Score
    \remove "Bar_number_engraver"
  }
}

\score {
  \new DrumStaff {
    \override Score.TimeSignature.break-visibility = ##(#f #t #t)

    \drummode {
      \stemUp

      \time 4/4
      \mark "1"

      \bar ".|:"
      \repeat volta 2 {
        sn4 _ "R" sn _ "L" sn _ "R" sn _ "L"
      }

      \mark "2"
      \repeat volta 2 {
        sn4 _ "R" sn _ "L" sn _ "R" sn _ "L"
      }

      \break

      \time 4/4
      \mark "3"
      \repeat volta 2 {
        sn4 _ "R" sn _ "L" sn _ "R" sn _ "L"
      }

      \mark "4"
      \repeat volta 2 {
        sn4 _ "R" sn _ "L" sn _ "R" sn _ "L"
      }

      \break

    }
  }
}

\layout {
  \context {
    \Score
    % defaultBarType = #"|"
    % startRepeatType = #".|:"
    doubleRepeatType = #":|.|:"
    % endRepeatType = #":|."
  }
}
% ------------------------------------------------------

Cheers, 
Klaus





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Ending-repeat-bar-not-rendering-tp199659p199663.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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