Submit
Browse
Anonymous
Login
RSS
SuperCollider Code
Fork Code: electric guitar
name
code content
( SynthDef(\noisecomb2, { arg out, gate=1, pan=0, freq=300, amp=0.1, noiselevel=0.2, minfreq=100, decaytime=1, doneAction=2, ffreq=500, rq=0.3, spread=0.8; var sig, env; sig = WhiteNoise.ar(noiselevel); sig = sig + ClipNoise.ar(noiselevel); sig = sig + AllpassC.ar(sig, 1/minfreq, 1/freq, decaytime); sig = RLPF.ar(sig, ffreq * \ffreqtab.kr(1!10), rq); env = EnvGen.kr(\adsr.kr(Env.adsr(0.6,0.1,0.8,0.1)), gate, doneAction:doneAction); sig = sig * env; sig = Splay.ar(sig, spread, 1, pan); sig = sig * amp; Out.ar(out, sig); }).store; ) ( Pdef(\plopbla, Pbind( \instrument, \noisecomb2, \note, Pseq([[0,7],[1,8],[-1,5]]-2,inf), //\note, Pseq([0,1,2,3,4],inf) \octave, Pstep(Pseq([3,4],inf),Pseq([5,0.75],inf)), \minfreq, 50, \decaytime, 1.0, \adsr, Pseq([ [Env.adsr(0.02,0.1,0.8,0.4,curve:0.5)], [Env.adsr(0.02,0.1,0.8,0.4,curve:0.5)], [Env.adsr(0.02,0.1,0.8,0.4,curve:0.5)], [Env.adsr(0.03,0.1,0.8,0.1,curve:0.5)], [Env.adsr(0.03,0.1,0.8,0.1,curve:0.5)], [Env.adsr(0.03,0.1,0.8,0.1,curve:0.5)], ],inf), \legato, 1.0, //\ffreq, [500,610,820,140], \ffreq, 500, //\ffreqtab, [[0.8,1,1.1,1.2, 2,4,5,6, 8,10].scramble.postln], //\ffreqtab, Pfunc{ [[ 0.1, 0.2, 0.3, 0.5, 1,2,3,8, 10, 12 ].scramble] + rrand(0.01,1.0); }, //\ffreqtab, [ 6, 4, 5, 10, 1, 1.2, 0.8, 1.1, 2, 8 ], // also nice \ffreqtab, [[ 6, 4, 5, 10, 1, 1.2, 0.8, 0.4, 2, 8 ]], \dur, Pseq([3,1,1, 0.25,0.25,0.25],inf), \amp, 1.1 )).play; );
code description
use markdown for formating
category tags
comma separated, i.g. "wild, siren" (do not enter default SC class names, please)
ancestor(s)
comma separated identificators, i.g. "1-C,1-1,1-4M,1-x"
Private?
the code will be accessible by direct url and not visible in public activity
signup to submit public code without captcha
comment of change