multimeasure rest bug?

2009-03-24 Thread Shane Brandes
Hello,

  I have found a peculiar thing concerning multi measure rests. In trying to use
R1 to center a full rest in a partial bar of a piece the rest disappears when R1
is used as R1*1/4 in order to create the correct duration of the rest.  
Below is the relevant snippet. 

\version "2.12.0"

global = {
  \key c \major
  \time 3/4
}

right = \relative c'' {
  \global
  \override Staff.TimeSignature #'style = #'mensural
 \partial 4*1
 a4*1/4 g f g 
 \bar":" 
 a2*1/4 a b c b1*1/4 a g2*1/4 f1*1/4 e2*1/4
}

left = \relative c' {
  \global
  \override Staff.TimeSignature #'style = #'mensural
 R1*1/4 d2*1/4 d d a g a  c  b1*1/4 a  c2*1/4
}


\score {
  <<
\new PianoStaff \with {
  instrumentName = "Organ"
} <<
  \new Staff = "right"\right
  \new Staff = "left"  \left  >> >> }



___
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: multimeasure rest bug?

2009-03-24 Thread David Bobroff
Trying it out myself it occurred to me that what you're possibly running 
into is that full bar rests need to occupy full bars.  I haven't checked 
the docs on that matter but I'd bet that's the reason.  If you change 
your R1*1/4 o r1*1/4 you'll get a whole rest.  It won't be centered 
without some extra adjustments, though.


Perhaps you could fake the first "measure" of the left hand with 
something like:



 s4*1/4 r1*1/8 s4*1/4 d2*1/4 d d a g a  c  b1*1/4 a  c2*1/4

I tried this and it looks about centered.

Shane Brandes wrote:

Hello,

  I have found a peculiar thing concerning multi measure rests. In trying to use
R1 to center a full rest in a partial bar of a piece the rest disappears when R1
is used as R1*1/4 in order to create the correct duration of the rest.  
Below is the relevant snippet. 


\version "2.12.0"

global = {
  \key c \major
  \time 3/4
}

right = \relative c'' {
  \global
  \override Staff.TimeSignature #'style = #'mensural
 \partial 4*1
 a4*1/4 g f g 
 \bar":" 
 a2*1/4 a b c b1*1/4 a g2*1/4 f1*1/4 e2*1/4

}

left = \relative c' {
  \global
  \override Staff.TimeSignature #'style = #'mensural
 R1*1/4 d2*1/4 d d a g a  c  b1*1/4 a  c2*1/4
}


\score {
  <<
\new PianoStaff \with {
  instrumentName = "Organ"
} <<
  \new Staff = "right"\right
  \new Staff = "left"  \left  >> >> }



___
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond





___
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: multimeasure rest bug?

2009-03-24 Thread Mats Bengtsson
It seems that you spend large efforts on scaling all durations, just to 
be able to obtain the desired time signature. The same result can be 
obtained much easier as shown in the following examples. Also, the 
solution to your multimeasure rest problem is probably easiest to solve 
by changing the measure length used internally by LilyPond:


\version "2.12.0"

global = {
 \key c \major
}

right = \relative c'' {
 \global
 \override Score.TimeSignature #'style = #'mensural
\time 4/4
 \set Timing.timeSignatureFraction = #'(3 . 4)
a4 g f g
\bar":"
\once \override Score.TimeSignature #'stencil = ##f
\time 3/1
a2 a b c b1 a g2 f1 e2
}

left = \relative c' {
 \global
R1 d2 d d a g a c  b1 a  c2
}


\score {
 <<
   \new PianoStaff \with {
 instrumentName = "Organ"
   } <<
 \new Staff = "right"\right
 \new Staff = "left"  \left  >> >> }



Here's an alternative solution that doesn't use \time at all, but only 
sets the relevant properties directly, instead.


\version "2.12.0"

global = {
 \key c \major
 \override Score.TimeSignature #'style = #'mensural
 % This one is used to select the printed time signature:
 \set Timing.timeSignatureFraction = #'(3 . 4)
}

right = \relative c'' {
 \global
%\time 4/4
 % Only change the measure length:
 \set Timing.measureLength = #(ly:make-moment 4 4)
a4 g f g
\bar":"
\once \override Score.TimeSignature #'stencil = ##f
%\time 3/1
 \set Timing.measureLength = #(ly:make-moment 3 1)
a2 a b c b1 a g2 f1 e2
}

left = \relative c' {
 \global
R1 d2 d d a g a c  b1 a  c2
}


\score {
 <<
   \new PianoStaff \with {
 instrumentName = "Organ"
   } <<
 \new Staff = "right"\right
 \new Staff = "left"  \left  >> >> }


  /Mats


Shane Brandes wrote:

Hello,

  I have found a peculiar thing concerning multi measure rests. In trying to use
R1 to center a full rest in a partial bar of a piece the rest disappears when R1
is used as R1*1/4 in order to create the correct duration of the rest.  
Below is the relevant snippet. 


\version "2.12.0"

global = {
  \key c \major
  \time 3/4
}

right = \relative c'' {
  \global
  \override Staff.TimeSignature #'style = #'mensural
 \partial 4*1
 a4*1/4 g f g 
 \bar":" 
 a2*1/4 a b c b1*1/4 a g2*1/4 f1*1/4 e2*1/4

}

left = \relative c' {
  \global
  \override Staff.TimeSignature #'style = #'mensural
 R1*1/4 d2*1/4 d d a g a  c  b1*1/4 a  c2*1/4
}


\score {
  <<
\new PianoStaff \with {
  instrumentName = "Organ"
} <<
  \new Staff = "right"\right
  \new Staff = "left"  \left  >> >> }



___
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond
  



--
=
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: mats.bengts...@ee.kth.se
WWW: http://www.s3.kth.se/~mabe
=



___
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond


starting with multimeasure rest bug

2005-05-06 Thread David Bobroff
The following *.ly snippet: 

\version "2.5.24"

\score {
  \relative c {
\set Score.skipBars = ##t
R1*9
  }
}

Produces this console output:

Interpreting music... [1]
Preprocessing graphical objects... 
Calculating line breaks... 
programming error: Multi_measure_rest::get_rods (): I am not spanned!
continuing, cross fingers
[2]
Calculating page breaks...
Layout output to `test.ps'...
Converting to `test.pdf'...

And there is no multimeasure rest displayed when the score starts with a
multimeasure rest.  Subsequent multimueasure rests are fine -- even if
one is added immediatley after the first one.  This is with recent CVS
(ChangeLog 1.3560)

-David



___
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond