-
... 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 .ar(0, SinOsc .ar(440, 0, 0.2)) }).play; SynthDef- ...
-
* multiplication BinaryOperator a * b // Same as mul: 0.5 { SinOsc .ar(440) * 0.5 }.play; // This creates a beating effect (subaudio rate). { FSinOsc .kr(10) * PinkNoise .ar(0.5) }.play; // This is ring modulation. { SinOsc .ar(XLine.kr(100 ...
-
... rview . s.boot; ( SynthDef ( "help-magAbove" , { arg out=0; var in, chain; in = SinOsc .ar( SinOsc .kr( SinOsc .kr(0.08, 0, 6, 6.2).squared, 0, 100, 800)); //in = WhiteNoise.ar(0.2); chain = FFT(LocalBuf(2048) , in); chain = PV_MagAbove (ch ...
-
... lue when the key is pressed lag lag factor see also MouseX , MouseY //example { SinOsc .ar( MouseButton .kr(400, 440, 0.1), 0, 0.1) }.play; { SinOsc .ar( MouseButton .kr(400, 740, 2), 0, 0.1) }.play;
-
... 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 ...
-
... 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 ...
-
... requency band. // mixer parametric eq as wahwah { MidEQ .ar( Saw .ar(200,0.2), FSinOsc .kr(1, 0, 24, 84).midicps, 0.3, 12) }.play // notch filter ( { var in; in = PinkNoise .ar(0.2) + SinOsc .ar(600, 0, 0.1); MidEQ .ar(in, SinOsc .kr(0.2, 0 ...
-
... dex; trig = Impulse .kr(6); index = TWindex .kr(trig, [w1, w2, w3]); Out .ar(0, SinOsc .ar( Select .kr(index,[400, 500, 600]), 0, 0.2 ) ) }).play; ) a.setn(0, [0,0,1].normalizeSum); a.setn(0, [1,1,1].normalizeSum); a.setn(0, [1,0,1].normali ...
-
... ); ) ( SynthDef ( "help-magBelow" , { arg out=0, bufnum=0; var in, chain; in = SinOsc .ar( SinOsc .kr( SinOsc .kr(0.08, 0, 6, 6.2).squared, 0, 100, 800)); chain = FFT (bufnum, in); chain = PV_MagBelow (chain, 10); Out .ar(out, 0.5 * IFFT ( ...
-
... > 0.5) > 0; f = Ball .ar(sf, MouseY .kr(0.01, 20, 1), 0.01); f = f * 10 + 500; SinOsc .ar(f, 0, 0.2) }.play; ) // mouse x controls modulation rate // mouse y controls gravity ( { var f, sf, g; sf = LFNoise0 .ar( MouseX .kr(1, 100, 1)); g = ...