Hi list,

I’m currently working on a patch that would make the default ottavation texts/markups (currently "8va"/"15ma" and "8vb"/"15mb") changeable by the user without having to \set Staff.ottavation after each \ottava, see the following code and attached picture:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.21.0"
.
  %{
  \set Staff.ottavationMarkups =
#`(( 2 . ,#{ \markup \concat \general-align #Y #UP { "16" \teeny "ma" } #}) ( 1 . ,#{ \markup \concat \general-align #Y #UP { "8" \teeny "va" } #})
     (-1 . ,#{ \markup \concat { "8" \teeny "va bassa" } #})
     (-2 . ,#{ \markup \concat { "16" \teeny "ma bassa" } #}))
  %}
  c''4 4 4 4
  \ottava 1
  c'''4 4 4 4
  \ottava 2
  c''''4 4 4 4
  \ottava -1
  c'4 4 4 4
  \ottava -2
  c4 4 4 4
  \ottava 0
  c''4 4 4 4
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

The superscript/top-aligned "va"/"ma" that I’ve seen sometimes in sheet music doesn’t work well with the center-aligned OttavaBracket dashed line. How can this made be top- or bottom-aligned (or aligned depending according to the 'direction property)?

Cheers,
Malte

P. S.: I tried Scheme syntax for the markups in the code above but
        #(markup #:concat #:general-align Y UP ("16" #:teeny "ma"))
doesn’t work. What am I doing wrong?
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to