Midterm - "The Four"
Monday, October 29th, 2007Stacking books on book shelf, stacking dishes on dish racks, replacing drained AA batteries with new ones or refilling rechargeable batteries to your charger…
There are similar motions that remind me of reloading magazine of M-16 rifle I had carried when I was in the army in South Korea, and this made me come up with my midterm idea for ICM - THE FOUR.
‘Four’ only means that I chose any physical interface which contains four, identical empty ’space’ for refilling the objects. It was a bit embarrassing to show three movies in the class, though. (I will come up with one more video soon…)
Movies starts showing three videos in horizontal strip, all hands in each movie briefly shows what kinds of actions will occur. Once any numbered key (1, 2, 3, or 4) is pressed, it plays the movie of doing four-times of generic action. (see the movies below)
All movies can be stopped at the point where each actions divided by pressing key 1, 2, 3, and 4.
For coding, I used ‘time’ however Danny pointed out that I would have used ‘jump’ instead.
//********************************************************************************/
//* Author: Aram Chang */
//* Description: ICM Midterm Assignment Ver 1. Wednesday’s 12:30 PM Class */
//* */
//* Date: 10/24/2007 */
//********************************************************************************/
float stopframe=0;
float mt;
import processing.video.*;
Movie theFour;
Movie theFour2;
Movie theFour3;
void setup() {
size(720, 180);
frameRate(30);
theFour = new Movie(this, “four batteries.mov”);
theFour2 = new Movie(this, “four books.mov”);
theFour3 = new Movie(this, “four dishes.mov”);
theFour.noLoop();
theFour2.noLoop();
theFour3.noLoop();
//myMovie.loop();
}
void movieEvent(Movie theFour) {
theFour.read();
theFour2.read();
theFour3.read();
}
void draw() {
background(255);
image(theFour, 0, 0);
image(theFour2, 240, 0);
image(theFour3, 480, 0);
theFour.play();
theFour2.play();
theFour3.play();
mt=theFour.time();
if(theFour.time()>stopframe && theFour.time()
theFour.speed(0);
theFour2.speed(0);
theFour3.speed(0);
}else{
theFour.speed(1);
theFour2.speed(1);
theFour3.speed(1);
}
println(mt);
}
void keyPressed(){
if(key==’1′){
stopframe=3.5;
}else if (key==’2′){
stopframe=7.2;
}else if (key==’3′){
stopframe=10.9;
}else if (key==’4′){
stopframe=13.9;
}
//stop=!stop;
//myMovie.pause();
}






