Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
georgenewton
georgenewton's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
How can i use sound to fade an image
[1 Reply]
08-Apr-2013 09:22 AM
Forum:
Core Library Questions
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);
}
«Prev
Next »
Moderate user : georgenewton
Forum