\partial with full measure rests

2010-09-07 Thread Jayaratna

Dear all,

I have been checking old posts for this same problems, but my case is
slightly different, and I would like to ask your opinion/advice on this.

I have a score ending with a partial measure, and some parts do not play on
that measure.

For instance part a ends like this:

\time 2/2 
 g2 fis4. g8 \bar ||
\time 3/4 \partial 2
 g2^Tous \bar ||

part b ends like this:

\time 2/2
R1 \bar ||
\time 3/4 \partial 2
R2 \bar ||

Lilypond gives a warning, and when I process part b the rest in the last
measure is not shown. If I use a normal r2 rest, the result is that I cannot
hide part b in the full score, even if I want it to be hidden (because of
its rests).

I hope this is not too confusing, I hope to get this last measure working.

Thank you,
Andrea
Venice, Italy




-- 
View this message in context: 
http://old.nabble.com/%5Cpartial-with-full-measure-rests-tp29641615p29641615.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Re: \partial with full measure rests

2010-09-07 Thread Wols Lists
 On 07/09/10 19:58, Jayaratna wrote:
 Dear all,

 I have been checking old posts for this same problems, but my case is
 slightly different, and I would like to ask your opinion/advice on this.

 I have a score ending with a partial measure, and some parts do not play on
 that measure.

 For instance part a ends like this:

 \time 2/2 
  g2 fis4. g8 \bar ||
 \time 3/4 \partial 2
  g2^Tous \bar ||

 part b ends like this:

 \time 2/2
   R1 \bar ||
 \time 3/4 \partial 2
   R2 \bar ||

 Lilypond gives a warning, and when I process part b the rest in the last
 measure is not shown. If I use a normal r2 rest, the result is that I cannot
 hide part b in the full score, even if I want it to be hidden (because of
 its rests).

 I hope this is not too confusing, I hope to get this last measure working.
The problem is, I think, dead simple. You've misunderstood \partial,
and you shouldn't be using it.

What partial does is rewind the clock back, which isn't at all what
you think it's doing. What you're trying to tell lilypond is that your
last bar consists of beats 1  2. What you've actually told lilypond is
that your last note, R2, is on the last beat (2/2) of the previous bar.

Cheers,
Wol


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


Re: \partial with full measure rests

2010-09-07 Thread Xavier Scheuer
On 7 September 2010 20:58, Jayaratna jayara...@gmail.com wrote:

 Dear all,

 I have been checking old posts for this same problems, but my case
 is slightly different, and I would like to ask your opinion/advice
 on this.

 I have a score ending with a partial measure, and some parts do not
 play on that measure.

 For instance part a ends like this:

 \time 2/2
 g2 fis4. g8 \bar ||
 \time 3/4 \partial 2
 g2^Tous \bar ||

 part b ends like this:

 \time 2/2
R1 \bar ||
 \time 3/4 \partial 2
R2 \bar ||

 Lilypond gives a warning, and when I process part b the rest in the
 last measure is not shown. If I use a normal r2 rest, the result is
 that I cannot hide part b in the full score, even if I want it to be
 hidden (because of its rests).

 I hope this is not too confusing, I hope to get this last measure
 working.


Hi!

I have had the exactly same problem!
And Nicolas Sceaux gave me a workaround here:
http://lists.gnu.org/archive/html/bug-lilypond/2009-10/msg00011.html

Please try the following code:

%%%
%%% The following hack make regular rests hara-kiri-able
%%%
#(let* ((rest-def (assoc 'Rest all-grob-descriptions))
(meta-def (assoc 'meta (cdr rest-def)))
(interfaces-def (assoc 'interfaces (cdr meta-def)))
(interfaces (filter (lambda (interface)
(not (eqv? interface 'rhythmic-grob- interface)))
(cdr interfaces-def
(set-cdr! interfaces-def interfaces))


A bug report has been added to the tracker.
I hope somebody will start working on this issue...
  Issue 849: Rests should not keep staves alive
  http://code.google.com/p/lilypond/issues/detail?id=849

Cheers,
Xavier

--
Xavier Scheuer x.sche...@gmail.com

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


Re: \partial with full measure rests

2010-09-07 Thread Xavier Scheuer
On 7 September 2010 21:34, Andrea jayara...@gmail.com wrote:

 Hi Xavie,

 thank you for your prompt rely: wher do I have to put that code?
 Just before the last measure?

Er...
I think I had put it at the beginning of the files.

But I have not specified that the goal of this code is to make normal
rests (i.e. used within \partial ) disappear when using
\RemoveEmptyStaffContext .

Cheers,
Xavier

--
Xavier Scheuer x.sche...@gmail.com

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