[PD] Scaling values in pd

IOhannes zmölnig zmoelnig at iem.at
Tue Sep 3 08:32:26 CEST 2013


On 09/02/2013 06:17 PM, hghoyer wrote:
> Hi,
> 
> in Max/MSP there is an object for simple scaling.
> 
> If you create in MAX these object with this arguments:
> 
> [scale 0 127 0 500] incomming messages from 0 to 127 are automatically
> scaled from 0 to 500...

honestly i'm of the firm conviction that you should learn how scaling
works: it really is only a matter of adding, multiplying, dividing,
subtracting - stuff you should heave learned in primary school.

as frank pointed out, this should do for you:

|
[/ 127]
|
[* 500]
|

if you find it too tedious to do the maths over and over again, you
might want to create an abstraction.


being able to solve trivial problems like this will surely empower you
to solve more complex problems :-)

gamsdr
IOhannes



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20130903/5c75acba/attachment-0001.pgp>


More information about the Pd-list mailing list