-
... as if it were one. plot creates a SCWindow (or a JSCWindow if GUI.scheme.id == 'swing' ) and plots the object in it. draw to be used inside a drawHook or drawFunc; draws the object. asPenFunction returns a function for drawing asGUICode ( p ...
-
... ultiplied by some constant, could be zero, to use quantise positions //how will swing work? must delay second semiquavers timedeviations= (onsetsinbeats-quantised)/bps; //if less than a mS, set to zero timedeviations.do({arg val, j; if(abs( ...
-
... isible objects. gui creates a gui representing recognized objects Examples GUI .swing; GUI .cocoa; SwingOSC .default.boot; SwingOSC .default.quit; // add and remove some objects t = SETOServer ( "_ixyzuvw" , SETObject ); t.gui t.set(0, [3, ...
-
... anReceiveDragHandler_({ true; }) .receiveDragHandler_ ({|...args| if(GUI.id == \swing, { mouseXY = 10@10; }); if(canvasItems.detect({|item| item.name == presetList.items[presetList.value] }).notNil, { parentApp.displayStatus("HrPresetMorph: ...
-
... axRecent, recentSize, maxClip; // workaround for crucial gui issue // closing a Swing window executes viewDidClose before calling remove on me // so the model variable is already nil and .remove doesn't clean up the model // I'll keep the m ...
-
... axRecent, recentSize, maxClip; // workaround for crucial gui issue // closing a Swing window executes viewDidClose before calling remove on me // so the model variable is already nil and .remove doesn't clean up the model // I'll keep the m ...
-
// wslib 2006 // 1st step to SwingOsc compat :: 03/2008 // - no rounded rects yet: all + Pen { *roundedRect { |rect, radius| // radius can be array for 4 corners var points, lastPoint; radius = radius ?? { rect.width.min( rect.height ) / 2; ...
-
... (false) .acceptsMouseOver_(true); outerWindow.view.keyDownAction_ ({|...args| //SwingOSC has different key bindings //args.postln; if(GUI.id == \swing, { args[2].switch(131072, { args[2] = 131074; }); //keyboard bindings }); if((args[1] == ...
-
... objects - enabled "opacity" element support - drawing now fully compatible with SwingOSC using GUI.swing. various small improvements 0.1 initial version, assembled on 11/05/2007 wslib is the result of about 3 years of work. It used to be ju ...
-
... eAmt) + rect.origin.asArray ); Pen.scale( *scaleAmt ); /* if( GUI.scheme.id == 'swing' && {(scaleAmt[0] != scaleAmt[1])} ) { Pen.translate( 0.5, 0.5 ); }; // temp correction for swingosc half-pixel bug */ ^Pen; } } + Point { transformToRect ...