... forgoten file enclosed.
Cheers,
Pierre

Le mer. 6 nov. 2019 à 19:22, Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com> a écrit :

> Hi All,
> I'm looking for a way to change the MMR counter stencil.
> Precisely, I need to get those numbers in italic.
> Herewith are pseudo italic numbers (italic-number.ily) and the tests:
>
> \version "2.19.83"
>
> \include "italicNumber.ily"
>
> %Test:
> \layout { indent = 0 }
>
> \markuplist {
>   \number "0 1 2 3 4 5 6 7 8 9"
>   \vspace #.5
>   \line \numberItalic { 0 1 2 3 4 5 6 7 8 9}
>   \vspace #.5
>   \finger "0 1 2 3 4 5 6 7 8 9"
>   \vspace #.5
>   \line \fingerItalic { 0 1 2 3 4 5 6 7 8 9}
> }
>
> % In situ:
> %% !! (since it's not a font, it sometimes required some alignment
> adjustment) !!
>
> {
>   \override Staff.ClefModifier.stencil =
>     #(lambda (grob) (grob-interpret-markup grob
>                       (markup #:scale (cons 0.5 0.5) (#:fing-it-eight))))
>   \clef "G_8"
>
>   \once\override Staff.TimeSignature.stencil =
>     #(lambda (grob) (grob-interpret-markup grob
>                       #{
>                         \markup {
>                         \override #'(baseline-skip . 0)
>                           \column {
>                             \concat { \numberItalic { 1 \hspace #-.2 2 } }
>                             \concat { \hspace #.3 \numberItalic "8" }
>                           }
>                         } #}))
>   \time 12/8
>
>   \override TupletNumber.stencil =
>     #(lambda (grob) (grob-interpret-markup grob
>                       (markup #:scale (cons 0.7 0.7)
>                        (#:translate (cons -1 -1) (#:fing-it-three)))))
>   \tuplet 3/2 { d8[ e f] }
>
>   a2.^\markup\fingerItalic "5" s2
>
>   %% Bad hack:
>   \compressFullBarRests
>   \tweak extra-offset #'(4.1 . -.4)
>   \tweak layer #2
>   \tempo\markup\concat { \whiteout\numberItalic { 2 7 } }
>   R8*12*27
> }
>
> Any idiea for a workaround for the last hack?
> TIA, cheers,
> Pierre
>

Attachment: italicNumber.ily
Description: Binary data

Reply via email to