PURE DATA forum~

...that deal with pure data

You are not logged in.

#1 2009-02-12 21:27:20

mikeman
Member

Scaling a number range

Just wondering if anyone knows what the object is to scale a range of numbers into another range of numbers.  I want to a range of numbers from 1 - 128 to be scaled to another range of numbers from 1 - 500.

cheers

Offline

 

#2 2009-02-12 21:29:29

mikeman
Member

Re: Scaling a number range

Offline

 

#3 2010-03-09 10:18:24

goldberg
Member

Re: Scaling a number range

try the [range] object.

Offline

 

#4 2010-03-11 13:18:59

ultrasonic
Member

Re: Scaling a number range

Not this topic any more but how do you use the [range] object? There is no documentation as to what data is expected at the 6 inlets and what is coming out.


Macbook Pro OS X.6 | Metric Halo | Sound + Visuals | in China :: http://www.zerohertz.com

Offline

 

#5 2010-03-11 22:00:59

toxonic
Member

Re: Scaling a number range

it seems, that the first inlet is the input for the numbers to convert. the 2-5 inlet seem to have the following functions: input lower limit, input upper limit, output lower limit, output upper limit.
e.g. [range 0 5 10 100] will convert a number range between 0 and 5 to a number range between 10 and 100. don't know, what the last inlet is for....

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson


pd.webring info