Re: What to do wanting a 4th order Bézier?

2016-10-12 Thread Urs Liska
Am 22.09.2016 um 01:38 schrieb Carl Sorensen: > > On 9/21/16 11:59 AM, "Urs Liska" wrote: > >> >> >> >> >> >>Am 21.09.2016 um 19:48 schrieb tisimst: >> >> >> >> >> By the way, how do the curves appear >>when

Re: What to do wanting a 4th order Bézier?

2016-10-09 Thread Thomas Morley
2016-10-09 13:23 GMT+02:00 Urs Liska : > > > Am 09.10.2016 um 12:07 schrieb Thomas Morley: > > 2016-09-18 15:38 GMT+02:00 Simon Albrecht : > > On 18.09.2016 15:15, Kieren MacMillan wrote: > > And finally with a better user interface > > Under what

Re: What to do wanting a 4th order Bézier?

2016-10-09 Thread Urs Liska
Am 09.10.2016 um 12:07 schrieb Thomas Morley: > 2016-09-18 15:38 GMT+02:00 Simon Albrecht : >> On 18.09.2016 15:15, Kieren MacMillan wrote: And finally with a better user interface >>> Under what circumstances would you NOT want the end of one curve to match >>>

Re: What to do wanting a 4th order Bézier?

2016-10-09 Thread Simon Albrecht
On 09.10.2016 12:07, Thomas Morley wrote: 2016-09-18 15:38 GMT+02:00 Simon Albrecht : On 18.09.2016 15:15, Kieren MacMillan wrote: And finally with a better user interface Under what circumstances would you NOT want the end of one curve to match precisely the beginning

Re: What to do wanting a 4th order Bézier?

2016-10-09 Thread Thomas Morley
2016-09-18 15:38 GMT+02:00 Simon Albrecht : > On 18.09.2016 15:15, Kieren MacMillan wrote: >>> >>> And finally with a better user interface >> >> Under what circumstances would you NOT want the end of one curve to match >> precisely the beginning of the next one? >> If

Re: What to do wanting a 4th order Bézier?

2016-09-24 Thread Urs Liska
Am 24. September 2016 01:58:18 MESZ, schrieb Simon Albrecht : >On 17.09.2016 20:27, Simon Albrecht wrote: >> Hello folks, >> >> I’m attaching an excerpt from my current project, where I’d actually >> really need a 4th order Bézier slur – but that’s impossible with Lily

Re: What to do wanting a 4th order Bézier?

2016-09-23 Thread Simon Albrecht
On 17.09.2016 20:27, Simon Albrecht wrote: Hello folks, I’m attaching an excerpt from my current project, where I’d actually really need a 4th order Bézier slur – but that’s impossible with Lily now. Unfortunately I also lack an idea what else to do in this situation – I’d like to avoid an

Re: What to do wanting a 4th order Bézier?

2016-09-21 Thread Carl Sorensen
On 9/21/16 11:59 AM, "Urs Liska" wrote: > > > > > > >Am 21.09.2016 um 19:48 schrieb tisimst: > > > > > By the way, how do the curves appear >when the thickness is more pronounced (i.e., thicker). Does >

Re: What to do wanting a 4th order Bézier?

