Re: Ottava mark: edge dashed line

2018-04-18 Thread foxfanfare
Thank you for the explanation!



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

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


Re: Ottava mark: edge dashed line

2018-04-18 Thread Thomas Morley
2018-04-17 22:50 GMT+02:00 foxfanfare :

> Btw, is there any interest to put "(text . #f)" for the right-broken? Or was
> this just for me to understand how the code should be written?

If you set left.text to some value, then every part of a possibly
broken spanner wil start with it.
Technical speaking, if left-broken.text is unset it will inherit the
value of left.text. Some holds for right.text and right-broken.text.

In the end it depends on your needs what you should do. I wouldn't
want the text at the end of every broken spanner, only at the very
end.
Thus I've set right-broken #f.

Below a demonstration using the more simple TextSpanner.

\paper {
  line-width = 80
}

mus = {
  c'1 c'\startTextSpan
  \break
  d' d'
  \break
  e' e'
  \break
  f' f'\stopTextSpan
}

{
  \override TextSpanner.bound-details.left.text = "left"
  \override TextSpanner.bound-details.right.text = "right"
  \mus
}

{
  \override TextSpanner.bound-details.left.text = "left"
  \override TextSpanner.bound-details.right.text = "right"
  \override TextSpanner.bound-details.left-broken.text = "left-broken"
  \override TextSpanner.bound-details.right-broken.text = "right-broken"
  \mus
}

{
  \override TextSpanner.bound-details.left.text = "left"
  \override TextSpanner.bound-details.right.text = "right"
  \override TextSpanner.bound-details.left-broken.text = ##f
  \override TextSpanner.bound-details.right-broken.text = ##f
  \mus
}

> I also discovered that I can then alterate some individual values directly
> in the score block:
> \once \override Staff.OttavaBracket.bound-details.right-broken.padding = #4

Indeed. This updates only a certain subsubproperty leaving others unchanged.

> Gosh, I'm starting to fall in love for this software! So many capabilites,
> it's amazing!

:)

Best,
  Harm

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


Re: Ottava mark: edge dashed line

2018-04-17 Thread foxfanfare
Thomas Morley-2 wrote
> 'bound-details allows for left/right/left-broken/right-broken
> subproperties.
> Possible subsubproperties (read by ly:line-spanner::print) are documented
> here:
> http://lilypond.org/doc/v2.19/Documentation/notation/spanners#using-the-line_002dspanner_002dinterface
> 
> Please specify which problem(s) you see with you're example-code in
> the future. ;)
> 
> My guessing below:

You're right, I'm sorry. But once again, thank you very much Thomas! Your
help was very much appreciated! Now I understand a bit more about this
bound-detail thing! I'm currently reading the notation book but haven't
reached this section yet!

I also moved the first text markup directly in the "left" section with help
of your code in "left-broken" which I found better codded!
#`((left . ((Y . -0.2)
(text
 .
 ,#{ \markup \bold "8")

And replaced the hspace in my markup command with: (stencil-offset . #'(-0.3
. 0)) in order to get some space after the text.

Btw, is there any interest to put "(text . #f)" for the right-broken? Or was
this just for me to understand how the code should be written?

I also discovered that I can then alterate some individual values directly
in the score block:
\once \override Staff.OttavaBracket.bound-details.right-broken.padding = #4 

Gosh, I'm starting to fall in love for this software! So many capabilites,
it's amazing!



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

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


Re: Ottava mark: edge dashed line

2018-04-17 Thread Thomas Morley
2018-04-17 13:03 GMT+02:00 foxfanfare :
> One more thing: I have this problem when the modified 8va breaks lines:
[skipping example-code]
> How is it possible to modify the "ottavaUp" shortcut to personalize this?

'bound-details allows for left/right/left-broken/right-broken subproperties.
Possible subsubproperties (read by ly:line-spanner::print) are documented here:
http://lilypond.org/doc/v2.19/Documentation/notation/spanners#using-the-line_002dspanner_002dinterface

