I am really new using processing or any programming languages but i have been playing for fews days with processing and i really like it and i saw what can be done so i will give it a try. So the first step was to get a book so i got Getting Started with Processing. Its very good for real beginners.
My Question is how can i insert live feed from a webcam into the 500 rectangles that is reacting with the music?
It works with images and also i got the live feed but it blink a lot so i couldnt really see what was going on.
import processing.opengl.*;
import codeanticode.gsvideo.*;
import ddf.minim.*;
import ddf.minim.signals.*;
import ddf.minim.analysis.*;
import ddf.minim.effects.*;
Minim minim;
AudioPlayer music;
GSCapture cam;
FFT fft;
Square[] square;
PImage a;
int numItems = 700;
void setup(){
size(800, 600, OPENGL);
a = loadImage("jelly.jpg");
minim = new Minim(this);
music = minim.loadFile("Sound.mp3");
music.play();
fft = new FFT(music.bufferSize(), music.sampleRate());