Hi Laura,

On Tue, Sep 18, 2012 at 11:46 AM, Laura Conrad <lcon...@laymusic.org> wrote:
>
> I have managed to modify the compound time snippet to print a
> neomensural time signature like "C3".
>
> Now I want one with the 2/2 C style instead of the 4/4 style.
>
> My code (don't laugh too hard, I just fiddled until it worked) looks
> like:
>
> settime = {
> #(define ((compound-time one two num) grob)
>    (grob-interpret-markup grob
>                           (markup  #:override '(baseline-skip . 0)
>                                    #:number
>                                   (#:line ((#:vcenter "C")
>                                           (#:vcenter "3"))))))
>
>   \override Staff.TimeSignature #'stencil = #(compound-time "C" "3" "1")
>   \time 3/2
>
> }
>
> It surprised me that "C" actually produces something like the time
> signature "C", although it isn't typographically much like the time
> signature "3", and I don't think it's actually the timesig.44 glyph.
>
> So how do I get the timesig.22 glyph in there instead of the C?
>
> I've really tried a lot of stuff with \markup and \musicglyph, and it
> doesn't seem to work in this context, although if I put plain strings in
> there, they print instead of the "C".
>

You're very close!  The problem appears to be that you're not using
the correct name for the glyphs you want.  The glyphs are
"timesig.C22" and "timesig.C44"

So you'll get the "C" glyph like so:

\version "2.16.0"

settime = {
#(define ((compound-time one two num) grob)
   (grob-interpret-markup grob
                          (markup  #:override '(baseline-skip . 0)
                                   #:number
                                  (#:line ((#:vcenter #:musicglyph
"timesig.C44")
                                          (#:vcenter two))))))

  \override Staff.TimeSignature #'stencil = #(compound-time "C" "3" "1")
  \time 3/2
}

{
  \settime
  c2 c c
}

HTH,
David

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to