From g_vslider.c:

    if(x->x_lin0_log1)
        out = x->x_min*exp(x->x_k*(double)(x->x_val)*0.01);


Where x->x_k is:
        log(x->x_max/x->x_min)/(double)(x->x_gui.x_h - 1);

And x->x_gui.x_h is the height of the slider

-Jonathan


On Thursday, March 6, 2014 7:37 PM, Alexandre Torres Porres <porres@gmail.com> wrote:
hi folks, out of curiosity, what's the exact log function used in the slider? I'd like to emulate it.

cheers

_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list