lilypond-user
[Top][All Lists]
Advanced

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

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply twe


From: Thomas Morley
Subject: Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")
Date: Sat, 2 Jan 2016 23:37:43 +0100

.

2016-01-02 17:16 GMT+01:00 Kieren MacMillan <address@hidden>:
> Hi Harm,
>
>> Just wrote a bug-report:
>> http://lilypond.1069038.n5.nabble.com/Overriding-OttavaBracket-text-fails-td185451.html
>
> Thanks!
>
> Can you help me with the #'stencil-align-dir-y replacement hack?
>
> In the snippet (below), I’ve got the basic 8va the way I want it, but can’t 
> seem to find the right combination of \with-dimension, \translate, and \lower 
> [or \raise] for the broken 8va version: it needs to have a tight skyline, be 
> aligned with the extender line exactly as the 8va, and have sufficient 
> padding for both inside-staff and outside-staff notes.


Hi Kieren,

I've spend most of the day on this topic, starting even before you
wrote this mail.
Let me ensure you, my table has some nice bite marks more ...

All this predefining markups down/above/parenthesized is way too
tedious and error-prone and would need to be done for
double-ottavation as well ...
And \raise will break whenever you want to use another \fontsize ...

I tried a general approach.

Though, what has driven me crazy is the impossibility to set
OttavaBracket.text sufficiently.
None of the below works for _all_ OttavaBrackets:

{
  \override Staff.OttavaBracket.text = "foo"
  \ottava #1 c''4 4 4 4  4 4 \ottava #0 4 4  \break
  \ottava #2 c''4 4 4 4  4 4 \ottava #0 4 4  \break
  \ottava #-1 c4 4 4 4   4 4 \ottava #0 4 4 \break
  \ottava #-2 c'4 4 4 4  4 4 \ottava #0 4 4 \break
}

{
  \override Staff.OttavaBracket.after-line-breaking =
    #(lambda (grob) (ly:grob-set-property! grob 'text "foo"))
  \ottava #1 c''4 4 4 4  4 4 \ottava #0 4 4  \break
  \ottava #2 c''4 4 4 4  4 4 \ottava #0 4 4  \break
  \ottava #-1 c4 4 4 4   4 4 \ottava #0 4 4 \break
  \ottava #-2 c'4 4 4 4  4 4 \ottava #0 4 4 \break
}

If you do it 'before-line-breaking it works, yes, but can't be changed
'after-line-breaking anymore ...

No idea what's happening and why.

Thus I did some ugly trickery with 'before-line-breaking.

Please look at the attached png and test the attached code.
Tell me what isn't sufficient.

Cheers,
  Harm

Attachment: atest-28-b.ly
Description: Text Data

Attachment: atest-28.png
Description: PNG image


reply via email to

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