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