What is pd's equivalent to max's zmap?
-
Zmap equivalent
-
what's zmap in max?
Alberto
-
remaps a range of incoming values to another
simple example w/ no offset... for the input range 0-1, create the output range 0-127
[zmap 0.0 1.0 0 127] in max
is almost the same as
[numberBox] (range set at 0-1 in properties)
|- Just a really quick shortcut instead of lots of simple math objects, plus you can do stuff like..
[zmap 67 86 0.0078 0.0156]
-
[scale] is a common abstraction that does this.
[scale p q x y]
maps the range p,q onto x,y
Use the Source.
-
You can find an implementation of zmap
that uses "expr" (expression evaluator) in
jmmp abstractions (in the extended
distribution it is in extra/jmmp) and is it calledexpr_scale.pd
Best,
Alberto
-
Andy, you won for 12 seconds