Files
AV-Live/sound_algo/fx/insert/fx_autopan.scd
T
L'électron rare de035a8596 Add 'sound_algo/' from commit '38b17c42a0b5d2c7f52a2ad600316282cc52a02d'
git-subtree-dir: sound_algo
git-subtree-mainline: b7940d650f
git-subtree-split: 38b17c42a0
2026-05-07 11:51:51 +02:00

14 lines
526 B
Plaintext

// =====================================================================
// fx/insert/fx_autopan.scd -- SynthDef \fxAutopan
// Extracted from live.scd during v2 reorganization.
// =====================================================================
(
SynthDef(\fxAutopan, {
arg in, out = 0, rate = 0.3, depth = 1.0, mix = 1.0, amp = 1.0;
var dry = In.ar(in, 2);
var p = SinOsc.kr(rate) * depth;
var wet = Balance2.ar(dry[0], dry[1], p);
Out.ar(out, ((dry * (1 - mix)) + (wet * mix)) * amp);
}).add;
)