lilypond-user
[Top][All Lists]
Advanced

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

RE: How to parenthesize a time signature


From: James Lowe
Subject: RE: How to parenthesize a time signature
Date: Fri, 10 Dec 2010 02:22:33 -0500

Carl,


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

On 12/9/10 8:28 AM, "Mark Polesky" <address@hidden> 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' (?).



reply via email to

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