In this week’s recitation, the task is to manipulate media interaction through Arduino and Processing. Processing is a really good tool for sound and media interaction, and one thing important in the coding process is that remember to use map() function all the time.
I’ve done a circuit to control the speed of a rocket launching video. Here’s the result:
And following is the code:
Codes for Processing:
/** * Speed. * * Use the Movie.speed() method to change * the playback speed. * */ import processing.video.*; Movie mov; void setup() { size(560, 406); background(0); mov = new Movie(this, "launch2.mp4"); mov.loop(); } void movieEvent(Movie movie) { mov.read(); } void draw() { image(mov, 0, 0); float newSpeed = map(mouseX, 0, width, 0.1, 2); mov.speed(newSpeed); fill(255); text(nfc(newSpeed, 2) + "X", 10, 30); }
Codes for Arduino:
// IMA NYU Shanghai // Interaction Lab // For sending multiple values from Arduino to Processing void setup() { Serial.begin(9600); pinMode(0, INPUT); } void loop() { int poten1 = analogRead(0); // keep this format Serial.print(poten1); Serial.println(); // too fast communication might cause some latency in Processing // this delay resolves the issue. delay(100); }
Reflection on Computer Vision for Artists and Designers: Pedagogic Tools and Techniques for Novice Programmers
Thinking of the technology used in my recitation project, I think computer manipulation has significantly simplify the process of manipulating media. In this extent, I think technology serves to facilitate project designs. However, after reading the article, I realize that when technology brings convenience for simple art works, it also introduces complex computing and logic into arts in further exploration. Like the text said, “No doubt many more vision-based artworks remain to be created, especially as these techniques gradually become incorporated into developing fields like physical computing and robotics.” Technology provide us with a broader filed to explore computing and regular patterns in arts out of intuition, and it’s this kind of intersection of logic and intuition that make technology used in arts so charming.