lilypond-user
[Top][All Lists]
Advanced

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

Re: Good recipe for numeric scale degree? (numerals with hat/caret)


From: Steve Lacy
Subject: Re: Good recipe for numeric scale degree? (numerals with hat/caret)
Date: Wed, 16 Dec 2015 14:08:16 -0800

Wow that looks pretty great, thanks! 

On Wed, Dec 16, 2015 at 2:06 PM, Klaus Blum <address@hidden> wrote:
Hi Steve,

what about

% ----------------------------------------------
#(set-global-staff-size 48)

#(define-markup-command (hat layout props text) (markup? )
   (interpret-markup layout props
     #{
       \markup{
         \override #`(direction . ,UP)
         \override #'(baseline-skip . 1.0)
         \dir-column {
           \halign #CENTER
           $text
           \halign #CENTER
           \scale #'(0.8 . 0.5)
           \lower #0.7
           "^"
         }
       }
     #}))

\score {
  {
    c' d' e' f'
  }
  \addlyrics {
    \markup \hat "1"
    \markup \hat "2"
    \markup \hat "3"
    \markup \hat "4"
  }
  \layout{}
}
% ----------------------------------------------

At least, the baseline alignment should work like that.

Cheers,
Klaus



--
View this message in context: http://lilypond.1069038.n5.nabble.com/Good-recipe-for-numeric-scale-degree-numerals-with-hat-caret-tp184810p184812.html
Sent from the User mailing list archive at Nabble.com.

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


reply via email to

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