I am working on an interactive artwork, and I'm using a GSR in it.
I'm reading the skin response of a person, while the person listens to a sound track.
But I have some problems that have to be solved, and I dont really know how to....
My code starts by calibrating the persons skin response, and the line that will then be drawn, will either be white (normal) or green (when measured stress). I have two different samples, that both play for about 2 minutes. I linked sample1 to a white line, and sample2 to a green line. So when some ones skin response turns out to be 'green' after the calibration, sample2 will start in. And that will be the same with sample1 and a white line.
The problem is that the line colour can also change when reading. So what happens is that if some one starts with a white line and sample 1, but gets a little stressed during the reading, the line turns green and sample 2 will start and cut off sample1.
And that isnt supposed to happen :(
The sound that is triggered after the calibration, should play from start till end, and not be responding to a color change after that...
So how do I program this?
I hope my explanation is clear...:P