-
... //// Envelopes Dynamically modulate any parameter in a ugen (such as frequency, phase, or amplitude) with an envelope. // modulate amplitude { SinOsc .ar(440, 0, 0.1) * EnvGen .kr( Env .sine(1), doneAction: 2) }.scope; Setting the doneActio ...
-
... ollect({arg i; i + 1}); d.arrLevels = [1] ++ (0 ! (d.maxSines - 1)); d.arrPhases = 0 ! d.maxSines; }], ["Sawtooth wave using Sines", { d.arrFreqs = d.maxSines.collect({arg i; i + 1}); d.arrLevels = d.maxSines.collect({arg i; ...
-
... odRate = 5.5, modDepth = 0.0005, eqFc = 800, eqQ = 3; var signal, tapPhase, tap, tapPhaseL, tapPhaseR, tapL, tapR; var timeMod, eqMod; //Drop the input slightly to avoid clicky clipping signal = 0.7*In.ar(18, 2); si ...
-
... er way in which SC makes things very interchangeable. Because the arguments for phase and mul are the same for both SinOscs, we can rewrite the code for our example like this: { SinOsc .ar([440, 442], 0, 0.2) }.play; We've replaced the freq ...
-
... \ar,[ \in, [Impulse, LFPulse].choose.ar( [4, 2, 1, 1/2, 1/3, 1/4, 1/6].choose, iphase: [0, 1/4, 1/8, 1/2, 1/3].choose, phase: [0, 1/4, 1/8, 1/2, 1/3].choose, width: [0.001, 0.0001, 0.01, 0.1, 0.2].choose, mul: [1, 2, 3, 4].choose.reciprocal ...
-
... ; its sine wave occupies the entire buffer duration. sine3: Like sine2, but the phase of each partial may also be provided. Same arguments as sine1, plus: phases: Array of phases for each partial, given in radians (0.0 - 2pi). MIDI output m ...
-
... = [0, 0.0066, 0.0077, 0.011, 0.0153, 0.018, 0.0226, 0.063], waveform_selector, phase_selector, wf = Array2D.fromArray(32,42, [ //algorithm matrix /*Alg #1*/ /*1*/0,(pi * 4),0,0,0,0,/*2*/0,0,0,0,0,0,/*3*/0,0,0,(pi * 4),0,0,/*4*/0,0,0,0,( ...
-
... = 0| XLine .kr(start, end, dur) + add; }, { |freq = 0.3, dev = 15, center = 60, phase = 0, add = 0| LFTri .kr(freq, phase, dev, center + add); } ]); ) // switch between two help synths // both help synths are run from the start (default hsS ...
-
... // knob \ (chan == 8).if\ // global rate -> master (right-most) \ BufferBlock .phase.set( \ , val.linlin(0, 127, 0.5, 2).round(0.01).postln)\ \;\ (chan < 8).if\ // amps \ q.blockAmper.set( "amp%" .format(chan), val.linlin(0, 127, 0, 1));\ ...
-
... 0..1) *periodic { arg x, offset = #[31.4, -62.8], freqScale = 0.2, oct = 3; var phase = x * 2pi; var v = [cos(phase), sin(phase)] * freqScale + offset; ^this.fBm2(v[0], v[1], oct) } *prfBm { arg vec, oct = 3, method; var sum = 0; var weight ...