bug-lilypond
[Top][All Lists]
Advanced

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

Re: multimeasure rest bug?


From: Mats Bengtsson
Subject: Re: multimeasure rest bug?
Date: Tue, 24 Mar 2009 22:28:41 +0100
User-agent: Thunderbird 2.0.0.21 (X11/20090318)

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
address@hidden
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: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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