Submit
Browse
Anonymous
Login
RSS
SuperCollider Code
Fork Code: Mono2eN - SynthDef
name
code content
s = Server.internal; s.boot; ( SynthDef("4for8", { arg width=2, level=0.5; // change to match number of output audio channels var numChans = 6; var in, amp, pos=0, sig, sig2, sig2pan, out, chain, chainSpec, centroid, freq, hasFreq, freq2, hasFreq2; in = SoundIn.ar(0); // input # freq, hasFreq = Pitch.kr( in, ampThreshold: 0.09, median: 7); freq = freq * hasFreq* 0.01; freq.poll; chainSpec = FFT(LocalBuf(2048, 1), in); centroid = SpecCentroid.kr(chainSpec); centroid = ((centroid * 0.0005)-0.3)*10; // new possition determined by centroid pos = VarLag.kr( centroid, 0.9, ); // smooths the position // PanAz position of the sound sig = PanAz.ar( numChans, in, pos, level, width, ).scramble; chain = FFT({LocalBuf(2048, 1)}.dup(numChans), sig); chain = PV_MagFreeze(chain, SinOsc.kr(freq*100)); sig2 = IFFT(chain); sig2pan = SplayAz.ar( numChans, sig2 ); // Mixing wet and dry signal. out = sig + sig2pan; out = out*0.7; Out.ar(0, out); }).add; ) ( x = Synth("4for8") x.set(\width, 5, \level, 0.2) )
code description
The synthdef version of the mono2eN system - a multichannel autospatilisation musical performance tool.
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