-
... control attack and decay values of these notes. Click and drag on the big white rectangle to draw the spectrum. // ************************************ // Additive Synthesis Demo (GUI) // Patch 4 - Inharmonic Partials with Multislider // ...
-
... 1072 = 10616832 // this is the mask for shift arrow key Three usage examples, direct and with helper methods isCaps , isShift , isCtrl , isAlt , isCmd , isNumPad , isHelp , isFun : ( w = Window.new.front; w.addFlowLayout; // direct, using b ...
-
... e a Point of two numbers x @ y // returns: Point(x, y) ⧉ ✔ point @ point make a Rect of two Point s Point(left, top) @ Point(right, bottom) // returns: Rect(left, top, right-left, bottom-top) ⧉ ✔ ugen @ ugen create a Point with two UGen s r ...
-
RoundedRect : Rect { var <radius; *new { arg left=0, top=0, width=0, height=0, radius; radius = radius ?? { width.min( height ) / 2; }; ^this.newCopyArgs( left, top, width, height, radius ); } *fromRect { |inRect, radius| inRect = inRect.as ...
-
... tEditor.addEvent }; } }); SmoothButton( header, size@size ) .states_( [[ { |bt, rect| var square; square = Rect.aboutPoint( rect.center, rect.width.min( rect.height ) / 5, rect.width.min( rect.height ) / 4 ); Pen.line( square.leftBottom, sq ...
-
... an, 1)); }).send(s); ); ) ( ~maxIndex=10; z=40; w=Window("Confetti2X", Rect(400, 300, z*~maxIndex, z*~maxIndex)).front; w.view.background_(Color.white); w.front; //function for drawing array on screen w.drawHook = { for ...
-
... { |v| var bounds; if (v.isClosed.not) { bounds = v.bounds; if (bounds.isKindOf(Rect)) { updatePosition.(bounds, addr) } } }; var windowFunc = { |w| var bounds; if (w.isClosed.not) { bounds = w.findWindow.bounds; if (bounds.isKindOf(Rect)) ...
-
... ); */ Window.closeAll; win = Window.new("Frequency Modulation Fun", Rect(50, 50, 915, 400), resizable: false); win.front; win.background = windowColor; win.alpha = 0.95; win.onClose = {s.freeAll}; CmdPeriod.doOnce({Win ...
-
... this when using WsLayout. Arguments: wsWindow An instance of WsWindow bounds A Rect specifying the size of the widget. NOTE: Currently a relative measurement is used: 1 for full window width, 1 for full window height, e.g. Rect(0, 0, 1, 1) ...
-
... Methods *new (parent, bounds) parent - The parent view. bounds - An instance of Rect , or a Point indicating width@height. ( w = Window .new.front; a = TextField (w, Rect (10, 10, 150, 20)); a.string = "some default text" ; a.action = { arg ...