-
( Alga.boot({ //Declare a simple sine AlgaSynthDef AlgaSynthDef(\sine, { SinOsc.ar(\freq.kr(440)) * EnvPerc.ar }, sampleAccurate: true).add; //Declare a simple saw AlgaSynthDef AlgaSynthDef(\saw, { Saw.ar(\freq.kr(440)) * EnvPerc.ar * 0.4 } ...
-
... ion can be found under MultiChannel . s.boot; { Mix .new([ PinkNoise .ar(0.1), FSinOsc .ar(801, 0.1), LFSaw .ar(40, 0.1)]) }.play *fill(n, function) A common idiom using Mix is to fill an Array and then mix the results: ( play({ Mix .new( A ...
-
... amp=0.1, pan=0, freq=200; var sig; //thisThread.randSeed = 1923; sig = SinOsc.ar(freq); sig = Pan2.ar(sig, pan, amp); sig = ( WhiteNoise.ar + 0.8 ) * LFSaw.ar({ exprand(10.0,10000) }!20 * ( 1 + ( SinOsc.ar((1..4).rand(0.0)/18 * ...
-
... stances of this module (and others with a hfreq NamedControl) are used. { amp * SinOsc.ar(mfreq + (SinOsc.kr(lfreq) * hfreq)) } }; ) Ndef(\a)[0] = \module -> \sines; // controls: lfreq0, 440, hfreq (shared with others) Ndef(\a)[1] = \module ...
-
... = Line.ar(begin, end, sustain); rate = speed + Sweep.kr(1, accelerate); sound = SinOsc.ar(freq, SinOsc.ar(modfreq * (1..5), 0, 1 - phase * 10 * env / (1..5), 0.5pi)).sum; Out.ar(out, DirtPan.ar(sound, ~dirt.numChannels, pan, env) ) }).add ) ...
-
... var a = Ndef.ar(\x, 1, LFNoise0.kr(Rand()) * Rand() + Rand() * n); a + 0.1 * SinOsc.ar(ExpRand(0.2, 1000)) } ! n }); ) // where did I put my keys? ( var n = 30, m = 5; Ndef.clear(3); Ndef.ar(\x, n); Ndef(\y, { Splay.ar(Ndef ...
-
... ), Dseq ([1, 1, 1, 0], 2) ], Dseq ([0, 1, 2, 1, 0], 2)); trig = Impulse .kr(4); SinOsc .ar( Demand .kr(trig, 0, d).poll(trig) * 300 + 400 ) * 0.1 ! 2 }.play; ); // compare with Dswitch1: ( { var d, trig; d = Dswitch1 ([ Dwhite (3, 4, 2), Dw ...
-
... aSignal itself: // standing sinewave ~hoaSignal.source = {HOAEncoder.ar(~order, SinOsc.ar(48000 / 1024), MouseX.kr(-pi, pi), MouseY.kr(-pi * 0.5, pi * 0.5) )}; // White noise ~hoaSignal.source = {HOAEncoder.ar(~order, WhiteNoise.ar(1), Mous ...
-
... naryOpUGens are created as the result of a unary operator applied to a UGen . ( SinOsc .ar(200).abs).dump; ( LFSaw .ar(200).sin).dump; As in the examples given here, you don't usually need to instantiate UnaryOpUGen youself. Examples for un ...
-
... var snare, filtWhite; filtWhite = LPF.ar(WhiteNoise.ar(1), 7040, 1); snare = ((SinOsc.ar(330,0,0.25) * EnvGen.ar(Env.perc(0.0005,0.055))) Ê Ê Ê Ê Ê Ê Ê Ê Ê Ê Ê Ê+(SinOsc.ar(185,0,0.25) * EnvGen.ar(Env.perc(0.0005,0.075))) Ê Ê Ê Ê Ê Ê Ê Ê Ê ...