bug-lilypond
[Top][All Lists]
Advanced

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

Re: Isolated example for : Variable used before given a value: prev-offs


From: Phil Holmes
Subject: Re: Isolated example for : Variable used before given a value: prev-offset - msg#00076
Date: Sat, 4 Dec 2010 17:56:22 -0000

It compiles fine on my system on both 2.12 and 2.13.41 - albeit with, to my eyes, strange but the same output on both.

--
Phil Holmes
Bug Squad


<address@hidden> wrote in message news:address@hidden
Hello,

I finally traced where the problem is. I am sending the example.
What is strange is that it works with 2.12 (latest version) and not on the
lates dev version 2.13-41-1

Sorry it is not that concise, but it is still 2 measures long (the first
measure is for comparison)

Apparently what's wrong is the \override Rest #'Y-offset = #0 override in
the second measure (see comment in code). And moreover, if we change this
second measure into a simple 2/8 it works.

Here is the code. Hope this helps

Best regards

Karim Haddad


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\version "2.13"



"ctb" =
{
\clef "G_8"
#(set-accidental-style 'dodecaphonic)
%%%%%%%%%%%%%%%%%%%%%%% MESURE : 27 %%%%%%%%%%%%%%%%%%%%%%%
\time 2/8
\override Rest #'Y-offset = #0
\times 2/3 {
r16[
c'8]
}
r8


%%%%%%%%%%%%%%%%%%%%%%% MESURE : 53 %%%%%%%%%%%%%%%%%%%%%%%
\time 6/8
\clef "F_8"
<<
{


%%%Here is the problem if we uncomment it doesn't work
%%%Uncommented it will work if we change the time signature to 2/8 and
remove the last rest
%\override Rest #'Y-offset = #0
\override Beam #'positions = #'(6 . 6)
\override TieColumn #'tie-configuration = #'((-1 . -1))
r16.[
disih,32~
\revert Score.NoteHead #'X-extent
\revert Score.Accidental #'X-extent
\revert Beam #'positions
disih,16.
d,32\rest]
%\revert Stem #'stemlet-length
%\override Stem #'stemlet-length = #0.75
}\\

{s16.
%\override Score.GraceMusic #'length = #(ly:make-moment 1 64)
\override  TupletBracket #'transparent =##t
\override  TupletNumber #'transparent =##t
\override Staff.Beam #'thickness = #'0.30
\override Beam #'positions = #'(-6 . -6)
\set stemLeftBeamCount = #0
\set stemRightBeamCount = #1
\once \override TextScript #'extra-offset = #'(2 . -15.0)
#(define beforeGraceFraction (cons 1 10))
#(define afterGraceFraction (cons 1 10))

\override Score.GraceSpacing #'X-extent = #'(0 . 0)
\override Score.NoteSpacing #'X-extent = #'(0 . 0)
\override Score.Stem #'X-extent = #'(0 . 0)

%\override Score.Accidental #'X-extent = #'(0 . 0)
#(set-accidental-style 'forget)
\afterGrace
disih,8*5/4[]_.-> \p \> ^\markup { \draw-line #'(-2.5 . 4)} (
{

\override Score.SpacingSpanner #'strict-grace-spacing = ##f
\override Score.SpacingSpanner #'uniform-stretching = ##f


\set stemLeftBeamCount = #1
\override  NoteHead #'transparent =##t
\override  Accidental #'transparent =##t
\override Score.GraceSpacing #'X-extent = #'(0 . 0)
\override Score.NoteHead #'X-extent = #'(0 . 0)
\override Score.Accidental #'X-extent = #'(0 . 0)
%\times 1/11{

f,,8*1/256 _.[
f,,_. f,,_. f,,_. f,,_. f,,_. f,,_. f,,_. f,,_. f,,_. f,,_. f,,_.
f,,_.]\! \pp)}

\revert Staff.Beam #'thickness
\revert Score.NoteHead #'X-extent
\revert Score.Accidental #'X-extent
\revert Score.NoteSpacing #'X-extent
\revert  Score.Stem #'X-extent
\revert Beam #'positions
#(set-accidental-style 'dodecaphonic)
%}
%s32
}


r2
}







\score {
{
<<
\tempo 4=40



\new StaffGroup
<<


\new Staff  {
\set Staff.midiInstrument = #"flute"
\set Staff.instrumentName = "Ctb.  "
\set Staff.shortInstrumentName = "ctb.  "
\ctb

}





}

}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%




reply via email to

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