[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
vertical position of OttavaBracket
From: |
Malte Meyn |
Subject: |
vertical position of OttavaBracket |
Date: |
Sun, 14 Jul 2019 12:40:31 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 |
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?
ottavation-markups.png
Description: PNG image
- vertical position of OttavaBracket,
Malte Meyn <=