lilypond-user
[Top][All Lists]
Advanced

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

Re: Display "r2" as r1? -- SOLVED!


From: PMA
Subject: Re: Display "r2" as r1? -- SOLVED!
Date: Mon, 28 Nov 2011 09:56:39 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20101227 Iceape/2.0.11

Here's my snake-oil function for the centered whole-rest.
In 4/4 & proportional notation, it's working like a charm!

REST = {
   s2
   \once \override NoteHead  #'stencil = #ly:text-interface::print
   \once \override NoteHead #'text = \markup { \musicglyph #"rests.0" }
   \once \override Stem #'transparent = ##t
   e'2
}

Thanks for listening.
Pete


PMA wrote:
Hi List.

With many multi-bar rests, my 10-staff StaffGroup in compilation
dies of segmentation fault. With each multibar rest replaced by
however many R1's, it dies still.

So I've now replaced every R1 with "s2 r2" (which compiles fine),
hoping next to tell Lilypond to *print* that centered "r2" as an r1.

But I don't see a way to persuade it. Is there a trick that would
accomplish this -- something akin to

\once \override Rest #'glyph = #"rests.0" r2

? (That fails, of course.)

Or, addressing the original problem -- is there a way to make
StaffGroup happy in the first place with multi-bar rests?

Thanks for any consideration.

Best regards,
Pete



reply via email to

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