Can anyone give me some suggestions on how to do the following:
I'm using an ultrasonic distance sensor hooked up through Arduino. I want to capture the distance data in Max and route a range to specific tones.
1)if something is 600-800cm play a 90hz sine wave
2)if something is 300-600cm play a 900hz sine wave
3)if something is 0-300cm play a 60hz sine wave
I have the cycle~ and frequency part down..i just need to know the best way to route the ranges
I've tried using split~ and routing ranges into 3 different cycle~ and audio out objects but when 1) moves past the threshold and plays 2) the 1)just gets stuck at the peak and continues to play. I'd like the transition b/w ranges to be smooth