-
... nlin(0, 1, 0, 2); fSpread = y * 0.1 * [1, -0.5, 0.5, -1]; // fSpread = 0; amp = Env.adsr(0.01, 0.3, 0.8, 2, 1).kr(2, gate: gate); snd = SinOscFB.ar(freq + fSpread, fb, amp).tanh; DetectSilence.ar(LeakDC.ar(snd), doneAction: 2); Out.ar(0, Sp ...
-
... rn, maxLookBack = 3, loDev = -3, hiDev = 3, lookBack, thr = 1e-3, length = inf, envir = \current) pattern - Symbol or PIdev pattern arg. The source value pattern to start search from. If a Symbol is passed, a pattern/value can be assigned t ...
-
... x = RLPF.ar(x, fc, rq, amp).softclip; x = Balance2.ar(x[0], x[1], bal); x = x * EnvGen.kr(Env.cutoff, gate, doneAction: Done.freeSelf); Out.ar(out, x); }, [0.1, 0.1, 0.1, 0.1, 0.1, 0] ).add; // make the window w = Window("another control pa ...
-
... make a percussive ping ( ( SynthDef(\ping, {|freq, pan, amp=0.3| var e, z; e = EnvGen.ar(Env.perc(0, 0.1, amp), doneAction: 2); z = SinOsc.ar(freq, 0, 0.2); OffsetOut.ar(0, Pan2.ar(z * e, pan)); }).add; ); ) // play a pattern on clock t: ( ...
-
... se.kr(grainFreq); Out.ar( 0, SinOsc.ar( LFNoise0.kr(4, freqDev, centerFreq), 0, EnvGen.kr(Env.sine(0.1), gate, 0.1) ) ) }).add; SynthDef("aDelay", { arg delay = 0.25; Out.ar( 1, DelayN.ar( In.ar(0, 1), delay, delay ) ) }).add; ) // グレインをテスト ...
-
... eq, mul, gate(0) | var z; mul = ( In .kr(mul)-1)*(-1); freq = In .kr(freq); z = EnvGen .kr( Env .asr, In .kr(gate))* SinOsc .ar(freq*500,0,mul); Out .ar([0,1],z); } ).send(s); ) //maps the gate to the toggle button, freqency to the x axis o ...
-
... 0) { thumpDec } { 1 } ) * exp(-1 * (i + j) * decCoef) }); // Exciter exciter = Env.perc( attackTime: att, releaseTime: dec, level: 0.05, curve: crv).ar; exciter = XFade2.ar( inA: exciter, inB: BrownNoise.ar(exciter), pan: exBlend); // Bank ...
-
// AlgaLib: SuperCollider implementation of Alga, an interpolating live coding environment. // Copyright (C) 2020-2022 Francesco Cameli. // This program is free software: you can redistribute it and/or modify // it under the terms of the GN ...
-
... ffers and may be used directly in Pattern definitions. SV (symbolic value), EV (envelope value), and TV (text value) are classes derived from CV which provide similar interfaces. Typically, a Conductor has multiple CV's. ConductorGUI , whic ...
-
... 0.05, rel = 1, pan = 0| Out.ar(out, Pan2.ar(Pulse.ar(freq, width, amp), pan) * EnvGen.ar(Env.asr(att, 1, rel), gate, doneAction:2) ) }).add ) // you can also define shortcuts for synthdef args ( EventShortcuts.addOnBase(\mine, \mine, (w: \ ...