[PD] bug in maxlib/scale

2010-04-23 Thread João Pais
Hi, I think I found a bug in maxlib/scale. Unless the order of the parameters is aligned - smaller value as smaller input/output and bigger value for input/output -, the external doesn't work properly. Is this normal or desired? I always thought that the parameter order would be

Re: [PD] bug in maxlib/scale

2010-04-23 Thread Roman Haefeli
On Fri, 2010-04-23 at 13:12 +0300, João Pais wrote: Hi, I think I found a bug in maxlib/scale. Unless the order of the parameters is aligned - smaller value as smaller input/output and bigger value for input/output -, the external doesn't work properly. Is this normal or desired? I

Re: [PD] bug in maxlib/scale

2010-04-23 Thread João Pais
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. On Fri, 2010-04-23 at 13:12 +0300, João Pais wrote: Hi, I think I found a bug in maxlib/scale. Unless the order of the parameters is aligned - smaller value as

Re: [PD] bug in maxlib/scale

2010-04-23 Thread Mathieu Bouchard
On Fri, 23 Apr 2010, Roman Haefeli wrote: I don't know the formula, but I did it by putting two Dreisätze (rules of three?) in a row: The first scales the input to 0-1, the second scales 0-1 to the output range. If written out as a formula, this could probably even made shorter, I don't know.