-
... req; a = Dreset(Dseries(0, 2, inf), Drand([0, 0, 0, 1], inf)); freq = Duty.kr(1/MouseX.kr(1, 40, 1), 0, a) * 30 + 340; SinOsc.ar(freq) * 0.1 }.play; ) // reset when mouse button is pressed ( { var a, freq; a = Dreset(Dseries(0, 2, inf), Mou ...
-
... e bus to different values: ~b1.set(100); ~b1.xline(800, 5); ~s3 = { Out.kr(~b1, MouseX.kr(300, 900, 1)) }; // add some mouse control on the fly ~s3.free; // remove it again. // finish: ~b1.free; d.clear; d.pop; ⧉ ✔ helpfile source: /usr/loc ...
-
... HIDdef methods will not work properly: HIDdef.usage(\x, { }, \X); // X-axis of mouse ⧉ ✔ So it is worth repairing until newer SC releases fix this. // * check if hutDirectory is missing: ~hutDirMissing = HIDUsage.hutDirectory.pathMatch.pos ...
-
... n a very different output. Compare these two examples: ( { SinOsc.ar( Hasher.kr(MouseX.kr(0, 10).round(1), 300, 500) ) * 0.1 }.play; ) ( { SinOsc.ar( Hasher.kr(MouseX.kr(0, 10).round(1) + 0.0001, 300, 500) ) * 0.1 }.play; ) // Output stays ...
-
... ce Methods Inherited instance methods Examples // vary frequency { StandardL.ar(MouseX.kr(20, SampleRate.ir)) * 0.3 }.play(s); ⧉ ✔ // mouse-controlled param { StandardL.ar(SampleRate.ir/2, MouseX.kr(0.9, 4)) * 0.3 }.play(s); ⧉ ✔ // as a fre ...
-
... * 500 + 200, 0, 0.2 ) }.play; ) // follow a sine lfo, reset rate controlled by mouse x ( { SinOsc.ar( Peak.kr(SinOsc.kr(0.2), Impulse.kr(MouseX.kr(0.01, 2, 1))) * 500 + 200, 0, 0.2 ) }.play; ) ⧉ ✔ helpfile source: /usr/local/share/SuperCol ...
-
... age({ |...args| args.postln }, \X, deviceInfo: b); a.free b = HIDProto.newType(\Mouse, \GenericDesktop); a = HIDFunc.usage({ |...args| args.postln }, \X, deviceInfo: b); a.free; b = HIDProto.newProduct("USB Mouse", "Logitech"); a = HIDFunc. ...
-
... ce Methods Inherited instance methods Examples // vary frequency { StandardN.ar(MouseX.kr(20, SampleRate.ir)) * 0.3 }.play(s); ⧉ ✔ // mouse-controlled param { StandardN.ar(SampleRate.ir/2, MouseX.kr(0.9, 4)) * 0.3 }.play(s); ⧉ ✔ // as a fre ...
-
... drop returns and accepts a Point, describing the current x and y value. All the mouse actions ( action , mouseDownAction , and mouseUpAction ) receive the following arguments: view the view x subpixel location in view y subpixel location in ...
-
... n Class methods new Inherited class methods Instance methods Interaction action mouseDownAction Internal Methods draw Inherited instance methods Examples Classes (extension) | GUI > Graphical Module'>Graphical Module GMCloseButton Extension ...