JSCEnvelopeView relay mode
Brought to you by:
sciss
the relay mode is buggy ; it seems to fail when you move the points "too fast", i guess further than one neighbouring point at a mouse event; easiliy reproducable by using a lot of dense points:
(
a = JSCWindow( "envelope", Rect( 200, 450, 250, 100 ));
b = JSCEnvelopeView( a, Rect( 4, 4, 230, 80 ))
.drawLines_( true )
.selectionColor_( Color.red )
.resize_( 5 )
.thumbSize_( 5 )
.value_([ Array.rand( 1000, 0.0, 1.0 ).sort, Array.rand( 1000, 0.0, 1.0 ) ])
.horizontalEditMode_( \relay );
a.front;
)