-
... voice_(20.rand)}} // #sc #supercollider // now with tag f={|i,o,d|play{Saw.ar(XLine.kr(i,o,d,1,0,2))!2*EnvGen.kr(Env.sine(d))}};fork{loop{t=rrand(1e3,9e3);f.(t,t/4,rrand(0.1,1));9.rand.wait}}//#sc play{a=[1,1.01,2,2.02,3.5,4.01,5.501];Sin ...
-
... ray[count].value.linlin(0, 1, -0.2, 0.2).round(0.01) + count + 1}); // in the line above, "+ 0.5" adjusts for knob center = 0.5 (becomes center = 1); // this deviation value then is multiplied by the partial number fundamentalSlider ...
-
... (dims[0]+1)), 35 + (22*l), 20, 20) ).states_([['p']]).action_({ // dice pattern line buttons[l].do({ |b| one_button.(b, density_one) }); // tweak it }).mouseOverAction_({ status.string = 'randomize pattern' }), Button( w, Rect( 10 ...
-
... arg amp = 0.1, freq = 440, decay = 5, dampen = 0.1; var env, snd; env = Env.linen(0, decay, 0).kr(doneAction: 2); snd = Pluck.ar( in: WhiteNoise.ar(amp), trig: Impulse.kr(0), maxdelaytime: 0.1, delay ...
-
... releaseTime: drumRel, level: drumAmp, curve: curve).kr; drumContour = Line.kr(start: drumFreq * drumHarmonic, end: drumFreq, dur: drumSweep); drum = PMOsc.ar( carfreq: drumContour, modfreq: modFr ...
-
... period, string; freq = freq * [0.99,1,2,0.98]; pluck = PinkNoise.ar(Decay.kr(Line.kr(1, 0, 0.05), 0.05)); period = freq.reciprocal; string = CombL.ar(pluck, period, period, 4); out = LeakDC.ar(LPF.ar(string, 12000)); out = Splay.ar(o ...
-
... ype = 0; d.arrCurveTypeOptions = [ ["Sine", \sine], ["Curve", \curve], ["Linear", \linear], ["Step", \step], ["Hold", \hold], ["Exponential", \exp], ["Welch", \welch], ]; d.curveSpec = ControlSpec(-20, 20, step: 0.01); // ...
-
... 0, filter=22000, hiPass=20, vol=1| var snd = HPF.ar((LPF.ar((PlayBuf.ar(1, b, Line.ar((rate*BufRateScale.kr(b)), (rate*BufRateScale.kr(b)*bend), sus), 1, pos, 0, 2)), filter)),hiPass); var env = EnvGe ...
-
In Divisions - Midterm: Plunderphonics with Granular Sampling (musc-9-plunderphonics) by jonathan-coon (Jonathan Coon) Code
... member the other key shortcuts in SuperCollider: // Ctrl + Enter to evaluate a line or selection or code block // Ctrl + Period to stop all sounds // ************************************** // 1) LOAD A SOUND FILE INTO A BUFFER // * ...
-
... ger, length, buf, rate, pos, 2, pan: 0); sig = SelectX.ar(Line.kr(0.0, 1.0, 0.2), [sig1, sig2]); sig = sig * amp * env; //sig = HPF.ar(sig, 400); sig = LeakDC.ar(sig); Out.ar(out, Pan2.ar(sig, pan)); }).add; ...