On 9/23/2015 10:28 AM, Andreas Stenberg [via Lilypond] wrote:
>Hi!
>
>I need a way to modify the double time signature snippet in LSR to
>produce something where the numerical part looks like the single-digit
>time signature style: something lice
>C 3 with both mensural sign and number centered around the central
>noteline.
How about this (based on LSR #725):

%%%%%%%%%%%%%
%% seehttp://lsr.di.unimi.it/LSR/Item?id=725
%% see alsohttp://lilypond.org/doc/v2.18/Documentation/snippets/rhythms


#(define ((double-time-signature glyph num) grob)
     (grob-interpret-markup grob
            #{
              \markup {
                \line {
                  %\fontsize #0
                  \musicglyph #glyph
                  \lower #1 \number #num
                }
              }
            #}))

\relative c' {
    \override Score.TimeSignature.stencil =
        #(double-time-signature  "timesig.mensural44" "3")
    \time 3/4
    c8 b c d e f g4 g g g4 a8 g f e d2. \bar "|."
}
%%%%%%%%%%%%%



Adjust the \fontsize value to taste (0 means default size, BTW).

Best,
Abraham


Thanks Abraham.

This will work. Also when i mod it to a triple timesignature C 3 ) . (The ")" standing in for a inverted "C")

#(define ((triple-time-signature glyph num glyph_b) grob)
    (grob-interpret-markup grob
           #{
             \markup {
               \line {
                 \fontsize #4
                 \musicglyph #glyph
                 \lower #1 \number #num
                 \fontsize #4
                 \musicglyph #glyph_b
               }
             }
           #}))

\relative c' {
   \override Score.TimeSignature.stencil =
#(triple-time-signature "timesig.mensural64" "3" "timesig.mensural68alt")
   \time 3/4
   c8 b c d e f g4 g g g4 a8 g f e d2. \bar "|."
}

Andreas

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

Reply via email to