[prev in list] [next in list] [prev in thread] [next in thread]
List: lilypond-user
Subject: Re: Guidance on the repeated slur in \volta 2
From: Volodymyr Prokopyuk <volodymyrprokopyuk () gmail ! com>
Date: 2022-10-27 21:06:21
Message-ID: CAPw4xjc2RFHA1o=FHR9hY_RYJESv2WKT9kqCnR9QMNi4x6NZZA () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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 <
volodymyrprokopyuk@gmail.com> 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 <
> volodymyrprokopyuk@gmail.com> 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 <ksnortum@gmail.com> wrote:
>>
>>> On Wed, Oct 19, 2022 at 6:59 AM Volodymyr Prokopyuk
>>> <volodymyrprokopyuk@gmail.com> 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
>>>
>>
[Attachment #5 (text/html)]
<div dir="ltr"><div>Hello,</div><div><br></div><div>When working with the manually \
shaped slurs using the <span style="font-family:monospace">\tweak \
control-points</span> approach, I've got the right output, but with the \
following<span style="font-family:monospace"> <span \
style="color:rgb(255,0,0)">programming error: bounds of this piece aren't \
breakable</span></span> that always happens when the shaped slur is attached to the \
last note in a measure.<br> </div><div><br></div><div><b>Minimal failing \
example</b></div><div><br></div><div><span style="font-family:monospace">\version \
"2.23.14"<br><br>\relative {<br> \repeat volta 2 {<br> g'1( \
|<br> \alternative {<br> \volta 1 { g2 g) | }<br> \volta 2 {<br> \
g2 g<br> \tweak control-points<br> #'((-5.5 . -3.0) \
(-3.5 . -3.0) (-1.5 . -3.0) (-0.3 . -2.0)) ( <>)<br> \bar \
"|."<br> }<br> }<br> \
}<br>}</span></div><div><br></div><div><img src="cid:ii_l9rjpbvr1" alt="image.png" \
width="488" height="132"></div><div>The output is rendered, but with the below \
programming error</div><div><br></div><div><span style="font-family:monospace">GNU \
LilyPond 2.23.14 (running Guile 2.2)<br>Processing `<a \
href="http://shaped-slur.ly">shaped-slur.ly</a>'<br>Parsing...<br>Interpreting \
music...<br>Preprocessing graphical objects...<br>Finding the ideal number of \
pages..</span></div><div><span style="font-family:monospace">Fitting music on 1 \
page...<br>Drawing systems...<br>shaped-slur.ly:10:9: <span \
style="color:rgb(255,0,0)">programming error: bounds of this piece aren't \
breakable.<br><br> \tweak control-points</span><br>shaped-slur.ly:10:9: \
continuing, cross fingers<br>Converting to `shaped-slur.pdf'...<br>Success: \
compilation successfully \
completed</span></div><div><br></div><div></div><div><b>Minimal working \
example</b></div><div><b><br></b></div><div>However,<i> if there is a rest</i> after \
the note with the attached shaped slur, there is no programming \
error<br></div><div><br></div><div><span style="font-family:monospace">\version \
"2.23.14"<br><br>\relative {<br> \repeat volta 2 {<br> g'1( \
|<br> \alternative {<br> \volta 1 { g2 g) | }<br> \volta 2 {<br> \
g2 g4<br> \tweak control-points<br> #'((-5.5 . -3.0) \
(-3.5 . -3.0) (-1.5 . -3.0) (-0.3 . -2.0)) ( <>) r<br> \bar \
"|."<br> }<br> }<br> \
}<br>}</span></div><div><br></div><div><img src="cid:ii_l9rjnv5k0" alt="image.png" \
width="488" height="132"><br></div><div>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?<br></div><div><br></div><div>Thank \
you,</div><div>Vlad<br></div></div><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">On Thu, Oct 27, 2022 at 5:33 PM Volodymyr Prokopyuk <<a \
href="mailto:volodymyrprokopyuk@gmail.com">volodymyrprokopyuk@gmail.com</a>> \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi \
Knute,</div><div><br></div><div>After trying different approaches, I finally decided \
to go with the <span style="font-family:monospace">\tweak control-points</span> \
solution that you suggested. Even being imperative and manual it gives the best \
control of the shape of a slur.</div><div><br></div><div>Thank you very much for your \
help!</div><div>Vlad<br></div></div><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">On Wed, Oct 19, 2022 at 9:47 PM Volodymyr Prokopyuk <<a \
href="mailto:volodymyrprokopyuk@gmail.com" \
target="_blank">volodymyrprokopyuk@gmail.com</a>> wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello \
Knute,</div><div><br></div><div>Interesting approach! I've not seen this before. \
The solution gives you precise control on the slur \
shape.</div><div><br></div><div>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.</div><div><br></div><div>I'm looking for more declarative approach in \
the style of not yet existing <span \
style="font-family:monospace">\repeatSlur</span></div><div><br></div><div>Thank you \
for your suggestion,</div><div>Vlad<br></div></div><br><div class="gmail_quote"><div \
dir="ltr" class="gmail_attr">On Wed, Oct 19, 2022 at 6:22 PM Knute Snortum <<a \
href="mailto:ksnortum@gmail.com" target="_blank">ksnortum@gmail.com</a>> \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Oct 19, 2022 \
at 6:59 AM Volodymyr Prokopyuk<br> <<a href="mailto:volodymyrprokopyuk@gmail.com" \
target="_blank">volodymyrprokopyuk@gmail.com</a>> wrote:<br> ><br>
> Hello,<br>
><br>
> Could you, please, provide guidance on how to manage the repeated slure in \
\volta 2?<br> ><br>
> Problem<br>
><br>
> 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.<br> \
><br> > Workarounds<br>
><br>
> Use the \repeatTie in \volta 2<br>
><br>
> Benefit: simple and convenient, works for chords in \volta 2. The not currently \
existing \repeatSlur would be an effective solution<br> > Drawback: the \repeatTie \
is too small and looks different from the desired repeated slur shape<br> ><br>
> Use a hidden grace note with automatic slure in \volta 2 E. g. \once hideNotes \
\acciaccatura { ... }<br> ><br>
> Benefit: good control on the height of the repeated slur<br>
> Drawback: the hidden grace note is not part of the score, multiple grace notes \
needed to support repeated slur for chords in \volta 2<br> ><br>
> Questions<br>
><br>
> Does Lilypond have an appropriate solution to the repeated slur in \volta 2?<br>
> 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?<br> ><br>
> Thank you very much,<br>
> Vlad<br>
<br>
Maybe this is what you need? (scroll to the bottom)<br>
<br>
<a href="https://lilypond.org/doc/v2.21/Documentation/notation/modifying-shapes" \
rel="noreferrer" target="_blank">https://lilypond.org/doc/v2.21/Documentation/notation/modifying-shapes</a><br>
<br>
--<br>
Knute Snortum<br>
</blockquote></div>
</blockquote></div>
</blockquote></div>
["image.png" (image/png)]
["image.png" (image/png)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic