-
... d=1, wet=1| var chain; chain = in+FreqShift.ar(in, 0, SinOsc.kr(speed).range(0, pi)).tanh; chain = chain + FreqShift.ar(chain, 0, SinOsc.kr(speed*0.97).range(0, pi)).tanh; chain=(chain*0.5).tanh; XFade2.ar(in, chain, wet*2-1, 1);}; ~chrs ...
-
Damped Driven Double Pendulum Sonification and Visualization by xavieredavenport (xavieredavenport) Code
... top Version 1. A little toy physics simulation of a double pendulum with damping and drive. The math is a little inconsistent in SuperCollider when dealing with numbers super small and super large, especially when trig functions are inv ...
-
... Pen.moveTo(cogs[0]); Pen.lineTo(cogs[1]); cogs= cogs.collect{|p| p.rotate(pi/numCogs+offset)}; Pen.lineTo(cogs[2]); Pen.lineTo(cogs[3]); cogs= cogs.collect{|p| p.rotate(pi/numCogs+offset)}; Pen.lineTo(cogs[0]); Pen.line ...
-
... Osc.kr([0.1,4.2], 0, [1700,480], [4000,700,5000])/[20.51,20], SinOsc.ar(0.1,1.5*pi)+1.05)/3; snd = Mix(snd); snd = MoogFF.ar(snd, SinOsc.kr(0.08, 0.5, cutoff/10, cutoff), 3, 0); snd = snd * EnvGen.ar(Env.dadsr(delay,0.4, ...
-
... dom phase, slowly varying amplitude, slowly wandering through the stereo field; pitches are chosen from a given chord that is changing at intervals between 18 and 20 seconds. // Meandering Sines ( // chord choosing function ~chords = Dic ...
-
... ax).sort, nil, Array.rand(n, dtMul*0.1, dtMul).sort.reverse ] }; ~pipe = { var in; in = ~in.ar(8); in.collect({ arg chan; Klank.ar(Ref(f.value(rrand(4, 15), dtMul: rrand(40, 1).reciprocal)), chan) }) * 0.4 } ) ...
-
... ncy, etc very easily. ( Server.default.waitForBoot({ SynthDef(\SimpleHarmonicPing, { |out, freq, amp, sustain, pan| var snd = BLowPass4.ar(Saw.ar(freq), freq*Line.kr(2, 1, sustain/4), 1); snd = snd * EnvGen.ar(Env.perc(0.01, sustai ...
-
A piece i'm working on for a dance performance. ( // 'random' sequences of rhythms, reverb,... z = { var trig, seq; trig = Impulse.kr(6); seq = Drand([ Dseq([4,0,0,1,Drand([1,4]),1,0,1]), Dseq([1,0,2,0,Dran ...
-
... , Array.exprand(i-2,0.1,10)), NamedControl.kr(\in_phase, Array.rand(i-2,0,pi)), NamedControl.kr(\in_mul, Array.rand(i-2,0,1)), NamedControl.kr(\in_add, 0!(i-2)), ) ++ [0], NamedControl.kr(\in_step, Array.exprand( ...
-
... // flower shape xy = [commonpart*SinOsc.kr(time), commonpart*SinOsc.kr(time, pi/2), -3, 3, -3, 3]; // x and y vary between -3 and 3 sc = (xy*0.2).scope; // for visualization only Out.kr(controlOutBus, xy); }).add; SynthDef(\s ...