[PD] if within a range of numbers then true

Ingo ingo at miamiwave.com
Tue Nov 23 07:28:28 CET 2010


You could use [expr]

[expr $f1>=11 && $f1<=20]


Ingo


________________________________________
Von: pd-list-bounces at iem.at [mailto:pd-list-bounces at iem.at] Im Auftrag von
Ben Carney
Gesendet: Dienstag, 23. November 2010 02:37
An: pd-list at iem.at
Betreff: [PD] if within a range of numbers then true

Hello all,

 I have become rusty in pure data. It seems as if I used to know the answer
to this.

I would like to beable to output a "1" if a number is within a certain range

example:

[number box\
|
|
[If between 11 and 20]
|
|
|
[X]

I thought this would be easier to come up with a solution than it has been

thanks in advance.

-- 
benfcarney
www.benfcarney.com
Chicago, IL 





More information about the Pd-list mailing list