Hi,
Does anyone know if there is a "comparator" objects? In particular, i want to know if there is a pd object that can take in a value from an inlet (such as the asci value from keyname) and output a bang at the outlet when the inlet equals a specific value, or is greater than (or less than) a specific value.
Thx
Hi
yeah there is <,>,<=,>=,== and !=
they output "0" if false and "1" if true
./MiS
On 10/30/01 9:45 PM, andychen5018 @ andychen5018@hotmail.com wrote:
Hi,
Does anyone know if there is a "comparator" objects? In particular, i want to know if there is a pd object that can take in a value from an inlet (such as the asci value from keyname) and output a bang at the outlet when the inlet equals a specific value, or is greater than (or less than) a specific value.
Thx
other values through the second output. I also believe that select can have more values and outlets like 'select 1 2 3 4' with coresponding outlets. (I'm not at a PD machine right now, so I can't test it).
than the creation argument. ('Moses 10' will send all values less than 10 to first outlet and the rest to the second)
There are also simle comparators like == != > < and so on.
See the help files for those objects.
HTH Soeren
andychen5018 wrote:
Hi,
Does anyone know if there is a "comparator" objects? In particular, i want to know if there is a pd object that can take in a value from an inlet (such as the asci value from keyname) and output a bang at the outlet when the inlet equals a specific value, or is greater than (or less than) a specific value.
Thx
andychen5018 hat gesagt: // andychen5018 wrote:
Does anyone know if there is a "comparator" objects? In particular, i want to know if there is a pd object that can take in a value from an inlet (such as the asci value from keyname) and output a bang at the outlet when the inlet equals a specific value, or is greater than (or less than) a specific value.
[select] might be what you want. select.pd in the reference section of the pd-docs gives examples, how to compare incoming symbols and then bang.
__ __
Frank Barknecht ____ ______ ____ __ trip\ \ / /wire ______
/ __// __ /__/ __// // __ \ / / __ \ ___\
/ / / ____/ / / / // ____// /\ \ ___\____ \
/_/ /_____/ /_/ /_//_____// / \ \_____\_____
/_/ _\