-
... es between zero and one upon receiving a trigger. trig - trigger input ( play({ SinOsc .ar(( ToggleFF .ar( Dust .ar( XLine .kr(1,1000,60))) * 400) + 800, 0, 0.1) }))
-
... // example { ControlRate .ir.poll }.play; // play a sine tone at control rate { SinOsc.ar(ControlRate .ir) * 0.1 }.play;
-
... Andersen .ar( FFT ( LocalBuf (2048), source1), threshold: MouseX .kr(0.1,1.0)); SinOsc .ar([440, 445], 0, Decay .ar(0.1 * detect, 0.1)); }.play; ) // using test sound: // mouse y is difficulty, mouse x is threshold ( { var source1, detect, ...
-
... maginary part of a. See also FFT Overview . // examples ( { var in, chain; in = SinOsc .ar(450) * 0.1; chain = FFT ( LocalBuf (2048), in); chain = PV_ConformalMap (chain, MouseX .kr(-1.0,1.0), MouseY .kr(-1.0,1.0)); IFFT (chain).dup; }.play ...
-
... force, k, d); freq = outforce * 400 + 500; // modulate frequency with the force SinOsc .ar(freq, 0, 0.2) }.play; ) // several springs in series. // trigger gate is mouse button // spring constant is mouse x // mouse y controls damping ( { v ...
-
... seconds. ( { z = Impulse .ar(2); [z * 0.1, ToggleFF .ar( TDelay .ar(z, 0.5)) * SinOsc .ar(mul: 0.1)] }.scope)
-
... nv = Line .kr(0, 1, 1); FreeSelfWhenDone .kr(env); // free synth at end of line SinOsc .ar(200, 0, 0.5) * env }.play; ) // the previous example works, because FreeSelfWhenDone operates on the Line // this version won't work ( { var env, out ...
-
... the same for every Synth based on it: ( SynthDef ( \help_notRand , { Out .ar(0, SinOsc .ar(rrand(400, 800), 0, 0.2) * Line .kr(1, 0, 1, doneAction: 2) ) }).add; ) a = Synth ( \help_notRand ); b = Synth ( \help_notRand ); // the same freq as ...
-
... hDef ( "withControls" , { arg freq = 440, beatFreq = 1, mul = 0.22; Out .ar( 0, SinOsc .ar([freq, freq+beatFreq], 0, mul) ) }).load(s); ) // items in the array are passed to the controls in Synth when it's created z = Synth ( "withControls" ...
-
... = Impulse .kr( MouseX .kr(1, 40, 1)); freq = Demand .kr(trig, 0, a) * 30 + 340; SinOsc .ar(freq) * 0.1 }.play; )