-
//discrete world - explosions //with mouse controlling repulsive object location ( var width= 640, height= 480, w, wgrav, world, n= 50, rep, pixelSize= 4, wn= width/n, hn= height/n; //--world w= RedWindow("discrete world - explosions", Rect ...
-
... 1, 0.4)) ); w.onClose = { synth.free; resp.free }; // high-rate transmission of mouse data (50x per second) s.waitForBoot { synth = { var trig = Impulse.kr(50); var mouse = Latch.kr(MouseY.kr(0, 1, 0, 0), trig); SendReply.kr(Changed.kr(mous ...
-
... all gui views, in particular defining actions, defining drag and drop, defining mouse actions, and defining key actions. See also: SCWindow , GUI Some Important Issues Regarding SCView If you try to set parameters of a GUI widget from a Rou ...
-
... 1000, 0.1); Formlet .ar(in, XLine .kr(1500,700,8), 0.005, 0.04); }.play; ) ( // mouse control of frequency and decay time. { var in; in = Blip .ar( SinOsc .kr(5,0,20,300), 1000, 0.1); Formlet .ar(in, MouseY .kr(700,2000, 1 ), 0.005, MouseX ...
-
now with snooze (press mouse button) Ndef(\a, { |freq=2000, rate=1, width=0.6, now = 10| LFPulse.kr(rate, 0, 4/6) * LFPulse.kr(rate * 6, 0, width) * Pulse.ar(freq, 0.3, 0.1) * SetResetFF.kr(Dust.kr(1/now), MouseButton.kr) }).play
-
MouseButton mouse button ugen superclass: UGen *kr(minval, maxval, lag) minval value when the key is not pressed maxval value when the key is pressed lag lag factor see also MouseX , MouseY //example { SinOsc .ar( MouseButton .kr(400, 440, ...
-
... ethods Instance Methods Inherited instance methods Examples ( // modal space // mouse x controls discrete pitch in dorian mode var scale, buffer; scale = FloatArray[0, 2, 3.2, 5, 7, 9, 10]; // dorian scale buffer = Buffer.alloc(s, scale.siz ...
-
... iew that receives extended wacom tablet data. It can also be used with a normal mouse but with less resolution. NOTE: TabletView is not implemented in Qt GUI, and is only available in other GUI kits on Mac OS X. To use it in SwingOSC, insta ...
-
Simple mouse theremin for Designing Digital Music and Interaction //PLACE MOUSE CURSOR ON EACH OF THE NUMBERS IN ORDER AND HIT CMD-RETURN ( // 1): // Initialize var currMidiNum, noteNames, octaves, screenRes, yres; ~pitchLo = \a0; ~ ...
-
... actions slightly differently. In Cocoa dragging begins as soon as you click the mouse. In Swing, you must move the mouse before dragging commences. To trigger a process with Swing, you must drag a very short distance. Why is dragging involv ...