lilypond-user
[Top][All Lists]
Advanced

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

Re: time signature magic


From: David Nalesnik
Subject: Re: time signature magic
Date: Sat, 23 May 2015 18:12:47 -0500

Alex,

On Sat, May 23, 2015 at 6:08 PM, Alex Jones <address@hidden> wrote:
This worked like a charm, thanks to everyone!


Great!

Thought of something.  Why specify the numbers of the time signature in effect?  Not that it saves much time, but you could do this for a slightly shorter input:

 #(define ((time-parenthesized-time up down) grob)
   (ly:stencil-combine-at-edge
    (ly:time-signature::print grob)
    X RIGHT
    (parenthesize-stencil
     (grob-interpret-markup grob 
       (markup #:override '(baseline-skip . 0) #:number #:column (up down)))
     0.1 0.7 0.7 0.1) ; these numbers affect the parentheses
    0.0 ; padding between columns
    ))

\relative c' {
  \override Staff.TimeSignature.stencil = #(time-parenthesized-time "6" "8")      
  \time 3/4
  b8 b8 gis8 gis4 gis8
}


%%

David

reply via email to

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