robert@464: #N canvas 254 82 445 331 10; robert@464: #X obj 39 37 inlet~; robert@464: #X obj 39 67 clip~ -3 3; robert@464: #X obj 54 107 *~; robert@464: #X obj 39 277 outlet~; robert@464: #X obj 109 107 sig~ 27; robert@464: #X obj 54 147 +~; robert@464: #X obj 54 217 /~; robert@464: #X obj 39 247 *~; robert@464: #X obj 94 147 *~ 9; robert@464: #X obj 94 187 +~; robert@464: #X text 142 177 // http://www.musicdsp.org/showone.php?id=238; robert@464: #X text 140 198 // y = x * (27 + x^2) / (27 + 9*x^2); robert@464: #X text 144 152 // pade-approximation of tanh function; robert@464: #X connect 0 0 1 0; robert@464: #X connect 1 0 2 0; robert@464: #X connect 1 0 2 1; robert@464: #X connect 1 0 7 0; robert@464: #X connect 2 0 5 0; robert@464: #X connect 2 0 8 0; robert@464: #X connect 4 0 5 1; robert@464: #X connect 4 0 9 1; robert@464: #X connect 5 0 6 0; robert@464: #X connect 6 0 7 1; robert@464: #X connect 7 0 3 0; robert@464: #X connect 8 0 9 0; robert@464: #X connect 9 0 6 1;