Audio Rate change
/**
Sound Slider. P Rogers 11/01/2009 20.32
Sketch that shows how to change the rate of a quicktime movie manipulate the
speed of audio.
Create a quicktime with audo only and place it in the data folder and rename movieName to your filename
**/
import processing.video.*;
Movie myMovie;
float movieSpeed = 0f;
float e = 0f;
String movieName = "tallis.mov";
void setup() {
smooth();
size(1024, 400);
myMovie = new Movie(this, movieName);
myMovie.speed(movieSpeed);
myMovie.loop();
}
void draw() {
drawInterface();
movieSpeed = mouseX / 512f;
//println(movieSpeed);
myMovie.speed(movieSpeed);
}
void drawInterface(){
background (255);
stroke(0, 0, 0);
strokeWeight(1);
line(width / 2, 0, width / 2, height);
stroke(255, 0, 0);
strokeWeight(10);
line(mouseX, 0,mouseX, height);
}