sound interaction and slow movie problem
in
Core Library Questions
•
2 months ago
Hello,
I have the recent version (2.0.1)
I'm creating a school project in which I want to create an interaction with sound. My idea is to have a movie when nothing happens (normal.mov) and the other (right.mov) only appears when we say something.
I saw in the "libraries" how to import one movie.
I know that i have to use the conditionals to say that if there is any sound the movie "right.mov" appears but i don't know how to write this.
I also don't know why my movie "normal.mov" is really slow. So until now i have this
import processing.video.* ;
Movie myMovie;
void setup() {
size(720, 576);
myMovie = new Movie(this, "normal.mov");
myMovie.speed(4.0);
myMovie.loop();
}
void draw() {
if (myMovie.available()) {
myMovie.read();
}
image(myMovie, 0, 0);
}
void movieEvent(Movie m) {
m.read();
}
Thank you very much
I have the recent version (2.0.1)
I'm creating a school project in which I want to create an interaction with sound. My idea is to have a movie when nothing happens (normal.mov) and the other (right.mov) only appears when we say something.
I saw in the "libraries" how to import one movie.
I know that i have to use the conditionals to say that if there is any sound the movie "right.mov" appears but i don't know how to write this.
I also don't know why my movie "normal.mov" is really slow. So until now i have this
import processing.video.* ;
Movie myMovie;
void setup() {
size(720, 576);
myMovie = new Movie(this, "normal.mov");
myMovie.speed(4.0);
myMovie.loop();
}
void draw() {
if (myMovie.available()) {
myMovie.read();
}
image(myMovie, 0, 0);
}
void movieEvent(Movie m) {
m.read();
}
Thank you very much
1