More efficient way to evaluate symbols than route

Thinksamuel's icon

Hi

I have a patch where I get wind directions from an API. Depending on the incoming wind direction, it triggers a sound. I used route for now but I think there are more efficient ways that I am probably forgetting about. Anyone can put me on the right path please?

Max Patch
Copy patch and select New From Clipboard in Max.

Sébastien Gay's icon

I came-up with this, but is it really more efficient ?

Thinksamuel's icon

Your solution looks cleaner. Thank you!