# Tanh where's the saturation?

At the end of the code I multiplied everything with *10 and added a tanh function .
Altough the output remains healthy and not clipping , I get none of the sat. qualities that a tanh curve should provide

`````` (
{
var dinger, donger,sweeper,swepper;
swepper=XLine.kr(10,0.001,10);
sweeper=XLine.kr(0.001,100,20);
dinger=[2,1];
donger=Ringz.ar(Dust.ar(dinger,1),[108,110],[0.5,0.7])*10;
SinOsc.ar(0,donger)!2//
*10.tanh//this should add a nice sat.curve
}.
play
)
``````

Inserting the tanh on the previous linedoes add a sat .curve , but how do I muliplty the input into the tanh function ?
A simple *10.tanh does not do it

``````(
{
var dinger, donger,sweeper,swepper;
swepper=XLine.kr(10,0.001,10);
sweeper=XLine.kr(0.001,100,20);
dinger=[2,1];
donger=Ringz.ar(Dust.ar(dinger,1),[108,110],[0.5,0.7])*10;
SinOsc.ar(0,donger).tanh!2//
*0.5
}.
play
)``````

O.K this does it

``````(
{
var dinger, donger,sweeper,swepper;
swepper=XLine.kr(10,0.001,10);
sweeper=XLine.kr(0.001,100,20);
dinger=[2,1];
donger=Ringz.ar(Dust.ar(dinger,1),[108,110],[0.5,0.7])*10;
(SinOsc.ar(0,donger)*10).tanh!2//
*0.5//
}.
play
)``````

Then again in this example it doesn’t work

Edit …it does …sorry for polluting the forum

``````(
{
var speed1;var speed2; var sound;
speed1=0.2;
speed2=33;
sound=PMOsc.ar([0,1.5], MouseY.kr([444,446]),MouseX.kr(0,16pi),0,0.2,0)*SinOsc.ar(freq:MouseX.kr(speed1,speed2),mul:0.5)*1;
(sound*10).tanh
}
.play;
)``````