lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ottava mark: edge dashed line


From: foxfanfare
Subject: Re: Ottava mark: edge dashed line
Date: Tue, 17 Apr 2018 00:16:54 -0700 (MST)

Thomas Morley-2 wrote
> Would be nice the default would offer more tweaking-possibilities to
> avoid such messing around.
> Also, ly:line-spanner::print should have at least the option to cover
> the whole specified length, _avoiding_ space at start/end.
> 
> 
> Best,
>   Harm

Isn't this working? :

with-ottava-line-spanner =
\with {
    \override OttavaBracket.stencil =
      #(lambda (grob) (box-stencil (ly:line-spanner::print grob) 0 0))
    \override OttavaBracket.bound-details =
      #`((left . ((Y . 0)
                  (attach-dir . ,LEFT)
                  (padding . 0)
                  (stencil-align-dir-y . ,UP)))
         (right . ((Y . 0)
                   (padding . 0)
                   (attach-dir . ,RIGHT))))

    \override OttavaBracket.style = #'dashed-line
    \override OttavaBracket.dash-period = #4
    \override OttavaBracket.dash-fraction = #0.001
    \override OttavaBracket.thickness = #4
    \override OttavaBracket.left-bound-info =
       #ly:line-spanner::calc-left-bound-info-and-text
    \override OttavaBracket.right-bound-info =
       #ly:line-spanner::calc-right-bound-info
}

$@(map
    (lambda (val)
      #{
        \new Staff \with \with-ottava-line-spanner
          {
            \ottava #1
            c''4
            \override NoteColumn.X-offset = $val
            d''
          }
      #})
    (iota 10 0 2)) 




--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]