Hi all,

is it really true that the text of the OttavaBracket can't be
customized? All I could find was the doc snippet
http://lilypond.org/doc/v2.19/Documentation/snippets/text#text-ottava-text
which suggests to manually set Staff.ottavation after the \ottava command.

With this I created a function (overwriting the built-in function)

#(define ottava
   (let ((orig-ottava ottava)
         (numbers '("15" "8" "" "8" "15")))
     (define-music-function (oct)(integer?)
       #{
         #(orig-ottava oct)
         #(if (not (= oct 0))
              #{
                \set Staff.ottavation = #(list-ref numbers (+ oct 2))
              #})
       #})))


which actually does what I want (change "8va" to "8"), but I can't
believe that it is really necessary to go that long way for a seemingly
simple task.

Any comments?
Urs

-- 
u...@openlilylib.org
https://openlilylib.org
http://lilypondblog.org


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to