Data

Lou Reed tweets

This is my homework for the data assignment.
My idea was to show the change in the number of tweets about Lou Reed from during the week after his passing.
The dots representing each tweet would create Lou Reed’s name and fade with time, showing how a name appears and disappears in social media during a brief period of time.

Most of my time was spent on getting the data itself. I tried getting a Json from twitter and after struggling with it, opted for using scraperwiki.com  and got a CSV file with the tweets.

This is as far as I got with the sketch, which might be visually disappointing when comparing with the initial goal, but it involved a lot of learning about getting data and reading from it.

Lou Reed tweets

This is my code:

Table dataset;
StringList allTime= new StringList();
float a;
float b;
float c;
float d;
float e;
float f;
void setup() {
size(1280,720);
a= random(0,100);
b= random (0,720);
c= random (100,200);
d= random (0,720);
e= random (200,300);
f= random (0,720);
smooth();

//read the data from the table
dataset = loadTable(“lou_reed_tweets.csv”, “header”);

// add the column “time” to allTime stringlist
allTime.append(dataset.getStringColumn(“time”)); }

void draw(){
background(0);
if(allTime.hasValue(“10/30/13”) == true ) {
circle();
print(“yes”);

}

if(allTime.hasValue(“10/29/13”) == true ) {
circle2();
print(“29 “);

if(allTime.hasValue(“10/28/13”) == true ) {
circle3();
print(“28 “); }
}

}

void circle() {

ellipse(a,b,10,10);
fill(255);

}

void circle2(){
ellipse(c,d,10,10);
fill(255);

}

void circle3(){
ellipse(e,f,10,10);
fill(255);

}

Pixels & Data

This is serial date coming from a pulse sensor in Arduino affecting the image tint.
Iv’e also used this data with processing to set an alarm when the pulse gets too high, as part of a Pcomp project.

Screen Shot 2013-11-25 at 11.25.52 AM

 

 

 

 

 

 

 

 

 

 

 

Heartalarm


https://vimeo.com/77601603

 

 

 

This is the code (based on the original code that comes with the pulse sensor):

import processing.serial.*;
PFont font;
Serial port;
int Sensor; // HOLDS PULSE SENSOR DATA FROM ARDUINO
int IBI; // HOLDS TIME BETWEN HEARTBEATS FROM ARDUINO
int BPM; // HOLDS HEART RATE VALUE FROM ARDUINO
int[] rate; // USED TO POSITION BPM DATA WAVEFORM

//float zoom; // USED WHEN SCALING PULSE WAVEFORM TO PULSE WINDOW
float offset; // USED WHEN SCALING PULSE WAVEFORM TO PULSE WINDOW

boolean beat = false; //set when a heart beat is detected, then cleared when the BPM graph is advanced
float val = 0.0;
float r;

void setup() {
size(640, 480,P3D); //Stage size
frameRate(100);
font = loadFont(“Arial-BoldMT-24.vlw”);
textFont(font);
rectMode(CENTER);
textAlign(CENTER);

// GO FIND THE ARDUINO
println(Serial.list()); // print a list of available serial ports
// choose the number between the [] that is connected to the Arduino
port = new Serial(this, Serial.list()[8], 115200); // make sure Arduino is talking serial at this baud rate
port.clear(); // flush buffer
port.bufferUntil(‘\n’); // set buffer full flag on receipt of carriage return
}

void draw() {
background(0);
text(BPM + ” BPM”,100,50); // print the Beats Per Minute

fill(255);

if (beat){
sphere(r);
r= random(BPM*0.89, BPM*0.9);}
}
void serialEvent(Serial port) {

String inData = port.readStringUntil(‘\n’);
inData = trim(inData); // cut off white space (carriage return)

println(inData);

if (inData != null && inData.length() > 1) {

if (inData.charAt(0) == ‘S’) { // leading ‘S’ for sensor data
inData = inData.substring(1); // cut off the leading ‘S’
Sensor = int(inData); // convert the string to usable int
}
if (inData.charAt(0) == ‘B’) { // leading ‘B’ for BPM data
inData = inData.substring(1); // cut off the leading ‘B’
BPM = int(inData); // convert the string to usable int
beat = true; // set beat flag to advance heart rate graph
val = val + 0.02;
}
if (inData.charAt(0) == ‘Q’) { // leading ‘Q’ means IBI data
inData = inData.substring(1); // cut off the leading ‘Q’
IBI = int(inData); // convert the string to usable int
}
}
}

response to reading ‘In the Blink of an Eye’

The thing I related to the most in this book, is the part when Murch talks about the editor as the critical and objective eye (‘seeing around the edges of the frame’) People who are involved in shooting the material, can often get too attached to it for emotional reasons. They lose some of their abilities when it comes to judging the final footage. The editor has the ability to be detached from the filming phase. the editor sees the footage and does not necessarily know what went on outside of the frame that day, which makes him a better judge of quality.

I think this is a good point to remind ourselves when editing. We should try to see things as if for the first time and ask ourselves: is it good? No excuses or stories, does it work? does it communicate and is it worth the viewer’s time? These are questions that are hard to answer when you are too emotionally involved in the creation process, yet they are crucial for a successful piece.