Hi Joram,

Text positioning:
- \super does not look good, therefore \raise
- the raise value of 0.7 depends on the font, is there a way to align
   the top boundaries of the 8 and the va?

If you want it completely independent of the font I think you could use this:

\version "2.18.0"


#(define-markup-command (TopAlign layout props arg)

(markup?)

(let* ((mol (interpret-markup layout props arg)))

(ly:stencil-aligned-to mol Y 1)))


\markup \huge \bold \concat {\TopAlign 8 \TopAlign \tiny va}



Greetings, Ed
\version "2.18.0"

#(define-markup-command (TopAlign layout props arg)
  (markup?)
  (let* ((mol (interpret-markup layout props arg)))
    (ly:stencil-aligned-to mol Y 1)))

ottavaa = {
  \ottava 1
  \set Staff.ottavation = \markup \bold \concat {\TopAlign "8"  \tiny \TopAlign
"va" }
}

ottavab = {
  \ottava -1
  \set Staff.ottavation = \markup \bold \concat{ "8" \tiny "vb" }
}

ottavac = {
  \ottava 2
  \set Staff.ottavation = \markup \bold \concat{\TopAlign "15" \tiny \TopAlign
"ma" }
}

ottavad = {
  \ottava -2
  \set Staff.ottavation = \markup \bold \concat{ "15" \tiny "mb" }
}

ottavae = {
  \ottava 3
  \set Staff.ottavation = \markup \bold \concat{\TopAlign "22" \tiny \TopAlign
"ma" }
}


<<
  \new Staff \relative c''' {
    \ottava #1 a a
    \ottava #-1 a,, a
    \ottava #2 a''' a
    \ottava #-2 a,,,, a
    \ottava #3 a''''' a
  }
  \new Staff \relative c''' {
    \ottavaa a a
    \ottavab a,, a
    \ottavac a''' a
    \ottavad a,,,, a
    \ottavae a''''' a
  }
>>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to