fist of all, Im apologizing for my bad english.
Ive started with Processing now, and Im at a point, where reading examples and a little bit from the documentation is senseless :P
well, ive wanted to make and "equalizer-graphic" with processing.
My Idea is that:
I made about 64 lines in a 640x480 Window, and these Lines (ive made a class for using them) are in an Array (Lines[] liar= new Line[64] - like that). I wanted to load an mp3 and "analizse" it.
Shall look like the typical graphical equalizer.
So ne aim is, that the mp3 shall play, and at the same moment the visualiasion of it you can see on the screen (like in the Mediaplayer). I thought about setting the lenght of the lines longer if the frequencearea it that loud.
Edit: i forgot my question...-.-
I wanted to know what to do know, i think the steps are Loading the mp3, play it and read frequences and vary the len of the lines.
My main:
int d=64; Line[] lar=new Line[d]; float k=random(100);
void draw(){ for (int i=0;i<d;i++){ lar[i].draw();
}
}
My Line
public class Line { private float len; private int posx; private int posy;
public Line(float len,int posx,int posy){ this.len=len; this.posx=posx; this.posy=posy; }
public void draw(){ strokeWeight(5); line(posx,posy,posx,posy+len); }
public float getLen(){ return this.len; } public void setLen(float len){ this.len=len; } public int getPosX(){ return this.posx; } public void setPosX(int posx){ this.posx=posx; } public int getPosY(){ return this.posy; } public void setPosY(int posy){ this.posy=posy; } }
P.S. I can program in Java. I wanted to learn processing now, so some programingdefnititions and terms are known.