Processing Forum
import ddf.minim.*;
Minim minim;
AudioInput in;
float r = 0;
float s = 0;
PImage myImage;
void setup(){
size(500,500);
myImage = loadImage("4test.png");
smooth();
minim = new Minim(this);
minim = new Minim(this);
minim.debugOn();
in = minim.getLineIn(Minim.STEREO,2000);
}
void draw(){
background(240);
translate(250,250);
rotate (s);
rotate (r);
image( myImage, -myImage.width/2.0, -myImage.height/2.0 );
s = s + 0.01;
r = (s+in.right.get(0)*0010);
}
void stop()
{
minim.stop();
super.stop();
}