-
pd_zord
I'm using a sensor that has binary output, but it sends this out continuously. I'm using IR obstacle sensors, that based on if an obstacle is in front of it send out a sound. However, it continuously sends out the signal. How can I change it to recognize that when an object is in front of it, and stays in front of it, it only makes the sound once. Instead of using the continuous signal from the sensors to keep producing sounds? This is the patch I'm working with:
It gets its input through the port via an arduino
-
pd_zord
I currently am making a game, where two users take turns making sounds. These are stored numerically in arrays (x axis for the turn, and y representing a sound.). After they both have had a turn, the arrays need to be compared, to see if they match. I wanted to do this with counters that walk through each position of both arrays, and see if they match. This is what I have so far, I'm pretty sure its not working. I want it to output a 1 if it is incorrect, which is not currently happening.