Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > ffe16b32b9f5eec0add70c0a6bc8cec8 > files > 11554

lilypond-doc-2.12.2-3mdv2009.1.i586.rpm

%% Generated by lilypond-book.py
%% Options: [alt=[image of music],printfilename,indent=0\mm,texidoc,line-width=160\mm]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************



\paper {
  #(define dump-extents #t)
  
  indent = 0\mm
  line-width = 160\mm
  force-assignment = #""
  line-width = #(- line-width (* mm  3.000000))
}

\layout {
  
}



% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "/home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/input/regression/volta-broken-left-edge.ly"
\sourcefileline 0
\version "2.12.0"

\header {
  texidoc ="Broken volta spanners behave correctly at their left edge in all cases."

}

\layout { ragged-right =##t }

%{


I recently discovered that although the following patch seemed to fix
the original complaint that it causes other problems (the following
tests were done in 1.3.116.

I have attached a file which has several break-volta interactions.

With the test file and unmodified 1.3.116 I see the following:

Bar 3 - 1st volta spanner centered on first note - prefer it to start
closer to key signature (can live with this)
Bar 6 - 1st volta continuation - perfect
Bar 9 - 2nd volta spanner starts on left edge of key signature - prefer
it to start right of key signature
Bar 12 	1st volta starts between first two slurred notes in measure -
this is not acceptable
Bar 17	like above with hairpin.
Bar 23	like above (I had expected this to be OK)
Bar 20	2nd volta continuation perfect

With the test file and 1.3.116 modified as below I see the following:

Bar 3	Perfect
Bar 6	1st volta continuation starts with staff - oops
Bar 9  	2nd volta starts on papers left margin - OOPS!
Bar 12	Perfect
Bar 17 	Perfect
Bar 20	2nd volta continuation starts with staff - oops
Bar 23	Perfect

%}

voiceB =  {
  \clef bass
  \set Staff.instrumentName = "Bass"
  \set Staff.shortInstrumentName = "B"
  \key f \minor 
  \time 4/4  
  f1
  \repeat  volta 2
  {
    f1    \break
  }
  \alternative
  {
    { 	
      f1 f g \break   
      f e d  \break   
    }
    {   
      f1      | 
    }
  }
}
voiceC =  {
  \repeat volta 2
  {
    f f 
    \break
  }
  \alternative
  {
    f
    { f f }
  }
}

voiceD =  {
  \repeat volta 2
  {
    f f 
    \break
  }
  \alternative
  {
    {	f
      }
    {	f f \break f 
      }
  }
}
voiceE =  {
  \repeat volta 2
  {
    f f\break
  }
  \alternative
  {
    {	
      f

    }
    {	
      f f 
    }
  }
}

<<


  \new Staff
  {
    \voiceB 
    \voiceC
    \break
    \voiceD
    \voiceE
  }

>>






% ****************************************************************
% end ly snippet
% ****************************************************************