bug-lilypond
[Top][All Lists]
Advanced

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

Re: lead sheet chords position with \alternative


From: Mats Bengtsson
Subject: Re: lead sheet chords position with \alternative
Date: Sun, 17 Apr 2005 12:36:47 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050319

This clearly looks like a bug. The difference between the following two
scores illustrates how the second alternative begins too early when
the voltas are moved to the chords. The same bug happens in both
versions 2.4.5 and 2.5.19.

\score {
    <<
  \new ChordNames \chordmode {
     c1 c b
  }
  \new Staff {
   \repeat volta 2 { c'1 } \alternative {{ c' } {b} }
  }
>>
}

% The beginning of the secunda volta is horizontally misplaced:
\score {
    <<
  \new ChordNames \with {
      voltaOnThisStaff = ##t
  } \chordmode {
     c1 c b
  }
  \new Staff \with {
      voltaOnThisStaff = ##f
  }  {
   \repeat volta 2 { c'1 } \alternative {{ c' } {b} }
  }
>>
}

   /Mats


address@hidden wrote:
Hi Mats, hi list!

I used your solution and it worked very well even if in my lead sheet,  there
is still a small problem: the sign of the \alternative for the second time,
seems to be slightly in a wrong position (over the previous bar line)  and
the last part of the first repeat is hidden.
In the same message, there is an example by Paul Scott, that doesn't show
this problem, but he uses another syntax. Maybe it is a bug. Could you please
help me to understand which is the difference between the two examples? I
modified your example a bit in order to have two endings for the \alternative

Thanks Libero

---------------Paul Scott example ----------------
\score{
 <<
   \new ChordNames \chords{
     \repeat volta 2 {
       f1:maj f:7} \alternative{{bes:7}{c:maj}}
   }
   \new Staff \relative c'{
     \repeat volta 2 { c4 d e f g a b c } \alternative{{g2 e }{c1}}
   }
 >>
 \layout { %was paper
   \context {
     \Score %was ScoreContext
     \consists "Volta_engraver"
     \override VoltaBracket #'minimum-space = #0
   }
   \context {
     \Staff %was \StaffContext
     \remove "Volta_engraver"
   }
 }
}
------------------Mats example --------------------------
\version "2.4.0"
\score {
    <<
  \new ChordNames \with {
      voltaOnThisStaff = ##t
  } \chordmode {
     c1 c b
  }
  \new Staff \with {
      voltaOnThisStaff = ##f
  }  {
   \repeat volta 2 { c'1 } \alternative {{ c' } {b} }
  }

}


-- Original Message --
Date: Sat, 16 Apr 2005 14:17:32 +0200
From: Mats Bengtsson <address@hidden>
To:  address@hidden
CC:  address@hidden
Subject: Re: lead sheet chords position with \alternative


See http://lists.gnu.org/archive/html/lilypond-user/2004-11/msg00806.html

  /Mats




--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
        Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================




reply via email to

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