// if the analog value is high enough, turn on the LED: if (analogValue-x > sensorMin ) {

midi_note_on(0, 60, 120);

} else{ //int time = 0;//while( time < 9000 ){

midi_note_off(0, 60, 120);// time++;// }

}

if (analogValue1-x > sensorMin1) {

midi_note_on(0, 65, 120); } else {

midi_note_off(0, 65, 120); }

if (analogValue2-x > sensorMin2) {

midi_note_on(0, 69, 120); } else {

midi_note_off(0, 69, 120); }

if (analogValue3-x > sensorMin3) {

midi_note_on(0, 74, 120); } else {

midi_note_off(0, 74, 120); }

if (analogValue4-x > sensorMin4) {

midi_note_on(0, 80, 120); } else {

midi_note_off(0, 80, 120); }

if (analogValue5-x > sensorMin5) {

midi_note_on(0, 85, 120); } else {

midi_note_off(0, 85, 120); }

total= total - readings[index]; // read from the sensor: readings[index] = sensorValue; // add the reading to the total: total= total + readings[index]; // advance to the next position in the array: index = index + 1;

// if we're at the end of the array... if (index >= numReadings) // ...wrap around to the beginning: index = 0;

yea, you can do that by placing sensors in a row and a column at the edge, so when you poked a finger a wave in a form of a circle will form, and can easily detect the center like this: in this case the first sensors to sense change in light where c4, the using procesing could display the center