[PD] bug in maxlib/scale
Frank Barknecht
fbar at footils.org
Fri Apr 23 19:31:16 CEST 2010
Hallo,
João Pais hat gesagt: // João Pais wrote:
> is the formula somewhere? I found a parcial one by frank, but didn't
> really work. and now I'm too busy to be chasing this.
It's called [m_scale] in the rj library and is pure Pd vanilla there. The plain
linear interpolation is simple, the pow and dB formulas are a bit trickier (I
took the dB one from a patch by Georg Holzmann), but basically what you do is
map the input to replace left and right limit with with 0 and 1, then do the
mapping either linear, pow or dB, then scale up again to the original limits.
The formula also is in the maxlib/scale source code in a more readable format.
Ciao
--
Frank
More information about the Pd-list
mailing list