2016-09-21 Thread Simon Albrecht
On 21.09.2016 19:48, tisimst wrote: A next thing would be to show how this can be used to make flat slurs ;-) If you try %% \version "2.19.47" { 1-\tweak control-points #'((0 . -5)(1 . -5)(5 . -5)(6 . -5)) ( 1) } %% you see that the slur stencil procedure can produce a flat

Re: What to do wanting a 4th order Bézier?

2016-09-21 Thread Urs Liska
Am 21.09.2016 um 19:46 schrieb Carl Sorensen: > > On 9/21/16 11:34 AM, "Urs Liska" wrote: > >> By contrast >> >> inflection = >> #'((point-X-ratio . 0.4) >> (point-Y . 12)) > > I like this, but I would probably change it to > > inflection = > #'((X-ratio . 0.4)

Re: What to do wanting a 4th order Bézier?

2016-09-21 Thread Urs Liska
Am 21.09.2016 um 19:48 schrieb tisimst: > By the way, how do the curves appear when the thickness is more > pronounced (i.e., thicker). Does it still come back down to a point at > the end of each segment? My guess is it does (simply because I haven't > tested it myself). Yes, it does, see

Re: What to do wanting a 4th order Bézier?

2016-09-21 Thread tisimst
On Wed, Sep 21, 2016 at 11:36 AM, Urs Liska [via Lilypond] < ml-node+s1069038n194817...@n5.nabble.com> wrote: > I'm not clear if we are all talking about the same things. Maybe write it > down explicitly: > > inflection = > #'((point . (.4 . 12))) > > would now mean: "40 % through the horizontal

Re: What to do wanting a 4th order Bézier?

2016-09-21 Thread Carl Sorensen
On 9/21/16 11:34 AM, "Urs Liska" wrote: > >By contrast > >inflection = >#'((point-X-ratio . 0.4) > (point-Y . 12)) I like this, but I would probably change it to inflection = #'((X-ratio . 0.4) (Y-offset . 12)) I think that the "point" part of the name is

Re: What to do wanting a 4th order Bézier?

2016-09-21 Thread Urs Liska
Am 21.09.2016 um 19:29 schrieb Simon Albrecht: >> suggestion) but apply it to the vertical center between the two >> endpoints? That way the whole slur should somewhat shift together with >> changed Y of an end point. >> >> Would it be acceptable to have a pair? as an argument when the two >>

Re: What to do wanting a 4th order Bézier?

2016-09-21 Thread Simon Albrecht
On 21.09.2016 19:22, Urs Liska wrote: Am 21.09.2016 um 19:18 schrieb Carl Sorensen: On 9/21/16 10:22 AM, "Urs Liska" wrote: The other thing I came across is the specification of the inflection*point*. Basically the idea of specifying independent

Re: What to do wanting a 4th order Bézier?

2016-09-21 Thread Urs Liska
Am 21.09.2016 um 19:18 schrieb Carl Sorensen: > > On 9/21/16 10:22 AM, "Urs Liska" wrote: > >> The other thing I came across is the specification of the >>inflection *point*. Basically the idea of specifying independent >>X and Y ratios between the

Re: What to do wanting a 4th order Bézier?

2016-09-21 Thread Carl Sorensen
On 9/21/16 10:22 AM, "Urs Liska" wrote: > The other thing I came across is the specification of the >inflection *point*. Basically the idea of specifying independent >X and Y ratios between the slur's endpoints seems practical, as >it is

Re: What to do wanting a 4th order Bézier?

2016-09-21 Thread Simon Albrecht
enlilylib.org> *To:* lilypond-user@gnu.org <mailto:lilypond-user@gnu.org> *Sent:* Monday, September 19, 2016 11:40 PM *Subject:* Re: What to do wanting a 4th order Bézier? Am 19.09.2016 um 22:49 schrieb Urs Liska: Am 19.09.2016 um 20:50 schrieb David Kastrup:

Re: What to do wanting a 4th order Bézier?

2016-09-21 Thread Urs Liska
the handles (going beyond their current length. This > would make it much easier to find the right values for these. > > Have fun > > Urs > > Am 20.09.2016 um 13:53 schrieb Trevor Daniels: >> Impressive work, Urs! Kudos! >> >> Trevor >> >> >>

Re: What to do wanting a 4th order Bézier?

2016-09-20 Thread Urs Liska
1:40 PM > *Subject:* Re: What to do wanting a 4th order Bézier? > > > > Am 19.09.2016 um 22:49 schrieb Urs Liska: >> Am 19.09.2016 um 20:50 schrieb David Kastrup: >>> Urs Liska <u...@openlilylib.org> writes: >>> >>> [...] >

Re: What to do wanting a 4th order Bézier?

2016-09-20 Thread Trevor Daniels
Impressive work, Urs! Kudos! Trevor - Original Message - From: Urs Liska To: lilypond-user@gnu.org Sent: Monday, September 19, 2016 11:40 PM Subject: Re: What to do wanting a 4th order Bézier? Am 19.09.2016 um 22:49 schrieb Urs Liska: Am 19.09.2016 um 20:50

Re: What to do wanting a 4th order Bézier?

2016-09-20 Thread Simon Albrecht
On 20.09.2016 00:40, Urs Liska wrote: support Slur, PhrasingSlur and Tie (like \shape) Don’t you agree that it shouldn’t be done for ties? Having such a complex shape for a tie seems like a really bad idea. Best, Simon ___ lilypond-user mailing

Re: What to do wanting a 4th order Bézier?

2016-09-19 Thread Urs Liska
Am 19.09.2016 um 22:49 schrieb Urs Liska: > Am 19.09.2016 um 20:50 schrieb David Kastrup: >> Urs Liska writes: >> >> [...] >> >> You are working with slopes here. Don't. They don't support vertical >> lines. >> > Yes, that's what I realized ... > >> Please take a look at

Re: What to do wanting a 4th order Bézier?

2016-09-19 Thread Urs Liska
Am 19.09.2016 um 20:50 schrieb David Kastrup: > Urs Liska writes: > > [...] > > You are working with slopes here. Don't. They don't support vertical > lines. > Yes, that's what I realized ... > Please take a look at the recently added functions > >ly:length

Re: What to do wanting a 4th order Bézier?

2016-09-19 Thread David Kastrup
Urs Liska writes: [...] You are working with slopes here. Don't. They don't support vertical lines. Please take a look at the recently added functions ly:length ly:angle ly:directed They will usually make it easy to do the operations you want. In particular

Re: What to do wanting a 4th order Bézier?

2016-09-19 Thread Hans Åberg
> On 19 Sep 2016, at 20:25, David Kastrup wrote: > > Hans Åberg writes: >> Perhaps it looks better with the second derivatives lined up as well. > > That precludes a straight line (second derivative 0) running into a > circle arc (second derivative 1/(2pi r)

Re: What to do wanting a 4th order Bézier?

2016-09-19 Thread David Kastrup
Hans Åberg writes: >> On 19 Sep 2016, at 10:41, David Kastrup wrote: > >> It would be my guess that the hands-on manipulative features of control >> points have made cubic Beziers the go-to curve approximation and design >> tool. > > Perhaps it looks better

Re: What to do wanting a 4th order Bézier?

2016-09-19 Thread Hans Åberg
> On 19 Sep 2016, at 10:41, David Kastrup wrote: > It would be my guess that the hands-on manipulative features of control > points have made cubic Beziers the go-to curve approximation and design > tool. Perhaps it looks better with the second derivatives lined up as well.

Re: What to do wanting a 4th order Bézier?

2016-09-19 Thread Urs Liska
Am 19.09.2016 um 18:41 schrieb Urs Liska: > > Am 18.09.2016 um 22:16 schrieb Thomas Morley: >> 2016-09-18 20:26 GMT+02:00 Urs Liska : >>> Am 18.09.2016 um 18:28 schrieb Simon Albrecht: May I incorporate that into the LSR version? >>> I suggest not to do

Re: What to do wanting a 4th order Bézier?

2016-09-19 Thread David Kastrup
Hans Åberg writes: >> On 18 Sep 2016, at 14:41, Simon Albrecht wrote: >> >> On 18.09.2016 13:54, Andrew Bernard wrote: > >>> What is it exactly that you are expecting a quartic to give you? >> >> Oh, I think you’re quite overestimating the amount of

Re: What to do wanting a 4th order Bézier?

2016-09-19 Thread Urs Liska
Am 18.09.2016 um 22:16 schrieb Thomas Morley: > 2016-09-18 20:26 GMT+02:00 Urs Liska : >> Am 18.09.2016 um 18:28 schrieb Simon Albrecht: >>> May I incorporate that into the LSR version? >>> >>> >> I suggest not to do anything right now. I assume that once I'll come up >>

Re: What to do wanting a 4th order Bézier?

2016-09-19 Thread Urs Liska
One further iteration. Please let me know what you think of the interface: -\compoundSlur \with { % offsets against the automatic control points offsets = #'((0 . -1.5) ; left starting point (-2 . -1) ; second control point (2 . -5); second-to-last control point

Re: What to do wanting a 4th order Bézier?

2016-09-19 Thread Urs Liska
Am 19.09.2016 um 00:32 schrieb David Kastrup: > Urs Liska writes: > >> Am 18.09.2016 um 20:54 schrieb David Kastrup: >>> Do you know how to split a bezier at a given ratio into equivalent >>> beziers? It's a comparatively simple operation and I think it's already >>>

Re: What to do wanting a 4th order Bézier?

2016-09-19 Thread Hans Åberg
> On 18 Sep 2016, at 14:41, Simon Albrecht wrote: > > On 18.09.2016 13:54, Andrew Bernard wrote: >> What is it exactly that you are expecting a quartic to give you? > > Oh, I think you’re quite overestimating the amount of in-depth mathematical > background I had – I

Re: What to do wanting a 4th order Bézier?

2016-09-18 Thread Simon Albrecht
On 19.09.2016 00:07, Urs Liska wrote: Am 18.09.2016 um 22:16 schrieb Thomas Morley: Hi all, I have my doubts we will ever find a possibility to do it reasonable automatic. That's probably right. But I don't think that should necessarily prevent us from including it as a built-in tool. This

Re: What to do wanting a 4th order Bézier?

2016-09-18 Thread David Kastrup
Urs Liska writes: > Am 18.09.2016 um 20:54 schrieb David Kastrup: >> >> Do you know how to split a bezier at a given ratio into equivalent >> beziers? It's a comparatively simple operation and I think it's already >> somewhere in the C++ code though without access from

Re: What to do wanting a 4th order Bézier?

2016-09-18 Thread Carl Sorensen
On 9/18/16 12:54 PM, "David Kastrup" wrote: > >Do you know how to split a bezier at a given ratio into equivalent >beziers? It's a comparatively simple operation and I think it's already >somewhere in the C++ code though without access from Scheme. see scm/bezier-tools.scm for

Re: What to do wanting a 4th order Bézier?

2016-09-18 Thread Urs Liska
Am 18.09.2016 um 22:16 schrieb Thomas Morley: > 2016-09-18 20:26 GMT+02:00 Urs Liska : >> Am 18.09.2016 um 18:28 schrieb Simon Albrecht: >>> May I incorporate that into the LSR version? >>> >>> >> I suggest not to do anything right now. I assume that once I'll come up >>

Re: What to do wanting a 4th order Bézier?

2016-09-18 Thread Urs Liska
Am 18.09.2016 um 20:54 schrieb David Kastrup: > Urs Liska writes: > >> I'm currently experimenting with this, giving it a somewhat more >> straightforward interface similar to \shape, i.e. using offsets from the >> automatic non-compound slur. >> >> My idea is to provide

Re: What to do wanting a 4th order Bézier?

2016-09-18 Thread David Kastrup
Urs Liska writes: > I'm currently experimenting with this, giving it a somewhat more > straightforward interface similar to \shape, i.e. using offsets from the > automatic non-compound slur. > > My idea is to provide options that specify the angle and the length of > the

Re: What to do wanting a 4th order Bézier?

2016-09-18 Thread Thomas Morley
2016-09-18 20:26 GMT+02:00 Urs Liska : > Am 18.09.2016 um 18:28 schrieb Simon Albrecht: >> May I incorporate that into the LSR version? >> >> > > I suggest not to do anything right now. I assume that once I'll come up > with the next iteration there will be more things to be

Re: What to do wanting a 4th order Bézier?

2016-09-18 Thread Urs Liska
Am 18.09.2016 um 18:28 schrieb Simon Albrecht: > May I incorporate that into the LSR version? > > I suggest not to do anything right now. I assume that once I'll come up with the next iteration there will be more things to be discussed. I suggest to bring that to an end before deciding what to

Re: What to do wanting a 4th order Bézier?

2016-09-18 Thread Urs Liska
Am 18.09.2016 um 19:28 schrieb David Kastrup: > Simon Albrecht writes: > >> May I incorporate that into the LSR version? >> >> >> On 18.09.2016 16:04, Urs Liska wrote: >>> >>> Am 18.09.2016 um 16:01 schrieb Urs Liska: (cps

Re: What to do wanting a 4th order Bézier?

2016-09-18 Thread David Kastrup
Simon Albrecht writes: > May I incorporate that into the LSR version? > > > On 18.09.2016 16:04, Urs Liska wrote: >> >> Am 18.09.2016 um 16:01 schrieb Urs Liska: >>>(cps (ly:slur::calc-control-points grob)) >>>(cps1

Re: What to do wanting a 4th order Bézier?

2016-09-18 Thread Simon Albrecht
May I incorporate that into the LSR version? On 18.09.2016 16:04, Urs Liska wrote: Am 18.09.2016 um 16:01 schrieb Urs Liska: (cps (ly:slur::calc-control-points grob)) (cps1 (first contr-pts)) (cps2 (second

Re: What to do wanting a 4th order Bézier?

2016-09-18 Thread Urs Liska
Am 18.09.2016 um 16:01 schrieb Urs Liska: > (cps (ly:slur::calc-control-points grob)) > (cps1 (first contr-pts)) > (cps2 (second contr-pts)) > (cp2-2 (mirror-point (fourth cps1) (third cps1)))

Re: What to do wanting a 4th order Bézier?

2016-09-18 Thread Kieren MacMillan
Hi Simon, > I added the new version to the LSR Wonderful! Thanks, Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info

Re: What to do wanting a 4th order Bézier?

2016-09-18 Thread Kieren MacMillan
Hi Urs, > There's another improvement I'm right now experimenting with: Not having > to type the second control point of the second spline but calculating > that mirroring it from the third one of the first spline. I <3 U. =) > After that I would like to suggest looking for a solution that

Re: What to do wanting a 4th order Bézier?

2016-09-18 Thread Urs Liska
Am 18.09.2016 um 15:49 schrieb Urs Liska: > > Am 18.09.2016 um 15:38 schrieb Simon Albrecht: >> On 18.09.2016 15:15, Kieren MacMillan wrote: And finally with a better user interface >>> Under what circumstances would you NOT want the end of one curve to >>> match precisely the beginning of

Re: What to do wanting a 4th order Bézier?

2016-09-18 Thread Urs Liska
Am 18.09.2016 um 15:38 schrieb Simon Albrecht: > On 18.09.2016 15:15, Kieren MacMillan wrote: >>> And finally with a better user interface >> Under what circumstances would you NOT want the end of one curve to >> match precisely the beginning of the next one? >> If “none”, then I would say an

Re: What to do wanting a 4th order Bézier?

2016-09-18 Thread Simon Albrecht
On 18.09.2016 15:15, Kieren MacMillan wrote: And finally with a better user interface Under what circumstances would you NOT want the end of one curve to match precisely the beginning of the next one? If “none”, then I would say an even better user interface would not require typing that set

Re: What to do wanting a 4th order Bézier?

2016-09-18 Thread Kieren MacMillan
Hi Simon, > And finally with a better user interface Under what circumstances would you NOT want the end of one curve to match precisely the beginning of the next one? If “none”, then I would say an even better user interface would not require typing that set of coordinates twice. In any

[OT] Re: What to do wanting a 4th order Bézier?

2016-09-18 Thread Kieren MacMillan
Hi Andrew, Quite independent of the actual question in this thread, thank you for the wonderful link on Bezier curves! I have bookmarked it, in anticipation of reading it in depth one day. Best, Kieren. > Just because this is so well written and one of the best elementary > expositions of

Re: What to do wanting a 4th order Bézier?

2016-09-18 Thread Simon Albrecht
On 18.09.2016 13:54, Andrew Bernard wrote: Hello Simon, Others have of course already replied, but when I look at your attached sample I only see a slightly curved slur. What makes you say you want a quartic bezier curve? I can’t quite see it. Are you sure that’s what you want in any case?

Re: What to do wanting a 4th order Bézier?

2016-09-18 Thread Andrew Bernard
Hello Simon, Others have of course already replied, but when I look at your attached sample I only see a slightly curved slur. What makes you say you want a quartic bezier curve? I can’t quite see it. Are you sure that’s what you want in any case? Quickly scanning through some of the maths of

Re: What to do wanting a 4th order Bézier?

2016-09-17 Thread Thomas Morley
2016-09-17 23:47 GMT+02:00 Urs Liska : > > > Am 17. September 2016 23:10:08 MESZ, schrieb Simon Albrecht > : >>And finally with a better user interface: >> > > I'll have to look it up (and probably update it to handle current LilyPond), > but

Re: What to do wanting a 4th order Bézier?

2016-09-17 Thread Urs Liska
Am 17. September 2016 23:10:08 MESZ, schrieb Simon Albrecht : >And finally with a better user interface: > I'll have to look it up (and probably update it to handle current LilyPond), but Frescobaldi can display control points with the Layout Control Options tool

Re: What to do wanting a 4th order Bézier?

2016-09-17 Thread Simon Albrecht
And finally with a better user interface: \version "2.19.47" \language "deutsch" #(define (make-cross-stencil coord) "Draw a cross-stencil at coord." (let ((thick 0.1) (sz 0.2)) (stencil-with-color (ly:stencil-add (make-line-stencil

Re: What to do wanting a 4th order Bézier?

2016-09-17 Thread Thomas Morley
2016-09-17 21:50 GMT+02:00 Simon Albrecht : > Only one glitch: Is make-cross-stencil a private function of yours? Aaarrrgh, forgot to include. Sorry for that. #(define (make-cross-stencil coord) "Draw a cross-stencil at coord." (let ((thick 0.1) (sz 0.2))

Re: What to do wanting a 4th order Bézier?

2016-09-17 Thread Simon Albrecht
On 17.09.2016 21:34, Thomas Morley wrote: 2016-09-17 20:45 GMT+02:00 Kieren MacMillan : Hi Simon, I’m attaching an excerpt from my current project, where I’d actually really need a 4th order Bézier slur – but that’s impossible with Lily now. Unfortunately I

Re: What to do wanting a 4th order Bézier?

2016-09-17 Thread Thomas Morley
2016-09-17 20:45 GMT+02:00 Kieren MacMillan : > Hi Simon, > >> I’m attaching an excerpt from my current project, where I’d actually really >> need a 4th order Bézier slur – but that’s impossible with Lily now. >> Unfortunately I also lack an idea what else to do in

Re: What to do wanting a 4th order Bézier?

2016-09-17 Thread Kieren MacMillan
Hi Simon, > I’m attaching an excerpt from my current project, where I’d actually really > need a 4th order Bézier slur – but that’s impossible with Lily now. > Unfortunately I also lack an idea what else to do in this situation – I’d > like to avoid an extra staff… > Any ideas? What about

Re: What to do wanting a 4th order Bézier?

2016-09-17 Thread David Kastrup
Simon Albrecht writes: > Hello folks, > > I’m attaching an excerpt from my current project, where I’d actually > really need a 4th order Bézier slur – but that’s impossible with Lily > now. Unfortunately I also lack an idea what else to do in this > situation – I’d like

Re: What to do wanting a 4th order Bézier?

2016-09-17 Thread Simon Albrecht
On 17.09.2016 20:27, Simon Albrecht wrote: Hello folks, I’m attaching an excerpt from my current project, where I’d actually really need a 4th order Bézier slur – but that’s impossible with Lily now. Unfortunately I also lack an idea what else to do in this situation – I’d like to avoid an