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: Klaus Blum
Subject: Re: Good recipe for numeric scale degree? (numerals with hat/caret)
Date: Wed, 16 Dec 2015 15:06:07 -0700 (MST)

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.



reply via email to

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