Submit
Browse
Anonymous
Login
RSS
SuperCollider Code
Fork Code: Re: circling transpositions
name
code content
( // pure melody experiments SynthDef("plucking", {arg out = 0, amp = 0.1, freq = 440, decay = 5, coef = 0.1; var env, snd; env = EnvGen.kr(Env.linen(0, decay, 0), doneAction: 2); snd = Pluck.ar( in: BrownNoise.ar(amp), trig: Impulse.kr(0), maxdelaytime: 0.1, delaytime: freq.reciprocal, decaytime: decay, coef: coef); snd = LeakDC.ar(snd).clip2; Out.ar(out, snd * env); }).add; b = Bus.audio(s,1); SynthDef("reverbBus", { arg outBus = 0, inBus, wet = 0.1; var input, rev; input = In.ar(inBus,1); rev = JPverb.ar(input * wet, t60:6, damp:0.5); DetectSilence.ar(rev, doneAction: Done.freeSelf); Out.ar(outBus, input + (rev)); }).add; r = Synth("reverbBus", [\inBus, b, \wet, 0.5]); Pbind( \instrument, "plucking", \scale, Scale.major.tuning_(\just), \octave, 4, \degree, Pseq([1, 3, 7, 3,-4,-2, 7, 8, 1,-2, 2, 3], inf), \mtranspose, Pseq([Pseq([0],144),Pseq([0],48),Pseq([3],48),Pseq([4],48)], inf), \gtranspose, Pseq([Pseq([0],36),Pseq([4],36),Pseq([[-3]],36),Pseq([2],36)],inf), \ctranspose, Pser([Pseries(-4,1,4) +.x Pseq([0], 144)],2), \coef, Pseq([ Pseq([ Prand([0.2,0.3,0.4,0.5],1), Prand([0.6,0.5],5), Prand([0.2,0.3],1), Prand([0.6,0.5],5) ], 1), Prand([0.7,0.6],12) ],inf), \dur, Pseq([Prand([0.25,0.25,0.24,0.245,0.255,0.25], 140),0.26,0.3,0.4,0.7], inf) * Pseq([Pseq([0.8],110), Pgeom(0.8,1.002,34)],inf), \decay, Pseq([8, Prand([1,2,3,4], 4),3,2,1], inf), \out, b, \amp, 0.4, ).play; )
code description
some playing around with m/c/g-transpose in Pbind. this stops after it 2 repetitions, but it could start at the beginning and go on forever - just change the last "2" in \ctranspose to inf or however cycles you want. also, it uses a JPverb, so you need sc3_plugins, otherwise change rev line in reverbBus SynthDef to rev = input; or some other selfmade poor-woman's reverb.
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