<div dir="ltr">Thanks Jonathan. Unfortunately, my C expertise is kinda poor and I&#39;m still lost. I see it&#39;s got something to do with [exp] but haven&#39;t got my head around the function needed to emulate it. I&#39;m making extensive documentation about Pd, so I&#39;d like to write about it. I find it worth noting.<div>
<br></div><div>In the patch I&#39;m sending, which was my attempt to get this right before reaching the list, I was able to emulate a bit reasonably with [expr pow($f1, 0.25)].</div><div><br></div><div>Cheers</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2014-03-06 21:56 GMT-03:00 Jonathan Wilkes <span dir="ltr">&lt;<a href="mailto:jancsika@yahoo.com" target="_blank">jancsika@yahoo.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">From g_vslider.c:<br><br>    if(x-&gt;x_lin0_log1)<br>        out = x-&gt;x_min*exp(x-&gt;x_k*(double)(x-&gt;x_val)*0.01);<br>
<br><br>Where x-&gt;x_k is:<br>        log(x-&gt;x_max/x-&gt;x_min)/(double)(x-&gt;x_gui.x_h - 1);<br><br><div><span>And x-&gt;x_gui.x_h is the height of the slider</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">
<br><span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><span>-Jonathan<br></span></div><div style="display:block">
 <br> <br> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt">
<div class=""> <div dir="ltr"> <font face="Arial"> On Thursday, March 6, 2014 7:37 PM, Alexandre Torres Porres &lt;<a href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a>&gt; wrote:<br> </font> </div>  </div>
<div><div class=""><div><div dir="ltr">hi folks, out of curiosity, what&#39;s the exact log function used in the slider? I&#39;d like to emulate it.<div><br></div><div>cheers</div></div>
</div><br></div>_______________________________________________<br><a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br><br></div>  </div> </div>  </div> </div></div></blockquote></div><br></div>