-
... use button reset range a= {SinOsc.ar(RedAutoScale.kr(MouseX.kr, 200, 400, reset:MouseButton.kr).round(25), 0, 0.2)}.play a.free //predefined minimum input range a= {SinOsc.ar(RedAutoScale.kr(MouseX.kr(-10, 10), 200, 400, -5, 5, MouseButton. ...
-
... n this demo, mouse left/right controls the amount of smoothing, // and when the mousebutton is down you hear the "original" // (otherwise you hear the "cleaned" version). d = Buffer.alloc(s, 1024); ( x = { var son, chain, chainorig, chainsm ...
-
... ///////////////////////////////////// // tests // reset test. ( { var a, trig = MouseButton.kr > 0.5; a = Dfsm([[0], Dseq([-2, -3], inf), [1, 7], Dseq([0.1, 0.2], inf), [0, 1], Dseq([900], inf)]); Demand.kr(trig, 0, a); // should end after ...
-
... al' lag lag factor to dezipper cursor movement. (Default 0.2) see also MouseY , MouseButton //example { SinOsc .ar( MouseX .kr(40, 10000, 1), 0, 0.1) }.play; //same but with a 2sec lag { SinOsc .ar( MouseX .kr(40, 10000, 'exponential' , 2), ...
-
... al' lag lag factor to depipper cursor movement. (Default 0.2) see also MouseX , MouseButton //example { SinOsc .ar( MouseY .kr(40, 10000, 1), 0, 0.1) }.play; //xy example { SinOsc .ar([ MouseX .kr(40, 10000, 1), MouseY .kr(40, 10000, 1)], 0 ...
-
... ouse y controls damping ( { var inforce, outforce, freq, k, d; inforce = K2A.ar(MouseButton.kr(0, 1, 0)) > 0; k = MouseY.kr(0.1, 20, 1); d = MouseX.kr(0.00001, 0.1, 1); outforce = Spring.ar(inforce, k, d); freq = outforce * 400 + 500; // mo ...
-
PMouseButton UGenPatterns quark library superclass: Pattern based on MouseButton NOTE: mac osx only, lag is not implemented only osx, and only sc3.4 or sc3.5 in 32bit mode (i.e. something is broken under 64bit sc3.5) PMouseButton(minval, ma ...
-
... y. MouseY MouseY JMouseY MouseY UGen. JMouseY for backward compatiblility only. MouseButton MouseButton JMouseButton MouseButton UGen. JMouseButton for backward compatiblility only. KeyState KeyState JKeyState KeyState UGen. JKeyState for b ...
-
... case( \osx, { StartUp.defer({ SynthDef( "UDragSource_mouseState", { var state = MouseButton.kr( 0, 1, 0 ); FreeSelf.kr( HPZ1.kr( state ) < 0 ); }).writeOnce }) } ); } *viewClass { ^DragSource } *new { |parent, bounds| ^super.new.view_( this ...
-
... er({ if( GUI.id == \cocoa ) { SynthDef( "UDragSource_mouseState", { var state = MouseButton.kr( 0, 1, 0 ); FreeSelf.kr( HPZ1.kr( state ) < 0 ); }).writeOnce }; }) } ); } *viewClass { ^DragSource } *new { |parent, bounds| ^super.new.view_( t ...