Please specify which problem(s) you see with you're example-code in
the future. ;)

My guessing below:

\version "2.19.81"

ottavaUp = {

  \once \override Staff.OttavaBracket.stencil = #ly:line-spanner::print
  \once \override Staff.OttavaBracket.bound-details =
#`((left . ((Y . -0.2)
(attach-dir . ,LEFT)
(padding . 0)
(stencil-align-dir-y . ,UP)))
   (left-broken . ((Y . -0.2)
   (text
 .
 ,#{ \markup \bold \concat { "8" \hspace #0.25 } #})
   (padding . 2.5)
   (attach-dir . ,RIGHT)))
   (right-broken . ((text . #f)
(padding . 0)))
   (right . ((Y . -0.2)
 (padding . -0.75)
 (attach-dir . ,RIGHT)
 (text . ,#{
\markup
\override #'(full-length . #f)
\override #'(on . 0.15)
\override #'(off . 0.5)
\override #'(thickness . 1.8)
\draw-dashed-line #'(0 . -1.5)
  #}

  \once \override Staff.OttavaBracket.left-bound-info =
 #ly:line-spanner::calc-left-bound-info-and-text
  \once \override Staff.OttavaBracket.right-bound-info =
 #ly:line-spanner::calc-right-bound-info
  \override Staff.OttavaBracket.style = #'dashed-line
  \override Staff.OttavaBracket.dash-fraction = #0.2
  \override Staff.OttavaBracket.dash-period = #0.7
  \override Staff.OttavaBracket.thickness = #1.5

  \ottava #1
  \set Staff.ottavation = \markup \bold \concat { "8" \hspace #0.25 }
}

\relative c' {

  \ottava #1
  a'''1^"Default" a a a \break
  a a a a4 \ottava #0 r2. \break

  \ottavaUp a^"Modified" a a a \break
  a a a a4 \ottava #0 r2.
}

\layout {
 ragged-right = ##t
}


HTH,
  Harm

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


Re: Ottava mark: edge dashed line

2018-04-17 Thread foxfanfare
One more thing: I have this problem when the modified 8va breaks lines:

ottavaUp = {
  
  \once \override Staff.OttavaBracket.stencil = #ly:line-spanner::print
  \once \override Staff.OttavaBracket.bound-details =
#`((left . ((Y . -0.2)
(attach-dir . ,LEFT)
(padding . 0)
(stencil-align-dir-y . ,UP)))
   (right . ((Y . -0.2)
 (padding . -0.75)
 (attach-dir . ,RIGHT)
 (text . ,#{
\markup
\override #'(full-length . #f)
\override #'(on . 0.15)
\override #'(off . 0.5)
\override #'(thickness . 1.8)
\draw-dashed-line #'(0 . -1.5)
  #}

  \once \override Staff.OttavaBracket.left-bound-info =
 #ly:line-spanner::calc-left-bound-info-and-text
  \once \override Staff.OttavaBracket.right-bound-info =
 #ly:line-spanner::calc-right-bound-info
  \override Staff.OttavaBracket.style = #'dashed-line
  \override Staff.OttavaBracket.dash-fraction = #0.2
  \override Staff.OttavaBracket.dash-period = #0.7
  \override Staff.OttavaBracket.thickness = #1.5

  \ottava #1
  \set Staff.ottavation = \markup \bold \concat { "8" \hspace #0.25 }
}

\relative c' {
  
  \ottava #1
  a'''1^"Default" a a a \break
  a a a a4 \ottava #0 r2. \break

  \ottavaUp a^"Modified" a a a \break
  a a a a4 \ottava #0 r2.
}

\layout {
 ragged-right = ##t
}

How is it possible to modify the "ottavaUp" shortcut to personalize this?



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

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


Re: Ottava mark: edge dashed line

2018-04-17 Thread Thomas Morley
2018-04-17 9:16 GMT+02:00 foxfanfare :
> 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

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


Re: Ottava mark: edge dashed line

2018-04-17 Thread foxfanfare
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

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


Re: Ottava mark: edge dashed line

2018-04-16 Thread Thomas Morley
2018-04-16 23:45 GMT+02:00 Carl Sorensen :
> On 4/16/18, 3:31 PM, "foxfanfare"  wrote:
>
> Noeck wrote
> > As I said, I think it’s a question where the line starts: on the left or
> > on the right and then it’s kind of luck how they meet in the corner.
>
> I see what your means. But even if the line started on right, you'll get 
> the
> same problem at the left then no? The distance from the "8" text will 
> vary.
> But maybe it is something you accomodate better.
>
> Could not it be more easy to just change the dash period a bit in order to
> get it done?
>
> The slur dash code does just that, IIRC.  It goes from 0 to 1 on the t-value 
> of the Bezier, and makes sure that the end of the slur is always a full solid 
> part.
>
> I haven't looked at the ottava bracket code, but it seems like it ought to be 
> able to do the same, since it's a spanner like the slur is.
>
> Carl



Hi Carl,

you are right with the default-stencil for OttavaBracket.

But in this thread ly:line-spanner::print was used to get more
tweaking-possibilities. For this stencil I could verify the issue.

Below some test-code using box-stencil to make dimensions visible.
All for 2.19.81

(1) All fine for the default, i.e. ly:ottava-bracket::print

$@(map
(lambda (val)
  #{
\new Staff
  \with {
\override OttavaBracket.stencil =
  #(lambda (grob) (box-stencil (ly:ottava-bracket::print grob) 0 0))
  }
  {
\ottava #1
c''4
\override NoteColumn.X-offset = $val
d''
  }
  #})
(iota 10 0 2))

(2) Using ly:line-spanner::print and dotted-style returns sometimes a
gap at line-end.

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 = #'dotted-line
\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))


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

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


Re: Ottava mark: edge dashed line

2018-04-16 Thread Noeck
I will read your mail and the ottava code tomorrow. For the time being
here is what I see (the differing dot spacing is due to my settings and
not of concern here).

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


Re: Ottava mark: edge dashed line

2018-04-16 Thread Carl Sorensen
On 4/16/18, 3:31 PM, "foxfanfare"  wrote:

Noeck wrote
> As I said, I think it’s a question where the line starts: on the left or
> on the right and then it’s kind of luck how they meet in the corner.

I see what your means. But even if the line started on right, you'll get the
same problem at the left then no? The distance from the "8" text will vary.
But maybe it is something you accomodate better.

Could not it be more easy to just change the dash period a bit in order to
get it done?

The slur dash code does just that, IIRC.  It goes from 0 to 1 on the t-value of 
the Bezier, and makes sure that the end of the slur is always a full solid part.

I haven't looked at the ottava bracket code, but it seems like it ought to be 
able to do the same, since it's a spanner like the slur is.

Carl




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




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


Re: Ottava mark: edge dashed line

2018-04-16 Thread Thomas Morley
2018-04-16 23:31 GMT+02:00 foxfanfare :
> Noeck wrote
>> As I said, I think it’s a question where the line starts: on the left or
>> on the right and then it’s kind of luck how they meet in the corner.
>
> I see what your means.

I don't. Though, there were other cases where I noticed similar.
Thus, while coding draw-dashed/dotted-line-markup-commands I
implemented the 'full-length-property (#t per default) to ensure the
line never ends with space.
You can ofcourse set it #f to gain space, if desired.
The line-styles defined in C++ , which are used in
OttavaBracket.stencil lack this feature.

> But even if the line started on right, you'll get the
> same problem at the left then no? The distance from the "8" text will vary.
> But maybe it is something you accomodate better.
>
> Could not it be more easy to just change the dash period a bit in order to
> get it done?

All you can do. But tedious and needs readjusting every time layout changes.


Cheers,
  Harm

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


Re: Ottava mark: edge dashed line

2018-04-16 Thread foxfanfare
Noeck wrote
> As I said, I think it’s a question where the line starts: on the left or
> on the right and then it’s kind of luck how they meet in the corner.

I see what your means. But even if the line started on right, you'll get the
same problem at the left then no? The distance from the "8" text will vary.
But maybe it is something you accomodate better.

Could not it be more easy to just change the dash period a bit in order to
get it done?



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

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


Re: Ottava mark: edge dashed line

2018-04-16 Thread Noeck


Am 16.04.2018 um 23:00 schrieb Thomas Morley:
> Again, I can see misaligned dots with evince but _not_ with Foxit Reader.
> A pdf-viewer artefact?

Hi Harm,

I think have a slight misunderstanding here. I don’t think it is
primarily a viewer artifact. IIUC, the horizontal dots are aligned on
the left boundary and they just end wherever they have to on the right.
So I see no reason why they should be aligned by design.
You can add and remove notes under the ottava bracket to get a different
length of the bracket and I guess you will see misaligned top-right
corners with all viewers (I suppose).

Sometimes the last gap is a little too wide (perhaps hardly noticable
like in foxfanfares last image). Sometimes two dots overlap and
sometimes it’s just perfect.

I guess not all viewers are perfectly drawing this from the pdf line
specification or why else should there be a difference?

As I said, I think it’s a question where the line starts: on the left or
on the right and then it’s kind of luck how they meet in the corner.

Cheers,
Joram

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


Re: Ottava mark: edge dashed line

2018-04-16 Thread foxfanfare
Noeck wrote
> Thanks. The dotted-line sounds better than a dashed-line with
> dash-fraction zero. But the output seems to be the same and the issue in
> the top-right corner, too. The dots are not aligned. It just depends on
> how long the line is.

I don't understand your issue, for me it looks great: 
 

Thank you very much Thomas for your time, help, and explanations!



Thomas Morley-2 wrote
> draw-line-markup has some properties you could use: on, off, probably
> full-length (it's #t per default, meaning the dashed-line will be
> scaled to full-fill the specified length, partly disregarding your
> on/off-values) and thickness (thickness will default to 1 or the
> grob's thickness)

In fact, I found those variables but I cannot figure out how to implement in
the function... This kind of command is still chinese for me... And I was
unable to find explanations about the ".bound-details" in the
documentation... or some similar code to get inspired!



Thomas Morley-2 wrote
> Please always use the docs of your lily-version.
> The link points to 2.18, but you're using 2.19.80 

You are right. I work with so many internet windows opened that sometimes I
get confuse in all the documentation pages. And I was a bit surprised when I
copied the *.ly file I posted before, that it didn't work in my LilyPond
version... Now it makes sense.

I could never have guessed this could have been reported as a bug and that
the default output changed therefore! I personnaly like this kind of "old"
engraving style with dashed end corners. But I guess tastes may vary :-)
Funny though, I am also currently reading Elaine Gould's book and try to
engrave her rules in LilyPond. But in case of ottava bracket, I kind of
prefer the first default LilyPond output :-)

Next challenge: I'll try to code her exemple p.31 where she draw a vertical
line at the right of the "8" sign when it is too far from the staff.




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

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


Re: Ottava mark: edge dashed line

2018-04-16 Thread Thomas Morley
2018-04-16 22:42 GMT+02:00 Noeck :
>
>
> Am 16.04.2018 um 22:32 schrieb Thomas Morley:
>> If you use dotted-lines the result could be:
>
> Thanks. The dotted-line sounds better than a dashed-line with
> dash-fraction zero. But the output seems to be the same and the issue in
> the top-right corner, too. The dots are not aligned. It just depends on
> how long the line is.
>
> Best,
> Joram

Again, I can see misaligned dots with evince but _not_ with Foxit Reader.
A pdf-viewer artefact?
Not sure how to verify...

Cheers,
  Harm

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


Re: Ottava mark: edge dashed line

2018-04-16 Thread Noeck


Am 16.04.2018 um 22:32 schrieb Thomas Morley:
> If you use dotted-lines the result could be:

Thanks. The dotted-line sounds better than a dashed-line with
dash-fraction zero. But the output seems to be the same and the issue in
the top-right corner, too. The dots are not aligned. It just depends on
how long the line is.

Best,
Joram

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


Re: Ottava mark: edge dashed line

2018-04-16 Thread Thomas Morley
2018-04-16 22:07 GMT+02:00 Noeck :
> Nice. I still thought that this is impossible as it was some time ago (3
> years?).
>
> Is it feasible to align the dots (if I set the dash length to 0) such
> that there is exactly one dot in the top right corner? I.e. start the
> horizontal dotted line from the right end? Then it would be perfect.

If you use dotted-lines the result could be:

\relative c' {
  \override Staff.OttavaBracket.stencil = #ly:line-spanner::print
  \override Staff.OttavaBracket.bound-details =
#`((left . ((Y . 0) ; Change the integer here
(attach-dir . ,LEFT)
(padding . 0)
(stencil-align-dir-y . ,UP)))
   (right . ((Y . 0) ; Change the integer here
 (padding . 0)
 (attach-dir . ,RIGHT)
 (text .
   ,#{
  \markup
\override #'(full-length . #f)
\override #'(off . 0.15)
\draw-dotted-line #'(0 . -4)
   #}

  \override Staff.OttavaBracket.style =
#'dotted-line
  \override Staff.OttavaBracket.dash-period = #0.4
  \override Staff.OttavaBracket.thickness = #1.5
  \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

  \ottava #1
  \set Staff.ottavation = #"8"

  c'''1 a
  f

}


Though, my pdf-viewers present me different results.

With Foxit Reader there's exact one dot at top right.
With evince it looks like the dotted line is half of own thickness
displaced (if other than default-thickness is used).
I'm not really sure with evince, though. Evince can't do more than
400% resolution.

Cheers,
  Harm

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


Re: Ottava mark: edge dashed line

2018-04-16 Thread Noeck
Nice. I still thought that this is impossible as it was some time ago (3
years?).

Is it feasible to align the dots (if I set the dash length to 0) such
that there is exactly one dot in the top right corner? I.e. start the
horizontal dotted line from the right end? Then it would be perfect.

Joram

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


Re: Ottava mark: edge dashed line

2018-04-16 Thread Thomas Morley
2018-04-16 13:17 GMT+02:00 foxfanfare :
> Hi everyone,
>
> I cannot figure why I cannot change the ottava mark as I'd like.
>
> I am interested in using a dashed line, but also for the right edge, as
> shown in this exemple:
> http://lilypond.org/doc/v2.18/Documentation/snippets-big-page.html#text-ottava-text
> 
>
> I don't understand why mine always appear filled!?
>
> \version "2.19.80"
[...]

Please always use the docs of your lily-version.
The link points to 2.18, but you're using 2.19.80

It was changed with

commit 0119c1b84108674cf2b1c72bd8c231d831ce1f0f
Author: Keith OHara 
Date:   Sun Aug 24 15:54:45 2014 -0700

Ottava Bracket bounds; issue 3690

Ottava Bracket: do not dash edges; issue 3866

Which is in the source since 2.19.14
See:
https://sourceforge.net/p/testlilyissues/issues/3866/
https://sourceforge.net/p/testlilyissues/issues/3690/


2018-04-16 13:39 GMT+02:00 foxfanfare :
> Oh, I just found a clue to do that:
>
> \version "2.19.80"
>
> \relative c' {
>   \override Staff.OttavaBracket.stencil = #ly:line-spanner::print
>   \override Staff.OttavaBracket.bound-details =
> #`((left . ((Y . 0) ; Change the integer here
> (attach-dir . ,LEFT)
> (padding . 0)
> (stencil-align-dir-y . ,UP)))
>(right . ((Y . 0) ; Change the integer here
>  (padding . 0)
>  (attach-dir . ,RIGHT)
>  (text . ,(make-draw-dashed-line-markup (cons 0 -2.5))
>
>   \override Staff.OttavaBracket.style = #'dashed-line
>   \override Staff.OttavaBracket.dash-fraction = #0.2
>   \override Staff.OttavaBracket.dash-period = #0.65
>   \override Staff.OttavaBracket.thickness = #1.5
>   \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
>
>   \ottava #1
>   \set Staff.ottavation = #"8"
>   c'''1 a f
>
> }
>
> But now I struggle finding how to change the end corner dashed fraction...

draw-line-markup has some properties you could use: on, off, probably
full-length (it's #t per default, meaning the dashed-line will be
scaled to full-fill the specified length, partly disregarding your
on/off-values) and thickness (thickness will default to 1 or the
grob's thickness)

\relative c' {
  \override Staff.OttavaBracket.stencil = #ly:line-spanner::print
  \override Staff.OttavaBracket.bound-details =
#`((left . ((Y . 0) ; Change the integer here
(attach-dir . ,LEFT)
(padding . 0)
(stencil-align-dir-y . ,UP)))
   (right . ((Y . 0) ; Change the integer here
 (padding . 0)
 (attach-dir . ,RIGHT)
 (text .
   ;,(make-draw-dashed-line-markup (cons 0 -2.5))
   ,#{
  \markup
\override #'(full-length . #f)
\override #'(on . 0.2)
\override #'(off . 0.45)
\draw-dashed-line #'(0 . -4)
   #}


   

  \override Staff.OttavaBracket.style = #'dashed-line
  \override Staff.OttavaBracket.dash-fraction = #0.2
  \override Staff.OttavaBracket.dash-period = #0.65
  \override Staff.OttavaBracket.thickness = #1.5
  \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

  \ottava #1
  \set Staff.ottavation = #"8"

  c'''1 a
  f
}


HTH,
  Harm

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


Re: Ottava mark: edge dashed line

2018-04-16 Thread foxfanfare
Oh, I just found a clue to do that:

\version "2.19.80"

\relative c' {
  \override Staff.OttavaBracket.stencil = #ly:line-spanner::print
  \override Staff.OttavaBracket.bound-details =
#`((left . ((Y . 0) ; Change the integer here
(attach-dir . ,LEFT)
(padding . 0)
(stencil-align-dir-y . ,UP)))
   (right . ((Y . 0) ; Change the integer here
 (padding . 0)
 (attach-dir . ,RIGHT)
 (text . ,(make-draw-dashed-line-markup (cons 0 -2.5))
 
  \override Staff.OttavaBracket.style = #'dashed-line
  \override Staff.OttavaBracket.dash-fraction = #0.2
  \override Staff.OttavaBracket.dash-period = #0.65
  \override Staff.OttavaBracket.thickness = #1.5
  \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
 
  \ottava #1
  \set Staff.ottavation = #"8"
  c'''1 a f
 
}

But now I struggle finding how to change the end corner dashed fraction... 



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

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


Ottava mark: edge dashed line

2018-04-16 Thread foxfanfare
Hi everyone,

I cannot figure why I cannot change the ottava mark as I'd like.

I am interested in using a dashed line, but also for the right edge, as
shown in this exemple: 
http://lilypond.org/doc/v2.18/Documentation/snippets-big-page.html#text-ottava-text

  

I don't understand why mine always appear filled!?

\version "2.19.80"

\relative c' {
  
  \override Staff.OttavaBracket.style = #'dashed-line
  \override Staff.OttavaBracket.dash-fraction = #0.2
  \override Staff.OttavaBracket.dash-period = #0.65
  \override Staff.OttavaBracket.thickness = #1.5
  \override Staff.OttavaBracket.edge-height = #'(0 . 1.5)
  
  \ottava #1
  \set Staff.ottavation = #"8"
  c'''1 a f
  
}

Also, how is it possible to align the top of the number with the line?

Thanks!



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

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