In conjunction with the exhibition Into Me / Out of Me, renowned artist Carolee Schneemann will present a lecture on her work and lead a discussion with the audience on the themes of the exhibition, which is on view throughout the first floor of P.S.1, from June 25 through September 25, 2006. Err.. maybe

Pretty Cool. As one presses fsr pitch increases. Switch is one note.
Prob. encountered was just the volume out of speakers was super soft
and initially thought the wiring wasn't working. Must look to see LED closely.

// The switch is on Arduino pin 10:
#define switchPin 10 //note to self to look up #define
// Middle C (MIDI note value 60) is the lowest note we’ll play:
#define middleC 60
// Indicator LED:
#define LEDpin 13
// Variables:
char note = 0;
// The MIDI note value to be played
int AnalogValue = 0;
// value from the analog input
int lastNotePlayed = 0;
// note turned on when you press the switch
int lastSwitchState = 0;
// state of the switch during previous time through the main loop
int currentSwitchState = 0;
void setup() {
// set the states of the I/O pins:
pinMode(switchPin, INPUT);
pinMode(LEDpin, OUTPUT);
// Set MIDI baud rate:
Serial.begin(31250);
blink(3);
}
void loop() {
// My potentiometer gave a range from 0 to 1023:
AnalogValue = analogRead(0);
// convert to a range from 0 to 127:
note = AnalogValue/8;
currentSwitchState = digitalRead(switchPin);
// Check to see that the switch is pressed:
if (currentSwitchState == 1) {
// check to see that the switch wasn’t pressed last time
// through the main loop:
if (lastSwitchState == 0) {
// set the note value based on the analog value, plus a couple octaves:
// note = note + 60;
// start a note playing:
noteOn(0×90, note, 0×40);
// save the note we played, so we can turn it off:
lastNotePlayed = note;
digitalWrite(LEDpin, HIGH);
}
else // if the switch is not pressed:
// but the switch was pressed last time through the main loop:
if (lastSwitchState == 1) {
// stop the last note played:
noteOn(0×90, lastNotePlayed, 0×00);
digitalWrite(LEDpin, LOW);
}
}
// save the state of the switch for next time
// through the main loop:
lastSwitchState = currentSwitchState;
}
// plays a MIDI note. Doesn’t check to see that
// cmd is greater than 127, or that data values are less than 127:
void noteOn(char cmd, char data1, char data2) {
Serial.print(cmd, BYTE);
Serial.print(data1, BYTE);
Serial.print(data2, BYTE);
}
// Blinks an LED 3 times
void blink(int howManyTimes) {
int i;
for (i=0; i< howManyTimes; i++) {
digitalWrite(LEDpin, HIGH);
delay(100);
digitalWrite(LEDpin, LOW);
delay(100);
}
}

Errr... wondering if my board is not correct.
Did a reading serially of one sensor on a-0 and was hoping to see
some response via processing window. Now trying to adjust my
board with the not so many sensors I have. To take it back a step.
Why is there no response in processing window. Will try more tomorrow.

test: increment, truth tables, logical/relational operators, for loops, dot class what it represents (different compilers)– byte code (java code native to compiler) for c programs final output is exe for pc, out for mac, doesn’t have compiler other than what is there for native operating sys.

for (exp1;//initialize// exp2;//test// exp3;//iteration//)
for (int i=1;i<=10;i++)
print(i); //scope is until end of it being true

main
{}
get
{}
set
{}
globals are above main. Things inside get and set can’t see each other. Independent classes. Name an int in for loop only alive in for loop vs. declaring it earlier, aka before for loop.