Submit
Browse
Anonymous
Login
RSS
SuperCollider Code
Fork Code: sound | harmonics
name
code content
// sound | harmonics // web experiments // http://yota.tehis.net/webX/harmonics ( s.waitForBoot { ~n = 20; ~b = 256; ~f = s.sampleRate/~b; FreqScope.new; s.scope(1, 0, bufsize: ~b*2); }; ) // ------------------ demos ------------------ // // #0 // randomness ( { Mix.arFill(~n, { |i| i=i+1; FSinOsc.ar(~f*i, 0, 1/i) * LFNoise2.kr(1).exprange(0.05, 1) }).dup * 0.8; }.play; ) // #1 ( { Mix.arFill(~n, { |i| i=i+1; FSinOsc.ar(~f*i, 0, 1/i) * LFTri.kr(i*0.05+0.05, i/~n*4).exprange(0.05, 1) }).dup * 0.6; }.play; ) // #2 // randomness faster ( { Mix.arFill(~n, { |i| i=i+1; FSinOsc.ar(~f*i, 0, 1/i) * LFNoise2.kr(7).exprange(0.05, 1) }).dup * 0.8; }.play; ) // #3 // timbre melody ( { Mix.arFill(~n, { |i| i=i+1; FSinOsc.ar(~f*i, 0, 1/i) * LFNoise0.kr(5).exprange(0.01, 1).lag }).dup * 0.8; }.play; ) // #4 // waveshape ( { VarSaw.ar(~f, 0, LFTri.kr(0.05).range(0, 1)).dup * 0.5; }.play; ) // #5 // pwm ( { OnePole.ar( LFPulse.ar(~f, 0, LFTri.kr(XLine.kr(0.1, 2, 10), 0).range(0.01, 0.99), 2, -1)*0.4, 0.85 ).dup }.play; ) // #6 // wavefold { FSinOsc.ar(~f, 0, SinOsc.kr(0.07, 1.5pi).range(0.7, 4.3)).fold2.dup * 0.8 }.play; ( // #7 // harmonic dust swipe { { Mix.arFill(50, { |i| i=i+1; FSinOsc.ar(~f*i, 0, 1/i) * LFTri.kr(0.1, i/~n*2).exprange(0.05, 3) * Env.perc.kr(0, Dust.kr(1+(i/~n))); }) * 0.6; }.dup.tanh; }.play; )
code description
web experiments http://yota.tehis.net/webX
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