I am working on an installation piece that utilizes the Minim library with a live audio feed through a microphone -- (this is all working just fine).
Right now I am using a mouse click to start and stop when I am collecting audio data (like levels and frequency) stored in variables that I use to generate images (this also works just fine).
What I can't get my head around though, is a way to lose the mouse and have the program "know" when someone is not interacting with it anymore so that the variable values can be can reset for a new user. I'd like to avoidinput device beyond the mic to keep things less complicated. If the interaction is more fluid, more viewers are likely to engage with the system.
Any suggestions?
Right now I am using a mouse click to start and stop when I am collecting audio data (like levels and frequency) stored in variables that I use to generate images (this also works just fine).
What I can't get my head around though, is a way to lose the mouse and have the program "know" when someone is not interacting with it anymore so that the variable values can be can reset for a new user. I'd like to avoidinput device beyond the mic to keep things less complicated. If the interaction is more fluid, more viewers are likely to engage with the system.
Any suggestions?
1