






Moderators: electrogear, exonerate
// Mono Hyperbolic Tangent Distortion
monoin in;
monoin pregain;
monoout out;
float smIntVarE=2.71828183;
float smIntVarHalf=0.5;
float smIntVarTemp3=0.0;
float smIntVarTemp=0.0;
float smIntVarTemp2=0.0;
float sig1=0;
float sig2=0;
float FM1=-1;
movaps xmm0,in;
mulps xmm0,pregain;
movaps sig1,xmm0;
movaps xmm0,FM1;
mulps xmm0,in;
movaps xmm1,xmm0;
mulps xmm1,pregain;
movaps sig2,xmm1;
movaps xmm0,smIntVarE;
movaps smIntVarTemp,xmm0;
movaps xmm0,sig1;
movaps smIntVarTemp2,xmm0;
fld smIntVarTemp2[0];
fld smIntVarTemp[0];
fyl2x;
fld st(0);
fld smIntVarHalf[0];
fsub;
frndint;
fxch;
fld st(1);
fsub;
f2xm1;
fld1;
fadd;
fxch;
fld1;
fscale;
fstp st(1);
fmul;
fstp smIntVarTemp3[0];
movaps xmm0,smIntVarTemp3;
movaps xmm1,smIntVarE;
movaps smIntVarTemp,xmm1;
movaps xmm1,sig2;
movaps smIntVarTemp2,xmm1;
fld smIntVarTemp2[0];
fld smIntVarTemp[0];
fyl2x;
fld st(0);
fld smIntVarHalf[0];
fsub;
frndint;
fxch;
fld st(1);
fsub;
f2xm1;
fld1;
fadd;
fxch;
fld1;
fscale;
fstp st(1);
fmul;
fstp smIntVarTemp3[0];
movaps xmm1,smIntVarTemp3;
subps xmm0,xmm1;
movaps xmm1,smIntVarE;
movaps smIntVarTemp,xmm1;
movaps xmm1,sig1;
movaps smIntVarTemp2,xmm1;
fld smIntVarTemp2[0];
fld smIntVarTemp[0];
fyl2x;
fld st(0);
fld smIntVarHalf[0];
fsub;
frndint;
fxch;
fld st(1);
fsub;
f2xm1;
fld1;
fadd;
fxch;
fld1;
fscale;
fstp st(1);
fmul;
fstp smIntVarTemp3[0];
movaps xmm1,smIntVarTemp3;
movaps xmm2,smIntVarE;
movaps smIntVarTemp,xmm2;
movaps xmm2,sig2;
movaps smIntVarTemp2,xmm2;
fld smIntVarTemp2[0];
fld smIntVarTemp[0];
fyl2x;
fld st(0);
fld smIntVarHalf[0];
fsub;
frndint;
fxch;
fld st(1);
fsub;
f2xm1;
fld1;
fadd;
fxch;
fld1;
fscale;
fstp st(1);
fmul;
fstp smIntVarTemp3[0];
movaps xmm2,smIntVarTemp3;
addps xmm1,xmm2;
divps xmm0,xmm1;
movaps out,xmm0;djbrynte wrote:Can you explain little bit better or show pic what you mean?
djbrynte wrote:exactually what does it do?
djbrynte wrote:thnx that was nice. But it did not make the sound im after.
djbrynte wrote:thnx for help can you show me pic pls.
djbrynte wrote:ok thnx i try that. The thing is i only get some sound when i have 10 on the volume on the amp.

Users browsing this forum: No registered users and 1 guest