-
... r .alloc(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 , { arg kernel, t_trig=0; var input; input= Impu ...
-
... 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_lo ...
-
... uments (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 ...
-
... ; // SynthDef-play returns a Synth object. ) // then do this ( SynthDef ( "help-Rand" , { arg out=0; Out .ar(out, FSinOsc .ar( Rand (200.0, 400.0), // frequency between 200 and 400 Hz 0, Line .kr(0.2, 0, 1, doneAction:2)) // frees itself ) ...
-
... once produces the error "FAILURE /s_new SynthDef not found" ( var name; name = "Rand-SynthDef" ++ 400.0.rand; // use a random name to ensure it's not already loaded SynthDef (name, { arg out=0; Out .ar(out, PinkNoise .ar(0.1)) }).send(s); S ...
-
... l stack to help locate the error. Routine ({ var a; a = 5; loop { var b; b = 20.rand; b.postln.ecky_ecky_phtang; // "NI!!!!" a.wait; } }).play; ERROR: Message 'ecky_ecky_phtang' not understood. RECEIVER: Integer 6 ARGS: Instance of Array { ...
-
... nicode) The default keydown actions are: key action comment r valueAction_ (1.0.rand) n valueAction_ (0) x valueAction_ (1) c valueAction_ (0.5) ] increment by keystep [ decrement by keystep unicode 16rF700, increment by keystep up arrow un ...
-
... lean logical And Boolean || Boolean logical Or When a function is the second operand, these operators perform short-circuiting (i.e., the function is executed only when its result would influence the result of the operation). This is recomm ...
-
... ostln; 0.5.wait } }); Pdef ( \b , { |e| 100.do { |i| Pdef ( \a ).set( \otto , 8.rand); exprand(0.1, 3.0).wait } }); t = PdefAllGui (8); ) // if you have too many Pdefs, an ezscroller lets you select "abcdefghijk" .do { |ch| Pdef (ch.asSymbo ...
-
... ostln; 0.5.wait } }); Tdef ( \b , { |e| 100.do { |i| Tdef ( \a ).set( \otto , 8.rand); exprand(0.1, 3.0).wait } }); t = TdefAllGui (8); ) // if you have too many Tdefs, an ezscroller lets you select "abcdefghijk" .do { |ch| Tdef (ch.asSymbo ...