Hi,

On Wed, May 7, 2014 at 3:13 AM, Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com> wrote:

> 2014-05-07 0:01 GMT+02:00 Kate Sekula <ksek...@usao.edu>:
>
> Is there a way to have a decimal, such as 3.5, as the numerator in a time
>> signature?
>>
>
> Try :
>
> %%%%%%%%%%%%%%%%%%%
> \version "2.18.2"
>
> decimalTS = \markup {
>
>    \override #'(baseline-skip . 0.5)
>
>    \column {
>
>      \concat { \hspace #1 \number 4 }
>
>      \concat { \number 3 \magnify #2 . \number 5 }
>
>    }
>
> }
>
>
> \relative c' {
>
>    \override Staff.TimeSignature.stencil = #(lambda (grob)
>
>      (grob-interpret-markup grob decimalTS))
>
>    \time 4/4
>
>    \cadenzaOn
>
>    c1
>
> }
> %%%%%%%%%%%%%%%%%%
>

The poster wants the decimal number on top, so just exchange the lines in
the column.  Also, you can use \center-column so you don't have to estimate
\hspace values:


%%%%%%%%%%%%%%%%%%%

\version "2.18.2"

decimalTS = \markup {

  \override #'(baseline-skip . 0.5)

  \center-column {

    \concat { \number 3 \magnify #2 . \number 5 }

    \concat { \number 4 }

  }

}


 \relative c' {

  \override Staff.TimeSignature.stencil = #(lambda (grob)

    (grob-interpret-markup grob decimalTS))

  \time 7/8

  c2. ~ c8

}

%%%%%%%%%%%%%%%%%%%


HTH,

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

Reply via email to