-
... an argument, create a new pattern each time it is called Pdefn(\x, { Pseq({ 10.rand } ! 8) }); Pn(Pdefn(\x)).asStream.nextN(16); // the function is called in the incoming event as current environment, so parameters can be passed: Pdef(\stu ...
-
... NAryOpFunction related: BinaryOpStream , Pbinop // sound example ( var a = { 19.rand }; var b = { [5, 8, 9].choose }; var c = a + b; fork { 15.do { (instrument: \default , note: [c.value, a.value]).play; 0.3.wait; } } )
-
... , NAryOpFunction related: UnaryOpStream , Punop // sound example ( var a = { 19.rand }; var b = a.sqrt; fork { 15.do { (instrument: \default , note: [a.value, b.value]).play; 0.3.wait; } } )
-
... // result shoud be between 0 and 1 // and will be mapped to the output spec 1.0.rand; } ) .setSpec( \function, CodeSpec() ) .category_( 'function' )
-
... // result shoud be between 0 and 1 // and will be mapped to the output spec 1.0.rand; } ) .setSpec( \function, CodeSpec() ) .category_( 'function' )
-
... hresh", "AmClip", "ScaleNeg", "Clip2", "Excess", "Fold2", "Wrap2", "FirstArg", "RandRange", "ExpRandRange"]; ^nm.at(this).asSymbol } nameOfUnaryOpSpecialIndex { var nm = ["-", "!", "IsNil", "NotNil", "BitNot", "Abs", "AsFloat", "AsInt", "Ce ...
-
PRand: Filter: Description Class methods new Inherited class methods Instance methods Inherited instance methods Examples Classes (extension) | Streams-Patterns-Events > UGenPatterns'>UGenPatterns > UGenPatterns>Generators'>Generators PRand ...
-
... Action:2) }.play ) // Linear ( b = LinearSpline( Array.fill(60,{ arg i; [ i,1.0.rand ] }) ); b.gui(nil,1200@300); ) ( { PinkNoise.ar * SplineGen(b).kr(doneAction:2) }.play ) ⧉ ✔ . readKr Plays the spline with a modulatable position input. A ...
-
... modMix = 0, dur; var env = EnvGen.ar(Env.linen(0.0005, dur-0.001, 0.0005, 1, IRand(-8,-4)), gate, doneAction:2); var mod = SinOsc.ar(freq*Rand(0.25,2),0,index-(index*modMix))+HenonC.ar(freq*IRand(4,8),mul:index*modMix); var src = SinO ...
-
... ius = spriteSize/2; var enemyArray = [Rect.aboutPoint(win.view.bounds.width.rand@0,radius, radius)], explosions = Array.newClear; var numLives=3; var sqrtHalfPi = sqrt(pi/2); var level = 1; var boostView, boostFuel=1, bo ...