<div dir="ltr">Hey Chris,<div><br></div><div>Here's a vanilla tanh~ version that doesn't involve a table lookup</div><div><br></div><div><a href="https://github.com/enzienaudio/heavylib/blob/master/hv_tanh.pd">https://github.com/enzienaudio/heavylib/blob/master/hv_tanh.pd</a><br></div><div><br></div><div>Cheers,</div><div>Joe</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 25 February 2016 at 04:03, Chris McCormick <span dir="ltr"><<a href="mailto:chris@mccormick.cx" target="_blank">chris@mccormick.cx</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<span class=""><br>
<br>
On 24/02/16 17:23, Alexandros Drymonitis wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If you copy the [tanh] abstraction from purepd and make it a signal one,<br>
doesn't that work? Then it's vanilla.<br>
</blockquote>
<br></span>
expr~ is available in all versions of Pd and has the same license.<br>
<br>
It is probably slower than making a table, so doing what you said is a good idea for optimisation. Here is an abstraction that does what you describe:<br>
<br>
<a href="https://github.com/chr15m/blockhead/blob/master/e_tanh.pd" rel="noreferrer" target="_blank">https://github.com/chr15m/blockhead/blob/master/e_tanh.pd</a><div class="HOEnZb"><div class="h5"><br>
<br>
Cheers,<br>
<br>
Chris.<br>
<br>
-- <br>
<a href="http://mccormick.cx/" rel="noreferrer" target="_blank">http://mccormick.cx/</a><br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</div></div></blockquote></div><br></div>