I'm building a midi theremin. I've tried a sharp sensor, but the shape of it makes for hard work routing out a rectangular hole(!). Are there any sensors that detect motion about 1 foot away or less and generate a variable range of numbers, that have round sensors for fitting into a drilled out hole?
I'm using some maths to convert the input readings down to a range of 1-127 for CC messages. I'm working on smoothing code using average readings.
Did you already try a simple LDR (slow is good here) from an analogue pin to ground, with the internal pullup enabled.
That, and lots of readings/averaging could work in natural indoor light conditions.
Leo..
LDR wouldn't work, since it will be using in gig (dark) conditions. Have looked at motion sensors, but I suspect they will not be sufficiently directional.