[PD] change base of log

IOhannes m zmölnig zmoelnig at iem.at
Sun May 6 13:56:54 CEST 2012


On 05/04/2012 09:30 PM, Roberto Aramburu wrote:
> Hello list, ive noticed that the object [log] only outputs the natural
> logarithm and im wondering if there is an object in Pd that can give
> me log base 10.

log_n(x) = ln(x)/ln(n)

you might want to calculate the divisor at runtime rather than 
precalculating and hardcode the values in your patch, in order to get 
higher precision.

fgamsrd
IOhannes



More information about the Pd-list mailing list