slurs with more than 2 control points

2015-11-26 Thread lilypond

Hi list,

how complicated would it be to get slurs with more than 2 control 
points? Slurs with an S shape often have very flat ends and slurs with 
more than one "direction change" (sometimes used in 
romantic/impressionistic piano music) aren't possible at all, are they?


Malte

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


Re: slurs with more than 2 control points

2015-11-26 Thread tisimst
Malte,

On Thursday, November 26, 2015, lilypond-7 [via Lilypond] <
ml-node+s1069038n184151...@n5.nabble.com> wrote:

> Hi list,
>
> how complicated would it be to get slurs with more than 2 control
> points?


With the current code? Nothing automatic, but you could definitely create a
function that could take an arbitrary number of control points, but I
can see that taking effect as a direct postscript drawing routine. I have
done quite a few curve routines for other projects in the past so I know
it's possible.

Slurs with an S shape often have very flat ends and slurs with
> more than one "direction change" (sometimes used in
> romantic/impressionistic piano music) aren't possible at all, are they?


Current slurs can take the S shape, but only to an extent. By definition,
since the slurs are defined as 3rd-order Bézier curves, they mathematically
can only have a single inflection point. It would take a higher order curve
to change directions more than one time. They aren't mathematically
complex, but beyond the scope of the current code infrastructure.

In short, are they possible at the moment? No. Are they impossible? No, but
it requires some new code. I might consider tackling that in the near
future.

Best,
Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/slurs-with-more-than-2-control-points-tp184151p184186.html
Sent from the Bugs mailing list archive at Nabble.com.
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: slurs with more than 2 control points

2015-11-26 Thread Urs Liska
Am 27.11.2015 um 03:14 schrieb tisimst:
> Malte,
> 
> On Thursday, November 26, 2015, lilypond-7 [via Lilypond] <
> ml-node+s1069038n184151...@n5.nabble.com> wrote:
> 
>> Hi list,
>>
>> how complicated would it be to get slurs with more than 2 control
>> points?
> 
> 
> With the current code? Nothing automatic, but you could definitely create a
> function that could take an arbitrary number of control points, but I
> can see that taking effect as a direct postscript drawing routine. I have
> done quite a few curve routines for other projects in the past so I know
> it's possible.
> 
> Slurs with an S shape often have very flat ends and slurs with
>> more than one "direction change" (sometimes used in
>> romantic/impressionistic piano music) aren't possible at all, are they?
> 
> 
> Current slurs can take the S shape, but only to an extent. By definition,
> since the slurs are defined as 3rd-order Bézier curves, they mathematically
> can only have a single inflection point. It would take a higher order curve
> to change directions more than one time. They aren't mathematically
> complex, but beyond the scope of the current code infrastructure.
> 
> In short, are they possible at the moment? No. Are they impossible? No, but
> it requires some new code. I might consider tackling that in the near
> future.

That would be a great addition, be it as an includable function or
(better) in LilyPond's code base.

Urs

> 
> Best,
> Abraham
> 
> 
> 
> 
> --
> View this message in context: 
> http://lilypond.1069038.n5.nabble.com/slurs-with-more-than-2-control-points-tp184151p184186.html
> Sent from the Bugs mailing list archive at Nabble.com.
> ___
> bug-lilypond mailing list
> bug-lilypond@gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-lilypond
> 


-- 
Urs Liska
www.openlilylib.org

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