Hi Chuckk, I took a look at the C code and postgain is multiplied at the very end: /* Generate tanh distortion and output the result */ out[n] = /* IV - Dec 28 2002: optimised */ (MYFLT) ((exp((double) (sig * shape1)) - exp((double) (sig * shape2))) / cosh((double) (sig * pregain))) * postgain; steven On Nov 17, 2007 2:06 PM, Chuckk Hubbard wrote: > Opcode: > ares distort1 asig, kpregain, kpostgain, kshape1, kshape2[, imode] > > Equation: > exp(asig * (shape1 + pregain)) - exp(asig * (shape2 - pregain)) > aout = --------------------------------------------------------------- > exp(asig * pregain) + exp(-asig * pregain) > > > where is "postgain" supposed to be? > > -Chuckk > > -- > http://www.badmuthahubbard.com > > > Send bugs reports to this list. > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" >