Submit
Browse
Random
Anonymous
Login
RSS
☾
SuperCollider Code
Fork Code: Re: Morphing Saw Bass
name
code content
( SynthDef(\bass, { arg freq = 440, amp = 0.5, gate = 1; var snd, env, oscfreq, output; var lfo; oscfreq = {freq * LFNoise2.kr(Rand(0.0001,0.5)).range(0.98, 1.02)}!13; lfo = { SinOsc.kr({ 1/Rand(2,52) }!13) }; env = Env.adsr(0.07, 1, 0.9, 0.1).kr(doneAction:2, gate: gate); output = LFSaw.ar(oscfreq, mul: lfo.value.range(0,1)); output = RLPF.ar(output, (env*freq) + 1*freq * lfo.value.range(1/4,2), lfo.value.range(0.1,1)); output = Splay.ar(output, lfo.value.range(0,1)); output = output * env * amp; Out.ar(0, output); }).add; ) Pdef(\bass, Pbind( \instrument, \bass, \tempo, 113/60, \ctranspose, -26, \degree, Pseq([Pseq([3, 5, 1, 3, 5, 8, 1], 2), Pseq([3, 2, 5, -1], 1), Pseq([3, 2, 5, 0], 1), Pseq([1, 5, 0,1,2,5,4], 2), Pseq([1, 0,2],2), 3],inf), \dur, Pseq([Pseq([8, 4, 4, 8, 4, 2, 2], 2), Pseq([8,4,2, 2], 2),Pseq([8, 4, 4, 8, 4, 2, 2], 2), Pseq([8, 4, 4], 2), 16], inf), \legato, 1.0, \amp, 0.6, )).play; Pdef(\bass, Pmono(\bass, \tempo, 113/60, \ctranspose, -26, \degree, Pseq([Pseq([3, 5, 1, 3, 5, 8, 1], 2), Pseq([3, 2, 5, -1], 1), Pseq([3, 2, 5, 0], 1), Pseq([1, 5, 0,1,2,5,4], 2), Pseq([1, 0,2],2), 3],inf), \dur, Pseq([Pseq([8, 4, 4, 8, 4, 2, 2], 2), Pseq([8,4,2, 2], 2),Pseq([8, 4, 4, 8, 4, 2, 2], 2), Pseq([8, 4, 4], 2), 16], inf), \legato, 1.0, \amp, 0.6, )).play;
code description
my hobbit: adding random arrays of LFO everywhere (bonus: a glitch i don't know where it come from)
use markdown for formatting
preview markdown
category tags
comma separated, e.g. "wild, siren" (do not enter default SC class names, please)
ancestor(s)
comma separated identifiers, e.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