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: Thomas Morley
Subject: Re: Ottava mark: edge dashed line
Date: Tue, 17 Apr 2018 10:42:49 +0200

2018-04-17 9:16 GMT+02:00 foxfanfare <address@hidden>:
> 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))

Sure.

Though, I think every dashed/dotted line should start/end without
space out of the box. Or at least with an option to ensure this. And
without the need for manual adjustments.

Cheers,
  Harm



reply via email to

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