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: David Nalesnik
Subject: Re: Good recipe for numeric scale degree? (numerals with hat/caret)
Date: Wed, 16 Dec 2015 18:01:02 -0600



On Wed, Dec 16, 2015 at 4:08 PM, Steve Lacy <address@hidden> wrote:
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.


You might get some use out of the \scaleDegree markup command found here: https://github.com/davidnalesnik/lilypond-roman-numeral-tool

It handles altered scale degrees, too.

The \rN command could be used to create note names in the diagram you posted.

David


reply via email to

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