-
... ting of StkGlobals. - It's beginner-friendly because it uses only basic UGens: SinOsc, EnvGen, Mix, Pan2, Out. */ ( SynthDef(\rhodey_sc, { | // standard meanings out = 0, freq = 440, gate = 1, pan = 0, amp = 0.1, ...
-
... riggers per second (or every 0.1 seconds). See Poll for more info on polling. { SinOsc .ar( LFNoise0 .ar(2).range(420, 460).poll(label: \LFNoise ), 0, 0.2) }.play; // multichannel polling: ( { var freqs = SinOsc .ar([0.2, 0.3]).range(420, 4 ...
-
... nherited class methods Instance Methods Inherited instance methods Examples ( { SinOsc.ar( RunningMax.ar(Dust.ar(20), Impulse.ar(0.4)) * 500 + 200, 0, 0.2 ) }.play; ) // follow a sine lfo, reset rate controlled by mouse x ( { SinOsc.ar( Run ...
-
... nherited class methods Instance Methods Inherited instance methods Examples ( { SinOsc.ar( RunningMin.ar(Dust.ar(20), Impulse.ar(0.4)) * 500 + 200, 0, 0.2 ) }.play; ) // follow a sine lfo, reset rate controlled by mouse x ( { SinOsc.ar( Run ...
-
... nsation) (equal power). ( x = { arg spread=1, level=0.2, center=0.0; Splay .ar( SinOsc .ar( { |i| LFNoise2 .kr( rrand(10, 20), 200, 400) } ! 10), spread, level, center ); }.play; ) x.set( \spread , 1, \center , 0); // full stereo x.set( \sp ...
-
... so we can easily confirm that these two are equivalent. //first the Function { SinOsc.ar(440, 0, 0.2) }.play; // now here's an equivalent SynthDef SynthDef.new("tutorial-SinOsc", { |out| Out.ar(out, SinOsc.ar(440, 0, 0.2)) }).play; ⧉ ✔ Syn ...
-
... in=1.0, pan, p, amp=0.1;\ var u;\ u = Line .kr(1, 0, sustain, doneAction:2) * \ SinOsc .ar(freq, \ SinOsc .ar(freq * p, 0, BrownNoise .kr(pi/8))\ );\ Out .ar(out, Pan2 .ar(u, pan, amp));\ \ \).store;\ )\ \ (\ var pat;\ \ pat = AminoacidPatt ...
-
... ot Alga Alga.boot //2 sines. \freq has two control rate channels a = AlgaNode({ SinOsc.ar(\freq.kr([220, 440])) }).play //5 LFOs at audio rate b = AlgaNode({ SinOsc.ar([1, 2, 3, 4, 5]) }) //rate conversion ( ar -> kr ) //channels conversion ...
-
... itially be nothing in leaves"); } test_clearAll { var l; Instr("test_clearAll",{SinOsc.ar}); Instr.clearAll; l = Instr.leaves; this.assertEquals( l.size, 0, "should be nothing in leaves after clearAll"); } /*test_noOverwriteSubnode { var q, ...
-
... .waitForBoot{ buffer= Buffer.alloc(s, buffersize, 3); s.sync; { var x= SinOsc.ar(42);//sound x var y= SinOsc.ar(83);//sound y var z= SinOsc.ar(164);//sound z RecordBuf.ar([x, y, z], buffer); Silent.ar; }.play; s.syn ...