making 2 expressions in to 1?

LMomrelle's icon

is their a way of putting the following in to 1 expression

"if $i1 > 270 < 285 then $i1" ??

alternatively is their a way to declare ranges i.e. 11 - 30, 31- 55, 56-80... and get an output of a specific number or letter. i.e A if the input was 30, B if the input was 31 - 55, C if the input was 56 - 80 ??

mr_mapes's icon

the correct syntax would be if(($i1>270)&&($i1

gwsounddsg's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Few things for you, regarding the < > I typically do the first part of the operation then the second part, passing the variable through the first stage then the second.

But it you want to output a different value than you input, check out the object zmap It should do the job for ya.

Nikolas K's icon

Hi LMomrelle,
you could use the [split] !!
for example [split 100 200] outputs numbers 100-200 from the left outlet and oll the other from the right!
Hope it helps!
Nikolas

Floating Point's icon
Max Patch
Copy patch and select New From Clipboard in Max.

here's an example using split