Tuesday, October 27, 2009

Accelrometer and IR sensors

IR Sensor
void setup()
{
Serial.begin(57600);
}
void loop()
{
int AnoDataX = analogRead(0); // 10 bit value max

Serial.print(AnoDataX >> 7,BYTE);
Serial.print(AnoDataX % 128,BYTE);

Serial.print(255, BYTE);
delay(10);


}



Accelerometer
void setup()
{
Serial.begin(57600);
}
void loop()
{
int AnoDataX = analogRead(0); // 10 bit value max
int AnoDataY = analogRead(0); // 10 bit value max

Serial.print(AnoDataX >> 7,BYTE);
Serial.print(AnoDataX % 128,BYTE);
Serial.print(AnoDataY >> 7,BYTE);
Serial.print(AnoDataY % 128,BYTE);

Serial.print(255, BYTE);
delay(10);
}

Monday, October 26, 2009

Test stuff

int firstSensor = 0; // first analog sensor
int secondSensor = 0; // second analog sensor
int thirdSensor = 0; // digital sensor
int inByte = 0; // incoming serial byte

void setup()
{
// start serial port at 9600 bps:
Serial.begin(9600);
pinMode(2, INPUT); // digital sensor is on digital pin 2
establishContact(); // send a byte to establish contact until receiver responds
}

void loop()
{
// if we get a valid byte, read analog ins:
if (Serial.available() > 0) {
// get incoming byte:
inByte = Serial.read();
// read first analog input, divide by 4 to make the range 0-255:
firstSensor = analogRead(0)/4;
// delay 10ms to let the ADC recover:
delay(10);
// read second analog input, divide by 4 to make the range 0-255:
secondSensor = analogRead(1)/4;
// read switch, map it to 0 or 255L
thirdSensor = map(digitalRead(2), 0, 1, 0, 255);
// send sensor values:
Serial.print(firstSensor, BYTE);
Serial.print(secondSensor, BYTE);
Serial.print(thirdSensor, BYTE);
}
}

void establishContact() {
while (Serial.available() <= 0) {
Serial.print('A', BYTE); // send a capital A
delay(300);
}
}


////////////////

void setup()
{
Serial.begin(57600);
}
void loop()
{
int AnoData = analogRead(0); // 10 bit value max
Serial.print(AnoData >> 7,BYTE);
Serial.print(AnoData % 128,BYTE);
Serial.print(255, BYTE);
delay(10);
}

////////////////////

void setup() {
Serial.begin(9600);
}

void loop() {
int sensorValue = analogRead(0);
Serial.println(sensorValue, DEC);
}

//////////////////////////

Tuesday, October 20, 2009

Moc lab test

Today we did a test run on the exam we have for next week. We were asked to make a FM synth out of a light resistor. We had to write out a block diagram, a circuit diagram and then Ardiuno code.






Code:

void setup()
{
Serial.begin(57600);
}
void loop()
{
int AnoData = analogRead(0); // 10 bit value max
Serial.print(AnoData >> 7,BYTE);
Serial.print(AnoData % 128,BYTE);
Serial.print(255, BYTE);
delay(10);
}




Finished circuit:

Friday, October 2, 2009

The T-Stick

The T-Stick

The T-Stick is an instrument that is made out a large pipe with sensors on it. It makes noise that apparently sounds like a Apex Twin tune.

I found that much of what he was doing was directly related to the sound though sometimes this changed due to the pressing of buttons on the stick. Musically this offered nothing for me. It was someone playing with a giant stick in front of a crowd of people. I felt his movements were all fake and there was no natural flow to them. I thought his movements were like some Maori warrior's dance. The next time New Zealand play Munster I would like to see them use the T stick with their Hakka. In fact better still I would think that if Munster used the T Sticks it would be one up on the Hakka and would scare the Kiwis into losing. Maybe then I might enjoy a T-Stick performance.

I felt from reading the paper on the construction of the T stick that there is too much sensors used in the construction. I felt it should have been built with less sensors and then the user could figure out the mapping of these sensors quite quickly. The sensors used picked up on the vibration, movement, positional pressure and twisting of the stick. I could imagine if the first guitar had also buttons for looping, effecting delay, playing reverse, changing pitch. It would create too much possibilities. I am much for creating interfaces that are minimal.

Michael Waisvisz - the Hands

Michael Waisvisz - the Hands




I watched the video of Michael Waisvisz who performed with his interface called" Hands" which were two controllers with a microphone. It looked that on one hand he was controlling the processing and effects and the other the input microphone and the looping. The looping itself created a drone. It sounded to me like Buddhist chanting or Mongolian throat singing in the middle of a jungle. The controllers looked like they were linked up to a computer that would have done much of the processing. There lots of reverb being used as well as the pitch and amplitude being mapped to accelerometers. It was only about three quarters into it that he used the accelerometers. The end of the piece was very music more chaotic than the start. If the start of the piece was to be described as the sound of Buddhists chanting in a jungle then the end was the sound if them getting eating alive by wild monkeys. I liked much about this video in the way he used the technology and also how he performed with it.

Thursday, October 1, 2009

Thoughts on my NIME project.

For my NIME I would like to make a hardware controller for the Max patch I used during last years DMSS perfromance. It was based on a monome but also took in the use of the macbook accelerometer to make differences in the sound. If i was to make something it would use a scale. I am not into making an instrument that creates random sound. I also want a direct relation to my actions and the sounds created. They would have ot be a visual element. When I performed last year most of the sounds I created had no direct relation to what I was doing on my laptop. The only time that people seen this relation was when I lifted my laptop

Nime Performance

We were asked to critique a nime performance of our choice. I picked a perfromance by Itai Benjamin



I found this performance very entertaining. I find that some of the performances at NIME to be very serious and I do rather that performances do have at least some element of entertainment in them. I do also like the interaction the puppets get from the audience. You can tell that the audience were very much into it. In about 6 minutes in the people sing along with the puppets. I doubt if they puppets are triggered by the guitar. I would reckon they are controlled by people behind the screen who also sing live. Both the singing and guitar work is quite simple and at times off key but this only adds to the fun of it. I would think that for someone who goes to NIME to see something what will take the hairs off their chin from the amount of scratching they would find this childish and quite brainless. If I wanted to get a child into technology for performance I would show them this.