lilypond-user
[Top][All Lists]
Advanced

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

Re: parenthesize compound time sig


From: Thomas Morley
Subject: Re: parenthesize compound time sig
Date: Tue, 28 Aug 2012 10:10:02 +0200

2012/8/28 David Bobroff <address@hidden>:
> I thought I had the solution already in a file but I can't find it.   I
> have a compound time signature defined and I would like to enclose the
> whole thing in ().   I found the snippet for enclosing a standard time
> signature but I couldn't work out how to adapt it.
>
>
> #(define ((compound-time one two three four) grob)
>    (grob-interpret-markup grob
>                           (markup #:override '(baseline-skip . 0) #:number
>                                   (#:line ((#:column (one two))
>                                            #:vcenter ""
>                                            (#:column (three four)))))))
>
> \score{
>     \override Staff.TimeSignature  #'stencil = #(compound-time "9" "8"
> "3" "4")
> }
>
> Help?
>
> -David
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user

Hi David,

is it this what you want?

#(define ((compound-time one two three four) grob)
   (grob-interpret-markup grob
                          (markup #:override '(baseline-skip . 0)
                                  #:parenthesize
                                  #:number
                                  (#:line ((#:column (one two))
                                           #:vcenter ""
                                           (#:column (three four)))))))

\relative c'' {
    \override Staff.TimeSignature  #'stencil = #(compound-time "9" "8" "3" "4")
    c2.
}

Regards,
  Harm



reply via email to

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