-
... View is automatically placed into an SCWindow as its top view, unless scroll is set to true upon SCWindow creation, in which case a SCScrollTopView is used. SCTopView is different from other container views, in that it can accept drags. Thi ...
-
... esponders. eg. if a CCResponder matches port, chan and num, and swallowEvent is set to true, then no further CCResponders will be offered the chance to respond to the event. The event is "swallowed". by default this is false. Any of the mat ...
-
... fault, this is Pdefn .all, so one can embed Pdefns by name. dict_(a dictionary) set the dictionary to be used // example: ( // load a synthdef s.boot; SynthDef ( "gpdef" , { arg out=0, freq=440, sustain=0.05, amp=0.1, pan; var env; env = En ...
-
... index number of the bus to write out on. These start from 0, which on a stereo setup is usually the left output channel. The second is either a UGen or an Array of UGens. If you provide an array (i.e. a multichannel output) then the first ...
-
... into the buffer loop when phase exceeds number of frames in buffer, loops when set to 1 (default :1) see also [ Dbufwr ] // example b = Buffer .alloc(s, 24, 1); b.setn(0, { exprand(200, 500) } ! b.numFrames); b.getn(0, b.numFrames, { |x| x ...
-
... some arguments, such as the duration. The default is 0.01 seconds, but you can set it to anything you want. { PinkNoise .ar(0.2) + SinOsc .ar(440, 0, 0.2) + Saw .ar(660, 0.2) }.plot(1); This can be useful to check what's happening, and if ...
-
... ay = g->sp; // an array // ... the body return errNone; } This example does not set the receiver, so the primitive returns the original receiver unchanged (still an instance of Cocoa). or set the object at receiver which again is at (g->sp ...
-
... default the list of probabilities should sum to 1.0, when the normalize flag is set to 1, the values get normalized by the ugen (less efficient) //assuming normalized values ( a = SynthDef ( "help-TWindex" ,{ arg w1=0.0, w2=0.5, w3=0.5; var ...
-
... erns take lists of values and return them in some order. Pseq(list, repeats, offset) -- return the list's values in order Pshuf(list, repeats) -- scramble the list into random order Prand(list, repeats) -- choose from the list's values rand ...
-
... 2, 3 ].choose.postln }); Weighted choice: wchoose(weights) An array of weights sets the chance for each element. 10.do({ [ 1, 2, 3 ].wchoose([0.1, 0.2, 0.7]).postln }); Randomize the order of a Collection: scramble List [ 1, 2, 3, 4, 5 ].s ...