View Single Post
Old 06-19-2019, 01:35 AM   #496
Human being with feelings
Join Date: Oct 2018
Posts: 78
Default Flipping Waveforms


Chris from Airwindows told me he often converts negative waves to positive ones for processing. Then flips them back again. Is thats whats happening in this bit of code? The "abs" flips the negative part to positive. And the lines above that flips it backa again?

Im trying to learn... so any other examples of this practice would be awesome. thx

spl0 = min(max(spl0,-1),1);
spl1 = min(max(spl1,-1),1);

spl0 = (1+foo)*spl0/(1+foo*abs(spl0));
spl1 = (1+foo)*spl1/(1+foo*abs(spl1));
danerius is offline   Reply With Quote