From: Chris C. <ca...@al...> - 2001-12-03 13:21:31
|
Guillaume Laurent wrote: > On Saturday 01 December 2001 02:25, Chris Cannam wrote: >>I've already abandoned part of the Qt implementation [...] I've now abandoned the rest, so this is probably irrelevant now. > You certainly can do that by changing/overriding some methods of > QCanvasSpline, and the result will be easier to deal with (no need to project > on a pixmap first). Putting it on a pixmap is trivial, and in a sense actually easier (because it means we can have the same sort of notepixmapfactory method for a slur as for any other element). And since I found my old RG2.1 implementation of the cubic-bezier code appeared to produce better results anyway, I just brought that over instead. Let's face it, splines are very easy to do. It's deciding where to put the control points that's the difficult part. (Compare the spline calculation code in spline.cpp with the control-point calculation code in notepixmapfactory.cpp:makeSlurPixmap; the latter is probably the more complicated.) Chris |