I am trying to generate a midi note from a laser and a photocell.
I have the laser hooked up and with it directed at the photocell. I am getting the value of around 186 in my patch (from the Make controller ADC, ( I have that part of the patch reading the sensor and giving me OpenSoundControl values (1-1024)
When I pluck the beam and interupt the light, the resistance jumps up to 800 or 900 depending on the room light. How do I make a patch that will generate lets say midi note 64, at full velocity (I'll worry about velocity later, I want to use force resistor sensor which I have the circuit working nicely in the 0 to 5v, range) when I interupt the beam, the value from the sensor exceeds 200,say, (in osc values), a note will be generated, and then midiflush perhaps to avoid retriggering the note until the beam is set...I'm sure there's someone out there that could figure this out in a snap
I'm a newbie any help would be appreciated.....an patch where when the number jumps from 200 to 800 a note triggers....