Hi,
I attached a really small patch I created to start a soundfile when a face is infront of the camera.
I use windows, so I use Processing to detect the face. That is the [OSCroute /face] object. /y is another parameter (influenced by a color detection) that should later controle the volume.
If there is a face, than the value of 1 is transferred to /face and the tabplay should start and loop. If there is no face the value of 0 is transferred, but I don`t know how to stop a play. It should stop directly and not after the ongoing play is finished.
And moreover, it should stop, if the value of 0 is 2 seconds constant, because the face detection is not always stable.
And another problem, I don´t know how to use the onebang correctly.
Can you help me? That would be so great!
Thanks a lot,
Anna