Hey, anyone know a good way in pd vanilla to check a number stream against a list, and output a bang if the number is in the list?
I've used awful, brute-force solutions to this problem with tons of [sel] objects and message boxes, but these are messy and inflexible. It's a simple challenge logically, so I'm hoping there's a better solution.
My brute force solution (only one [sel] object shown, but in reality there would be one [sel] for each [$n]:
[float] [list]
\ / | \
\ [$1][$2][$3] (etc., *n)
| \ | /
[sel (*n) ]