|
From: | Urs Liska |
Subject: | Re: Flat slurs |
Date: | Mon, 13 Feb 2017 21:16:46 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 |
Am 13.02.2017 um 18:30 schrieb Abraham
Lee:
"My" slurs aren't automatic either. In fact they are special cases of multi-segment slurs which of course have to be defined manually (although the interface for this is pretty robust).
Basically you define right and left anchor points, an angle and a ratio (ratio is the relative distance between the outer control points as compared to the distance of the end points), then you can add an arbitrary number of inflection points with a few properties each. The syntax is a \with {} clause where each inflection is added as an alist property. A flat slur is a slur with two inflection points where the second one is defined to have an angle of 0, which means that the left hand control point points directly to the previous inflection. You can see the code here: https://github.com/openlilylib/snippets/blob/master/notation-snippets/shaping-bezier-curves/flat-compound-slur-example.ly
Yes, I'd definitely like to see that. How did you manage to get the seamless "thick" line?
It should be fairly simple to include that - if I write a wrapper function for "flat ties/slurs". As said ATM this is a special case of a multi-segment slur, so the user would simply have to change thickness themselves.
'ratio is something I indeed wanted to add. Nice exmaples Best Urs
-- address@hidden https://openlilylib.org http://lilypondblog.org |
[Prev in Thread] | Current Thread | [Next in Thread] |