-
... ndex=10; ~vhighest=0; ~hhighest=0; ~vlowest = 16; ~hlowest = 16; z=40; w=Window("Confetti2", Rect(400, 300, z*~maxIndex, z*~maxIndex)).front; w.view.background_(Color.white); w.front; //function for drawing array on screen t={ ...
-
... d.outLevel = 0.2; // initial level // d.alwaysOnTop = true; // keeps the window in front d.alwaysOnTop = false; d.envMode = false; // Sine Waves - initial mode // d.envMode = true; // Envelope // buffer length in samples d ...
-
... ar startTime = thisThread.seconds ; ~allPoints = [] ; ~diffPoints = [] ; w = Window.new.front; q = UserView.new(w,w.view.bounds); q.mouseDownAction_({ | view, x, y, modifiers, buttonNumber, clickCount | ~allPoints = []; }); q ...
-
... ) ( var knob, active; active = false; ~a = Synth(\SimpleSynth); w = Window("Test",Rect(0, 0, 200, 200), scroll: true); w.front; knob = EZKnob(w, 112@70, 'freq', ControlSpec(20, 20000, step: 1, default: 20, units: 'hz'), { a ...
-
... //--used as a button 'settings' icon ( var size= Size(22, 22); var button; Window().front.view.layout_( StackLayout( UserView().drawFunc_{|usr| Pen.strokeColor= Color.black; Pen.width= 1; Pen.translate(size.width/2, si ...
-
... e original paper uses an algorithm called "TC LARM" that has an // adjustable window size, using 0.5s for the short-term and 2.0s for // the long-term. Here we cheat and use the same loudness measurement // twice, with a lowpass on th ...
-
... * mul }; snd = synth.play(args:[frq:1000, mul:0, which:0]); bnds = Window.screenBounds; h = bnds.height; w = bnds.width; win = Window("control", Rect(0, 0, w, h)).fullScreen; win.onClose_{ snd.free }; iW = w/srcs.size ...
-
... ) }).add ; ) ( ~synth = Synth(\vocali) ; d = 600; e = 400; f; w = Window("Spazio formantico", Rect(100, 100, d+20, e+20) ).front ; Array.series(21, 2500, 100.neg).do{|i,j| StaticText(w, Rect(j*(d/21)+5, 10, 30,10 )) .f ...
-
... newClear(10); // store values from Number Boxes ///////////////// // Main Window ///////////////// Window.closeAll; f = FlowView.new( bounds: 580@600, margin: 10@10, gap: 10@10) .background_(Color.white); f.onClo ...
-
... g function. But this code was still very fun to build. EF */ s.freeAll; Window.closeAll; Buffer.freeAll; /* Function for interpolating between two values based on an interpolation value: 0 ==> old, 1 ==> new, 0.5 ==> halfw ...