Changing the default bar lines: Difference between revisions

m New category
mNo edit summary
Line 1: Line 1:
Default bar lines can be changed when re-defined in a score context.
Default bar lines can be changed when re-defined in a <code>Score</code> context.


<lilypond version="2.24">
<lilypond version="2.24">
% http://lsr.di.unimi.it/LSR/Item?id=964
% LSR https://lists.gnu.org/archive/html/lilypond-user/2014-03/msg00126.html
%%=> http://lists.gnu.org/archive/html/lilypond-user/2014-03/msg00126.html
% LSR https://lists.gnu.org/archive/html/lilypond-user/2014-12/msg00189.html
%%=> http://lilypond.1069038.n5.nabble.com/Changing-the-default-end-repeat-bracket-tc169357.html


\layout {
\layout {
Line 20: Line 19:
{  
{  
   c'1
   c'1
   \repeat volta 2 { \repeat unfold 2 c' }
   \repeat volta 2 { c' c' }
   \repeat volta 2 { \repeat unfold 2 c' }
   \repeat volta 2 { c' c' \alternative { \volta 1 { c' }
  \alternative {  
                                        \volta 2 { c' } } }
    { c' }  
    {  
      %% v2.18 workaround
      \once\override Score.VoltaBracket.shorten-pair = #'(1 . -1)
      c'  
    }  
  }
   \bar "|."
   \bar "|."
}
}