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 the 'va' aligned to the top of the eight for different font sizes try:

\version "2.18.0"


testOttava = \markup \bold \concat {"8" \fontsize #-1.5 \translate-scaled #'(0 . 0.75) "va" }


\markup {\tiny \testOttava}

\markup {\teeny \testOttava}

\markup {\small \testOttava}

\markup {\normalsize \testOttava}

\markup {\large \testOttava}

\markup {\huge \testOttava}


Your code included in the attachment.

Greetings, Ed
\version "2.18.0"

ottavaa = {
  \ottava 1
  \set Staff.ottavation = \markup \bold \concat {"8"  \fontsize #-1.5 \translate-scaled #'(0 . 0.75)
"va" }
}

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

ottavac = {
  \ottava 2
  \set Staff.ottavation = \markup \bold \concat{ "15" \fontsize #-1.5 \translate-scaled #'(0 . 0.75)
"ma" }
}

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

ottavae = {
  \ottava 3
  \set Staff.ottavation = \markup \bold \concat{ "22" \fontsize #-1.5 \translate-scaled #'(0 . 0.75)
"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