We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello everyone!
So for this assignment I have to take either an audio file or live audio input and have it translate to a hue change on a photo! Overall it seems pretty simple but I'm stuck on how to put the information in to change the hue. I've inserted what I have so far below.
import ddf.minim.*;
import ddf.minim.signals.*;
import ddf.minim.analysis.*;
import ddf.minim.effects.*;
PImage img;
Minim minim;
AudioInput in;
void setup()
{
img = loadImage("Ash.jpg");
size( 540, 687 );
smooth();
minim = new Minim( this );
in = minim.getLineIn( Minim.STEREO, 512 );
background(img);
}
void draw()
{
}
void stop()
{
in.close();
minim.stop();
super.stop();
}
Answers
@lbrez16 --
Well, if you want your
img
to change each time, you can't draw it once in setup(). You need to draw it repeatedly, indraw
, as an image().Have you looked at the
tint()
command examples? Read the reference page carefully -- notice what it says about colorMode, as your assignment has ahue
requirement.AudioInput in
.