-
... (freq, 0, 0.1); Out.ar(out, z) }).add; ) ( fork { 10.do { Synth(\env_help); 0.2.rand.wait; } } ) // using a gated envelope to gate a sound: ( SynthDef(\env_help, { |out, gate = 0, freq = 440, doneAction = 0| var z = EnvGen.kr(Env.adsr, gate ...
-
... monics... ( ~bufs.do({ |buf, i| var a = Array.fill(32, 0); 12.do({ |i| a.put(32.rand, 1) }); s.performList(\sendMsg, \b_gen, buf.bufnum, \sine1, 7, a); }); ) // new harmonics... ( ~bufs.do({ |buf, i| var a = Array.fill((i+1)**2, { |j| 1.0.r ...
-
... nOsc.kr(2 * 3).max(0) * 0.2) }); Ndef(\sound, Pbind(\dur, 0.17, \freq, Pfunc({ rrand(300, 700) }))); Ndef(\lfo, { LFNoise1.kr(3, 400, 800) }); Ndef(\sound).map(\freq, Ndef(\lfo)); Ndef(\sound, { |freq| SinOsc.ar([600, 635] + freq, 0, SinOsc ...
-
... Butz(\polyharpye).add(\chord_explo); Butz.pop.valueAction = Butz.pop.items.size.rand; // can access button if needed Butz.add(\getBut, { |bt| bt.dump }); ⧉ ✔ Class Methods . add add a named global action to Butz(\top) Arguments: name a Symb ...
-
... izeGraph Examples ( SynthDef("detectSilence-help", { |out| var z; z = SinOsc.ar(Rand(400, 700), 0, LFDNoise3.kr(8).max(0)).softclip * 0.3; DetectSilence.ar(z, doneAction: Done.freeSelf); Out.ar(out, z); }).add; ) Synth("detectSilence-help") ...
-
... 0.3.coin),{[2,3,5].choose},{1}) }, {prop=1.0; blocksize=2.0; tightenchance= 1.0.rand; 8.0;})).play(tempo); }); ) //using ChooseBlockProc to roll through a sound with UI control ( var w; var slider, num, data; var sf; data= //control spec da ...
-
... yLoop alt-T TOP focus goes to top control that sets current KeyPlayer // simple random keyboard player ( s.boot; s.latency = nil; // make sure we respond quickly thisThread.randSeed = 2014; k = KeyPlayer(\rand); "qwertzuiopasdfghjklyxcvbnm" ...
-
... / action button now remembers the environment ! ~freq.setUnmappedValue( x = 1.0.rand ); ~syncFreq.setUnmappedValue( y = 1.0.rand ); joy.x_(x).y_(y).changed; }); joy = GUI.slider2D.new(layout, 100 @ 100) .action_({ arg sl; // at this time no ...
-
... t; c.signal; "thread 1> ok, done. Release the semaphore.".postln; }; fork { 3.0.rand.wait; "thread 2> I would like to go on, if I may.".postln; c.wait; // may I? "thread 2> this took until the other thread has released the semaphore. " "Blo ...
-
... ck.wav","sounds/snare.wav","sounds/hat.wav"]); s.sync; BBCut2(CutTrig1(bufs, {3.rand},[0.0,0.2,1.0],1.0,1.0), WarpCutProc1.new).play(clock); }); ) ( var bufs, clock; clock= ExternalClock(TempoClock(2.1)); clock.play; Routine.run({ bufs=BBCu ...