I believe that @Chrisir has written a number of graphical interfaces for 2D (and possibly 3D?) curve editing – perhaps he can share some links and / or give you advice on your method.
See his gallery post:
Related past discussions:
- Pro-Question: place a point in 3D with mouse
- Curve Graphs? - Processing 2.x and 3.x Forum
- [FIXED] Make bezier curve pass through control points - Processing 2.x and 3.x Forum
I can’t remember, but the ProScene library might also have some curve editing tools in it?
There is also an old (2009) tool called TimeLine which might be interesting to look at: its bezier curve interface is similar to one I used before in Quartz Composer.
http://www.drifkin.net/timeline/#timeline
For a simple Java-style curve editor that runs in processing.js (but no control points) see: