Carl,

-----Original Message-----
From: [email protected] on behalf of Carl 
Sorensen
Sent: Fri 12/10/2010 0:06
To: Mark Polesky; [email protected]; Jonathan Wilkes
Subject: Re: How to parenthesize a time signature

On 12/9/10 8:28 AM, "Mark Polesky" <[email protected]> wrote:

> Jonathan Wilkes wrote:
>> Is there a quick way to parenthesize a simple time
>> signature?
> 
> There's a quick way to bracketify a time signature:
> http://lsr.dsi.unimi.it/LSR/Item?id=169
> 
> To get real parentheses requires a little more tweaking.
> Maybe someone who has already done this will chime in.  If
> not, I don't have time right now, but someone could tweak
> the idea in this post to accomplish it:
> http://lists.gnu.org/archive/html/lilypond-user/2009-05/msg00401.html
> 
\version "2.13.42"

\relative c'' {
  \override Staff.TimeSignature #'stencil = #(lambda (grob)
    (parenthesize-stencil (ly:time-signature::print grob) 0.1 0.4 0.4 0.1 ))
  \time 2/4
  a4 b8 c
}


---

I tried to add this to the LSR (along with the other example from Vincente) but 
your snippet failed to compile there. I assume therefore that this will only 
work with a 2.13.x version?

James

PS @LSR People, I have added both examples and this one has most of the 'meat' 
commented out with '[Needs LSR Update] in title which I think is the correct 
policy? Also the original example should probably have its title changed to 
'bracket' rather than 'parenthesis' only that these last two examples 
explicitly use the 'parenthesis grob/engraver' (?).

_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to