[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Customizing ottava text
From: |
Noeck |
Subject: |
Re: Customizing ottava text |
Date: |
Wed, 15 Feb 2017 22:58:45 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
Hi Urs,
yes, I think you can't set the text. But you can redefine the \ottava
function and still use the Staff.ottavation to do the work behind the
scenes.
Here is my ottava function. It is extended to more than 2 octaves and
has a custom text. I always wanted a true dotted line (round dots), but
that's not so easy it seems. You asked for the line ending the bracket
today.
% define new ottava function with bold text and superscripts
ottava =
#(define-music-function (octave) (integer?)
(_i "Set the octavation.")
#{
#(make-music 'OttavaMusic 'ottava-number octave)
\set Staff.ottavation =
#(if (< octave -1) #{ \markup \concat {
#(number->string (+ 1 (* -7 octave))) \fontsize #-2 "mb" } #}
(if (= octave -1) #{ \markup \concat { "8" \fontsize #-2 "vb" } #}
(if (= octave +0) #f
(if (= octave +1) #{ \markup \concat {
"8" \fontsize #-2 \translate-scaled #'(0 . 0.85) "va" } #}
#{ \markup \concat {
#(number->string (+ 1 (* 7 octave))) \fontsize #-2
\translate-scaled #'(0 . 0.85) "ma" } #}
))))
#})
\layout {
\override Score.OttavaBracket.font-series = #'bold
}
\relative { a \ottava 1 a'' a \ottava -1 a,, a \ottava 3 a'''' a }
Cheers,
Joram
Re: Customizing ottava text, madMuze, 2017/02/15
Re: Customizing ottava text, Urs Liska, 2017/02/15
Re: Customizing ottava text, Thomas Morley, 2017/02/16