-
... 1 ).value_( 1 ); ( Tdef( \autoaction, { loop{ m.elementAt( \motor ).value_( 1.0.rand ); 1.0.wait; m.elementAt( \led, 0 ).value_( 1.0.rand ); 1.0.wait; m.elementAt( \led, 1 ).value_( 1.0.rand ); 1.0.wait; m.elementAt( \led, 2 ).value_( 1.0.r ...
-
... ll(q, { |i| Slider(h, Rect(0, 0, 20, 75)).value_(i / q) }); h.background_(Color.rand); w.front ) ⧉ ✔ Stretching the layout view; Slider height fills the View automatically: ( q = 8; w = Window.new; h = HLayoutView(w, Rect(0, 0, 300, 300)); ...
-
... no.ar(0.1,3)), mul:no.kr(3,6))); 9.do{ sig1=AllpassL.ar(sig1,0.3,{0.2.rand+0.1}!2,5) }; sig1 = sig1 / (SinOsc.ar(0.05,pi/2).range(3,10)); sig1.tanh; }); Ndef(\slowchimes, { var s, z, y; // 10 voices of a rando ...
-
... av,maxvel,damp //--objects ypos= 10; while({ypos<(height-10)}, { var size= 50.0.rand; //pendulum size var loc= RedVector2D[width.rand, ypos+size]; var vel= RedVector2D[0.5, 0].rand; var obj= RedPendulum(world, loc, vel, 0, size, size) //wor ...
-
... av,maxvel,damp //--objects ypos= 10; while({ypos<(height-10)}, { var size= 50.0.rand; //pendulum size var loc= RedVector2D[width.rand, ypos+size]; var vel= RedVector2D[0.5, 0].rand; var obj= RedPendulum(world, loc, vel, 0, size, size) //wor ...
-
SynthDef( \many_pulse_1, { var freqs = 300.collect{|n| n + 1.0.rand } * 20; var oscs = freqs.collect{|f| Pulse.ar(freq: f, width: 1.0.rand) }; Out.ar(0, oscs.mean) })
-
... 0, 300, 150)).front; a = StaticText(w, Rect(45, 10, 200, 20)).background_(Color.rand); a.string = " Current Frequency "; Button.new(w, Rect(45, 70, 200, 20)).states_([["close", Color.black, Color.rand]]).action_({ w.close }); s.waitForBoot( ...
-
... ve . rows . with ( aarray ) Examples // "a" is an array-of-arrays a = { { 100.0.rand }.dup(100) }.dup(100); // "b" is an equivalent Array2D, made using the "fromArray" class method b = Array2D.fromArray(100, 100, a.flat); // Accessing a[15] ...
-
... = Mix(Ringz.ar(decay, freq*[1,2], sustain)); snd = snd + Mix(SinOsc.ar(freq*[Rand(1,1.1),Rand(1.4, 1.6), Rand(1.9,2.1), Rand(3.9, 4.1)], mul:Decay2.ar(trig, 0.01,hdur))); snd = BLowPass.ar(snd, ffreq * decay.linexp(0,1,1,famt), 0.1) ...
-
... // 最初はCombフィルターで次がAllpassフィルター(パラメータは同じ)。両者を比較せよ。 ( { CombN.ar( SinOsc.ar(500.rrand(1000), 0, 0.2) * Line.kr(1, 0, 0.1), 0.3, 0.25, 6 ) }.scope; ) // 前の例とそんなに大きな違いは無い ( { AllpassN.ar( SinOsc.ar(500.rrand(1000), 0, 0.2) * Line.kr(1, 0, 0.1) ...