At the moment, I'm adding a vertex to the ofPolyline at every pixel on the x axis! I'm sure we should be able to achieve the same thing with nowhere near as much memory by only adding a vertex at each ofxUIEnvelope point and then using ofPolyline's bezier interpolation to draw the ofxUIEnvelope bezier curves, but I haven't got around to working out how to do this just yet.