[PD] convert range (0 to 1) to (-4 to 4)

matteo sisti sette matteosistisette at gmail.com
Tue Nov 20 13:53:47 CET 2007


Or you may create an abstraction similar to the attached one, which
mimics I think the behaviour of the [range] external included in (??)
pd-extended (??)

Left inlet is the value to be rescaled; inlets 2 to 5 are input range
min/max and output range min/max, respectively. Also, creation
arguments can be used to initialize them.

So in your example you would use 0,1,-4,4 as creation arguments (or
send them to the inlets starting from the second).

-- 
Matteo Sisti Sette
matteosistisette at gmail.com
http://www.matteosistisette.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: range.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20071120/7cb1d3ab/attachment.txt>


More information about the Pd-list mailing list