Clean up unused line segments from envelope cache.
Use antialiasing with envelope curves.
Draw envelope nodes.
Highlight focused envelope nodes, add mapper function from widget to envelope coordinates.