-
... , char, xxx, code| if(code==32){ w.refresh; t = t.not; u.animate = t; } }; u = UserView(w, w.view.bounds); u.background = Color.black; u.animate = t; u.frameRate = 30; u.clearOnRefresh = false; u.drawFunc = { |view| var i = view.fra ...
-
... side w = Window("Draw your waveform!", Rect(100, 100, 1024, 512)).front; u = UserView(w, w.view.bounds); // function that changes the array and the buffer, and makes some clipping f = { |x, y| x = x.clip(0, 1023); y = y.clip(0, 5 ...
-
... n = Window("Example Graphical LSystem", bounds:Rect(0,0,1000,700)); var view = UserView(win, win.view.bounds.insetBy(50,50)); var lsys = LSystem( iterations:12, axiom:"FX", constants:Set[], rules:(\X : "X+YF+", ...
-
... g the note's probability to be played. Can only be 0 and 1 here. - Instance of UserView, where the tracker will be drawn - Instance of Rect, coordinates where the tracker will be drawn - Integer value defining the margin between tracker' ...
-
... t= l; var w= Window("waveform", Rect(99, 99, width, height), false); var u= UserView(w, Rect(0, 0, width, height)); var w2= width*0.5; var h2= height*0.5; //--buffer b= Buffer.alloc(s, l, 1); s.sync; //--interface ~t ...
-
... _size[0], window_size[1]), false); win.background_( Color.black ); slider = UserView( win, Rect( margin, margin, window_size[0] - (margin*2), window_size[1] - (margin*2))); synth = {arg freq=110; SinOsc.ar(freq!2)}.play; slider.dr ...
-
... ront; w.onClose = { #[aa,bb,cc,dd,ee].do{ |k| Ndef(k).end(3) }; }; u = UserView(w, w.view.bounds); u.background = Color.white; u.animate = true; u.clearOnRefresh = false; u.drawFunc = { var width = u.bounds.width; // P ...
-
... ; w = Window("granular windows", Rect(800, 200, viewWidth + 4, 450)); u = UserView(w, Rect(2, 2, viewWidth, 400)).front; u.background = Color.gray(0.1); indexSl = EZSlider(w, Rect(2, u.bounds.bottom + 2, viewWidth, 20), "Grain i ...
-
... restart)", Rect(10, 10, 700, 700) ); win.onClose = { run = false; }; view = UserView(win, 700@700).drawFunc_({ r.fUpdate }).clearOnRefresh_(false).mouseDownAction_({ |v,x,y| view.clearDrawing; r.fSpawn(x,y) }); win.front; { while { ru ...
-
... tontest",Rect(100,100,450,350)); w.view.background = Color(0.8,0.0,01); u = UserView(w, Rect(300, 200,100, 100)); u.background = Color.black; u.animate = true; pt = Point(); r = Rect(); //w.view.decorator = FlowLayout(w.view.boun ...