|
From: | Peter Crighton |
Subject: | Re: Vertical placement of ottava line |
Date: | Sun, 5 Oct 2014 15:45:40 +0200 |
2014-09-23 20:36 GMT+02:00 Pierre Perol-Schneider <address@hidden>:2014-09-23 20:26 GMT+02:00 Peter Crighton <address@hidden>:That doesn’t really combine well with the previous code of \myOttavaUp. At least, I can’t get it to work.In other words :Sorry, my bad. I got confused because I’m trying to mix it with altering the placement of “va”/“vb”.Here is my whole code:\version "2.19.13"ottavaLineUp = {\override Staff.OttavaBracket.stencil = #ly:line-spanner::print\override Staff.OttavaBracket.bound-details = #`((left . ((Y . 0)(stencil-align-dir-y . ,UP)))(right . ((Y . 0)(text . ,(make-draw-dashed-line-markup (cons 0 -1.2))))))\override Staff.OttavaBracket.left-bound-info = #ly:line-spanner::calc-left-bound-info-and-text\override Staff.OttavaBracket.right-bound-info = #ly:line-spanner::calc-right-bound-info}ottavaLineDown = {\override Staff.OttavaBracket.stencil = #ly:line-spanner::print\override Staff.OttavaBracket.bound-details = #`((left . ((Y . 0)(stencil-align-dir-y . ,DOWN)))(right . ((Y . 0)(text . ,(make-draw-dashed-line-markup (cons 0 1.2))))))\override Staff.OttavaBracket.left-bound-info = #ly:line-spanner::calc-left-bound-info-and-text\override Staff.OttavaBracket.right-bound-info = #ly:line-spanner::calc-right-bound-info}#(define-markup-command (topAlign layout props arg)(markup?)(let* ((mol (interpret-markup layout props arg)))(ly:stencil-aligned-to mol Y 1)))ottavava = {\ottavaLineUp\ottava #1\set Staff.ottavation = \markup \concat \bold \topAlign { "8" \tiny "va" }}ottavavb = {\ottavaLineDown\ottava #-1\set Staff.ottavation = \markup \concat \bold { "8" \tiny "vb" }}\relative c'' {c1\ottava #1 c c\ottava #-1 c c\ottava #0 c\ottava #1 c\ottava #-1 c\break\ottava #0 c\ottavava c c\ottavavb c c\ottava #0 c\ottavava c\ottavavb c}So, for that the problem with the 8 being center-aligned to the center of the notehead and it’s bad output for one-note ottavaBracket remains.
[Prev in Thread] | Current Thread | [Next in Thread] |