Duh. Thanks for pointing that out. -Chuckk On Nov 18, 2007 12:56 AM, Steven Yi wrote: > 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" > > > > > Send bugs reports to this list. > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" > -- http://www.badmuthahubbard.com