News for hackers. Stuff that matters.
Re:Secrets of smooth Béziers by bezieio on Saturday December 08, 2018 @12:02PM (#18636152)
I'm in full agreement that bezier curves are hard to learn to use well! I created an app called Bezie (http://bezie.io/) about a year ago in which you could create quadratic and cubic bezier MIDI automation. I ended up not including it in the release, but I had a smoothness feature where it'd basically update the amount of steps that it'd pass to the interpolate function (using De Casteljau's algorithm). The more steps the higher the curve resolution. I found 64 steps to be somewhat of a magic number as it always looked and sounded smooth. There's also the balance of how many times you want the interpolate function to run while dragging points. With too high a resolution it gets CPU intensive and lags and with too low it starts getting boxy and no longer represents a curve. It's been on my plate to open source the app. It includes some helpful math for deriving control points while dragging points on the curve. Anyhow, nice post and thanks for sharing!
Re:Secrets of smooth Béziers by jamesb93 on Saturday December 08, 2018 @12:55PM (#18636471)
Ever thought of making this work with OSC? Then you can get more resolution on the control curves.
Re:Secrets of smooth Béziers by bezieio on Saturday December 08, 2018 @10:53PM (#18639166)
I got motivated today after this post and finally open sourced Bezie! If anyone wants to see some of the bezier logic I used you can check that out in `app/utils`. https://github.com/jperler/bezie
Re:Secrets of smooth Béziers by pixelpoet on Saturday December 08, 2018 @06:51PM (#18638223)
I was curious about OSC before but couldn't find much good info on getting started with it (from C++). Any pointers appreciated.
Re:Secrets of smooth Béziers by bezieio on Saturday December 08, 2018 @01:18PM (#18636586)
I considered it, but ended up sticking with MIDI for versatility. Do you know of any good resources to learn more about OSC?