<div dir="ltr">Thanks Jonathan. Unfortunately, my C expertise is kinda poor and I'm still lost. I see it's got something to do with [exp] but haven't got my head around the function needed to emulate it. I'm making extensive documentation about Pd, so I'd like to write about it. I find it worth noting.<div>
<br></div><div>In the patch I'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"><<a href="mailto:jancsika@yahoo.com" target="_blank">jancsika@yahoo.com</a>></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->x_lin0_log1)<br> out = x->x_min*exp(x->x_k*(double)(x->x_val)*0.01);<br>
<br><br>Where x->x_k is:<br> log(x->x_max/x->x_min)/(double)(x->x_gui.x_h - 1);<br><br><div><span>And x->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 <<a href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a>> wrote:<br> </font> </div> </div>
<div><div class=""><div><div dir="ltr">hi folks, out of curiosity, what's the exact log function used in the slider? I'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 -> <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>