Hello,

When working with the manually shaped slurs using the \tweak control-points
approach, I've got the right output, but with the following programming
error: bounds of this piece aren't breakable that always happens when the
shaped slur is attached to the last note in a measure.

*Minimal failing example*

\version "2.23.14"

\relative {
  \repeat volta 2 {
    g'1( |
    \alternative {
      \volta 1 { g2 g) | }
      \volta 2 {
        g2 g
        \tweak control-points
          #'((-5.5 . -3.0) (-3.5 . -3.0) (-1.5 . -3.0) (-0.3 . -2.0)) ( <>)
        \bar "|."
      }
    }
  }
}

[image: image.png]
The output is rendered, but with the below programming error

GNU LilyPond 2.23.14 (running Guile 2.2)
Processing `shaped-slur.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages..
Fitting music on 1 page...
Drawing systems...
shaped-slur.ly:10:9: programming error: bounds of this piece aren't
breakable.

        \tweak control-points
shaped-slur.ly:10:9: continuing, cross fingers
Converting to `shaped-slur.pdf'...
Success: compilation successfully completed

*Minimal working example*

However,* if there is a rest* after the note with the attached shaped slur,
there is no programming error

\version "2.23.14"

\relative {
  \repeat volta 2 {
    g'1( |
    \alternative {
      \volta 1 { g2 g) | }
      \volta 2 {
        g2 g4
        \tweak control-points
          #'((-5.5 . -3.0) (-3.5 . -3.0) (-1.5 . -3.0) (-0.3 . -2.0)) ( <>)
r
        \bar "|."
      }
    }
  }
}

[image: image.png]
What is the reason for the programming error in the failing example? Is
there a way to get the output from the failing example, but without the
programming error?

Thank you,
Vlad

On Thu, Oct 27, 2022 at 5:33 PM Volodymyr Prokopyuk <
[email protected]> wrote:

> Hi Knute,
>
> After trying different approaches, I finally decided to go with the \tweak
> control-points solution that you suggested. Even being imperative and
> manual it gives the best control of the shape of a slur.
>
> Thank you very much for your help!
> Vlad
>
> On Wed, Oct 19, 2022 at 9:47 PM Volodymyr Prokopyuk <
> [email protected]> wrote:
>
>> Hello Knute,
>>
>> Interesting approach! I've not seen this before. The solution gives you
>> precise control on the slur shape.
>>
>> The problem with this approach is that it is imperative (you have to
>> manually specify the coordinates of control points in every situation),
>> quite verbose and explodes in complexity when chords are involved.
>>
>> I'm looking for more declarative approach in the style of not yet
>> existing \repeatSlur
>>
>> Thank you for your suggestion,
>> Vlad
>>
>> On Wed, Oct 19, 2022 at 6:22 PM Knute Snortum <[email protected]> wrote:
>>
>>> On Wed, Oct 19, 2022 at 6:59 AM Volodymyr Prokopyuk
>>> <[email protected]> wrote:
>>> >
>>> > Hello,
>>> >
>>> > Could you, please, provide guidance on how to manage the repeated
>>> slure in \volta 2?
>>> >
>>> > Problem
>>> >
>>> > There is no simple and convenient way to repeat a slur in \volta 2,
>>> while the slure from the \repeat volta 2 { body } to the \volta 1 is
>>> working correctly.
>>> >
>>> > Workarounds
>>> >
>>> > Use the \repeatTie in \volta 2
>>> >
>>> > Benefit: simple and convenient, works for chords in \volta 2. The not
>>> currently existing \repeatSlur would be an effective solution
>>> > Drawback: the \repeatTie is too small and looks different from the
>>> desired repeated slur shape
>>> >
>>> > Use a hidden grace note with automatic slure in \volta 2 E. g. \once
>>> hideNotes \acciaccatura { ... }
>>> >
>>> > Benefit: good control on the height of the repeated slur
>>> > Drawback: the hidden grace note is not part of the score, multiple
>>> grace notes needed to support repeated slur for chords in \volta 2
>>> >
>>> > Questions
>>> >
>>> > Does Lilypond have an appropriate solution to the repeated slur in
>>> \volta 2?
>>> > Are there a more convenient workaround different from the above
>>> presented workarounds that 1) draws bigger than \repeatTie slur, 2)
>>> supports chords without having to introduce multiple hidden grace notes?
>>> >
>>> > Thank you very much,
>>> > Vlad
>>>
>>> Maybe this is what you need? (scroll to the bottom)
>>>
>>> https://lilypond.org/doc/v2.21/Documentation/notation/modifying-shapes
>>>
>>> --
>>> Knute Snortum
>>>
>>

Reply via email to