-
... ments (which you build into your ugenGraphFunc ), and through new UGens such as Rand and TRand . When maximum flexibility is required, it is still possible to compile and send SynthDefs 'on the fly', albeit with SC2-like CPU spikes and a sm ...
-
... (0) * rate, 0, BufFrames.kr(0))) }.play(s); ) x.set(\rate, 5); y.set(\rate, 2.0.rand); x.set(\rate, 2); ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSource/Classes/BufWr.schelp link::Classes/BufWr::
-
... |out| var sound; Environment.use({ // set values in the environment ~freq = exprand(80, 600); ~amp = 0.1 + 0.3.rand; ~pan = 1.0.rand2; // call a randomly chosen instrument function // with values from the environment sound = [a,b,c].choose ...
-
... create a new pattern each time it is called Pdef(\x, { Pbind(\note, Pseries(10.rand, 5.rand, 8.rand + 1), \dur, 1 / (8.rand + 1)) }); Pn(Pdef(\x)).play; // the function is called in the incoming event as current environment, so parameters ...
-
... ar table, pitch; table = [0, 2, 4, 5, 7, 9, 11, 12]; inf.do { pitch = (48+(12*2.rand) + table.choose).midicps; Synth.grain(\frqShift1, [\freq, pitch]); 3.wait; }; }).play; ) // shift pulse wave in opposite directions ( SynthDef(\frqShift1, ...
-
... EnvGen.kr(Env.triangle(dur),doneAction:2) }); Instr(\sin).spawnEvent( (dur: 4.0.rand) ) ) ⧉ ✔ see also Instr Patterns helpfile source: /tmp/scquark_hs/crucial-library/HelpSource/Guides/Instr-making-Synths.schelp link::Guides/Instr-making-Sy ...
-
... 0.1); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var vel= RedVector2D[0.5, 0.5].rand2; var mass= 1; RedBoid(~world, loc, vel, 0, mass, mass*5) //world,loc,vel,acc,mass,size .maxForce_(0.6.rrand(1.6)); }. ...
-
... lloc(s, 2048); b.zero; c.zero; d.zero; ) ( 50.do { |it| c.set(20 * it + 10, 1.0.rand) }; 3.do { |it| b.set(400 * it + 100, 1) }; 20.do { |it| d.set(40 * it + 20, 1) }; ) ⧉ ✔ ( SynthDef(\conv_test, { |out, kernel, t_trig = 0| var input = Imp ...
-
... a storage place for various objects: q = (); // Event q[\a_long_array] = Array.rand(128, 0.0, 1.0); q[\pi_squared] = pi * pi; q[\favourite_sound] = { { SinOsc.ar([300, 330]).sum * LFPulse.kr(2 + [0, 0.01]) * 0.1 }.play }; q[\same_long_arra ...
-
... To be honest I haven't figured out which B-Spline this is ( l = BSpline({ { 4.0.rand } ! 2 } ! 9); l.gui ) ⧉ ✔ Class Methods . new (describe method here) Arguments: points (describe argument here) order (describe argument here) isClosed (de ...