Tales Upsampling to Stereo
Hi
Im meaning to use Tales library and upsample some experiments. His example is mono only and I cant figure out how to change code to get an Left + Right version?
Any ideas? Thanks
Regards /danerius
---------------------------------------------------------------------------
desc:Oversampled distortion
import Tale/oversample.jsfx-inc
@init
function tanh(x)
(
x = exp(2*x);
(x - 1) / (x + 1);
);
pdc_bot_ch = 0; pdc_top_ch = 2;
pdc_delay = 3;
@slider
drive = exp(log(10)/20 * slider1);
gain = sqrt(1/drive);
@sample
os.os_up2(0.5*(spl0 + spl1));
os.y1 = tanh(drive * os.y1);
os.y0 = tanh(drive * os.y0);
spl0 = spl1 = gain * os.os_down2();
|