Code is just about set, working on wave shield class:
/*
NOTES:
contact1 to digital 6 and 5V
contact2 to digital 7 and 5V
contact3 to digital 8 and 5V
speaker to digital 9 for test melody
speaker to 9 for SD card- NOT FUNCTIONAL NOW
!!all audio needs to be 22KHz or 16-bit .wavs at the most!!
*/
#include "pitches.h" //this is just for testing noise
int contact1 = 6;
int contact2 = 7;
int contact3 = 8;
int speaker = 9;
//for test melody
int melody[] = {
NOTE_C4, NOTE_G3,NOTE_G3, NOTE_A3, NOTE_G3,0, NOTE_B3, NOTE_C4};
int noteDurations[] = {
4, 8, 8, 4,4,4,4,4 }; // note durations: 4 = quarter note, 8 = eighth note, etc.:
void setup() {
Serial.begin(9600);
pinMode(contact1, OUTPUT);
pinMode(contact2, OUTPUT);
pinMode(contact3, OUTPUT);
pinMode(9, INPUT); //connect speaker to 9 to play test melody
Serial.println("hello world");
}
void loop() {
int val1 = digitalRead(contact1); //this is technically unnecessary, but seems to work better, so whatever
int val2 = digitalRead(contact2);
int val3 = digitalRead(contact3);
if (val1 == HIGH | val2 == HIGH | val3 == HIGH){
Serial.print("contact 1 ");
Serial.println(val1); //so we can see what's going on, but only if contact is made, otherwise it'd be a madhouse
Serial.print("contact 2 ");
Serial.println(val2);
Serial.print("contact 3 ");
Serial.println(val3);
}
delay(20); //slight delay between contact and play
if (val1 == HIGH | val2 == HIGH | val3 == HIGH){ //works so all of the triggers work together
//test melody
for (int thisNote = 0; thisNote < 8; thisNote++) { int noteDuration = 1000/noteDurations[thisNote]; tone(speaker, melody[thisNote],noteDuration); int pauseBetweenNotes = noteDuration * 1.30; delay(pauseBetweenNotes); } delay(50); //modify time: this will make it so if two people sit down almost at the same time, only one sound will play, but who knows }
else { } }
Building the bench piece in order to install it.
As a result of suggestions and discussions on Wednesday, we can now articulate a rather valid idea.
The but stop itself is important location (as we have mentioned time and time again), so we finally concluded to focus on the idea of the space itself.
As Marc Auge has been haunting our ideas with his theories, it is only fair to mention the idea of the non-place....which is exactly what the bus stop is. Non-place being: "If place can be defined as relational, historical and concerned with identity, then a space which can not be defined as relational, or historical, or concerned with identity will be a non-place."
So, the idea is how people perceive space, and what makes a certain space the space it is. Why is a bus stop a bus stop? If there were famous images of modern art hanging from the bus stop would it be a gallery? What decides what the space is? If someone is told that a space is a museum does that make it a museum? Is that the point where the person's perception of the space changes?
Going with these thoughts, we are using the same set-up with the wave board and speakers attached to the underside of a bench, but instead of a person speaking out quotes, we will use found sounds of other "non-places." We will sounds of airports, train station, museum dialogues (ex: "Welcome the Museum of Natural History..."), etc.
Once installed, we will record the reactions to the recordings by having one of us with a voice recorder catching the sounds near the bench. Another one of us will be standing across the way with a video camera recording the physical reactions at the bus stop.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment