I had some trouble with my twitter account connecting to my Processing app. The video shows almost everything except when I get M&Ms which failed this time. We saw it in class though. I would fix the problem but I do have a lot of time constraints this weekend so here is the documentation for everything else.
/**
* oscP5parsing by andreas schlegel
* example shows how to parse incoming osc messages "by hand".
* it is recommended to take a look at oscP5plug for an
* alternative and more convenient way to parse messages.
* oscP5 website at http://www.sojamo.de/oscP5
*/
import oscP5.*;
import netP5.*;
int int0;
int int1;
int int2;
int x1 = 600/2-50;
int y1 = 600/2-50;
boolean won = false;
OscP5 oscP5;
NetAddress myRemoteLocation;
void setup() {
size(600,600);
frameRate(25);
oscP5 = new OscP5(this,12000);
myRemoteLocation = new NetAddress("127.0.0.1",12000);
}
void draw() {
if((Math.abs(x1-int0) < 3) && (Math.abs(int1-60) < 3) || won == true) {
background(255);
rect(600/2-int1,600/2-int0,int1,int1);
won=true;
println("hi");
}
else if(won == false){
background(0);
fill(255);
rect(x1, y1, 60, 60);
fill(255,0,0);
rect(int0, y1, int1, int1);
}
}
void oscEvent(OscMessage theOscMessage) {
if(theOscMessage.checkAddrPattern("/number")==true) {
int0 = (int)theOscMessage.get(0).floatValue();
int1 = (int)theOscMessage.get(1).floatValue();
int2 = (int)theOscMessage.get(2).floatValue();
println(int2);
return;
}
}
For my last project I used motion tracking from max MSP to control an animation of rotating textured spheres in processing. My goal was to create an interactive, slightly repulsive, highly tactile surface. I succeeded in calibrating the motion in each sector of the screen with the rotation of its corresponding sphere.
since then I have made a more malleable program entirely in processing. There are still some kinks I want to work out before I consider it an entirely finished piece; I want to figure out how to alter the images so they are completely seamless when they are applied to the sphere and I also want to add a few modifications to their movement in processing.
I am missing the breakout game mod on open processing.org. I did the assignment, but was unable to upload it. Unfortunately I have since deleted the file, so I am unable to provide documentation.
Idios is an abstract visualization program made in Max/MSP that responds to movement. Interacting with it creates different patterns, sound, and rare moments of clarity. The samples are from Mild und Leise, an experimental song made by Paul Lansky in the 1970’s using computer generated sounds.
Twitter is an interesting medium to me because it is a way of broadcasting individual news and like any news media it has the capacity to create and destroy reputations. I imagine that if an individual had developed a following they would grow cautious of what they posted to their account. For my arduino-twitter project I wanted add a level of removal between user input and the content of the tweet. The objective being to transfer the power of reputation intrinsic to posting to twitter and transfer it to an object. My preference was for each individual to post a tweet thats content was defined by the position of a slider to their own individual active accounts. However, I found that this would of necessitated creating an app for each individual participating in the project. I decided instead, I would extend the idea of representation, that was already present in the notion of the positioning of the slider defining the content of the tweet, further by creating a twitter character from scratch through sensor input. Since I was already exploring the idea of representation I thought I would take that further by exploring a political theme.The arduino interface I designed allowed the user to select the character they wanted to represent them, either “Mary Smith” or “James Smith”, then move a slider along a spectrum to the point which best represents their political views and then finally press a button to post this representation of themselves to twitter.
here is a picture of the interface I designed:
Here is a picture of Mary and James Smiths’ twitter acounts:
Comments Off on Twitter Representative By Caroline Record
As humans, we love ownership and when we get attached to things–in particular things that really collectively belong to everyone–we sometimes project imagined notions of ownership that can be completely illogical. For example, in my life, I am emotionally attached to a certain couch that faces the large windows in Hunt Library. This couch has served as a refuge after many all nighters, and I also love the view of the forest it provides. So whenever I go to the library with the intention of studying or sleeping there and I see someone other than myself in that couch, I become irrationally possessive and irritated. So I decided to install an arduino with a capacitive sensor in the middle of the cushion that tweets an alert to me whenever an intruder sits down. A servo sprinkler will simultaneously sprinkle them with water as long as they continue to sit there. The sprinkler should hopefully deter them from sitting too long on my couch, and once they get up, twitter will notify me that they’ve left and the sprinkler will stop. Twitter provides the time they sit down and the time they leave, so I’ll always know when my couch is available to sit on…hahahahaha