Hi all !
i've been coding in processing for a few month now and i'm starting to use minim to add sound in my sketches yet i'm totally new to this library and afters hours of strugling i can't find a way to solve my problem: here is my basic code
import ddf.minim.*;
Minim minim;
AudioPlayer groove;
float x, y, a, b, c, d, z;
PFont police;
PFont polisse;
String DISASTERPEACE;
String HLD;
void setup() {
size(600, 600);
minim = new Minim(this);
groove = minim.loadFile("groove.mp3", 1024);
groove.loop();
background(0);
textAlign(CENTER);
emissive(0, 26, 51);
police=createFont("drifter.ttf", 32);
polisse=createFont("DF.ttf", 25);
textFont(police);
HLD="Hyper Light Drifter";
DISASTERPEACE="DISASTERPEACE";
smooth();
stroke(random(0, 255), random(0, 255), random(0, 255));
for (int i=0; i<40; i++)
{
fill(random(0, 255), random(0, 255), random(0, 255));
ellipse(x, y, z, z);
ellipse(a, b, z, z);
ellipse(c, d, z, z);
line(x, y, a, b);
line(x, y, c, d);
line(c, d, a, b);
x=random(0, 600);
y=x+20;
a=x-20;
b=random(0, 600);
c=b+20;
d=b-20;
z=3;
}
fill(255);
textSize(12);
text(HLD, 300, 275);
textSize(30);
text(DISASTERPEACE, 300, 313);
//save("ESSAIS10.jpg");
}
so i simply want the line to react to the playing music, i've read a ton of minim releated stuff and saw all the exemples about it and yet i can't manage to make thoose line vibrate to the music
i've tried many things but nothing worked.
thanks for your help