Does anybody have more ideas for this (see below)? How can I move the
beginning and end of OttavaBrackets horizontally, or rather change their
alignment to the note head?


--
Peter Crighton | Musician & Music Engraver based in Mainz, Germany
http://www.petercrighton.de

2014-09-25 3:39 GMT+02:00 Peter Crighton <petecrigh...@gmail.com>:

> 2014-09-23 20:36 GMT+02:00 Pierre Perol-Schneider <
> pierre.schneider.pa...@gmail.com>:
>
>> 2014-09-23 20:26 GMT+02:00 Peter Crighton <petecrigh...@gmail.com>:
>>
>>
>>> 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.
>
> --
> Peter Crighton | Musician & Music Engraver based in Mainz, Germany
> http://www.petercrighton.de
>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to