Hi there,
I am trying to make sound fade an image using an input and getting it to activate the opacity levels.
I have a very limited knowledge of processing and am stuck as to where to go next! This is how far I have got:
import ddf.minim.*;
Minim minim;
AudioInput in;
float t = 0;
PImage myImage;
void setup(){
size(875,575);
myImage = loadImage("g058.jpg");
smooth();
minim = new Minim(this);
minim = new Minim(this);
minim.debugOn();
in = minim.getLineIn(Minim.STEREO,40000);
}
void draw(){
background(255);
translate(437,287);
tint(t);
image( myImage, -myImage.width/2.0, -myImage.height/2.0 );
t = (t+in.left.get(0)*40000);
}