-
... * amp.curvelin(inMin: 0, inMax: 1, outMin: 0, outMax: 1, curve: log(10)); snd = SinOsc.ar( freq: freq, phase: (Sweep.ar(trig: gate, rate: 2pi * [52.8, 740]) + (pi/3)).wrap(-pi, pi), mul: [2, 0.05] ).mean.tanh; snd = snd * env; Out.ar(out, P ...
-
... quist = SampleRate.ir / 2; amp = Select.kr(freq < nyquist, [0, 1]); sig = amp * SinOsc.ar(freq)!2; }.play; ) // frecuencia de corte en varios osciladores generando una onda cuadrada ( { var freq, sig, nyquist, numSin = 100; freq = MouseX.kr ...
-
... / wslib 2006 // min/max item for UGens and other objects // example: MaxItem( [ SinOsc.ar( 220 ), SinOsc.ar( 225 ) ] ); MaxItem { *new { |array, force = false| var out; if( array.any({ |item| item.isKindOf( UGen ) }) ) { out = array[0]; arr ...
-
... xample m = CCIn .new; // listen to all midi in ports and all midichannels x = { SinOsc .ar(m.kr(0, 0, \freq ), 0, 0.2)}.play // MIDI Chan = 0, CC = 0, Range 20-20000 Hz m.free; // loosing control x.free; // free synth // using two CCIns for ...
-
[ [ 'perkysine', {arg freq=400, amp=1; var osc; osc = SinOsc.ar( [freq,freq+0.05.rand] ) * EnvGen.ar( Env.perc, doneAction: 2) * 0.2; osc*amp; } ] ]
-
... ction /* s.boot; //example code SynthDef("sines", {arg freq1, freq2; var a; a = SinOsc.ar([freq1, freq2], 0, 0.3) * Line.kr(1, 0, 1, doneAction: 2); Out.ar(0, a); }).load(s); SynthDef("sines2", {arg freq1, freq2, freq3; var a; a = Mix.ar(Si ...
-
( Alga.boot({ //Simple sine perc AlgaSynthDef(\sine, { Mix(Array.fill(100, { SinOsc.ar(\freq.kr(440)) })) * 0.01 * EnvPerc.ar(release: 0.5) }, sampleAccurate: true).add; //Tanh distortion AlgaSynthDef(\tanh,{ (\in.ar(0) * \dist.kr(3)).tanh ...
-
... de.org/1-51l This kalimba is based on a bank of resonators: The basic tone is a SinOsc, whose release is randomized a little to add variation. The "clicking" sounds are modeled with a bank of resonators excited by a short burst of noise. Th ...
-
( Alga.boot({ a = AP(( def: { SinOsc.ar * EnvPerc.ar(release: 0.1) * 0.5 }, dur: 1 )).play(chans:2); }) ) a.from(0.5, \dur, sched: 1) a.from(\none, \dur, sched: 1) a.step
-
... e that move slowly ~hoaScene[0] = {var freq = 53.midicps; HOAEncoder.ar(~order, SinOsc.ar(freq) , az: LFSaw.ar(0.01, pi ), elev: LFTri.ar(0.01, pi * 0.5 ) )}; ~hoaScene[1] = {var freq = 56.01.midicps; HOAEncoder.ar(~order, SinOsc.ar(freq) , ...