/* oooo oooo oo oo ooooooo oooo ooooooo oo oo ooo oooo ooooooo oooo ooo ooooo oo oooooo ooooooo oo ooo ooo ooooo oooooo ooo ooooo ooooooooooo ooo ooooooo oo oooo oooooo ooooooo oooo o oo oo ooo oooo --( Guillaume ooo LaBelle )-- goo.x@gmx.de oo oo ooo ooo oooooooo oooo ------------------------------------------------------------ ------------------------------------------------------------ --( Battements Acoustiques )-- ------------------------------------------------------------ GRCAO - Université de Montréal [UDM] Laboratoire de Recherche Nxi Gestatio-HEXAGRAM [UQAM] Architecture et Robotique - Québec - CANADA [2003] */ int nombreSample = int(random(4)+2); sample[] s = new sample[nombreSample]; int[] note = new int[nombreSample]; int[] B = new int[nombreSample]; int noteLimite = 2000; int noteBorder = 2000-100; void setup(){ size(500, 500); background(255); ellipseMode(CENTER_DIAMETER); //noStroke(); stroke(210); fill(0, 7); framerate(30); for(int i=0; inoteBorder) B[i]=B[i]*-1; if (note[i]<0) B[i]=B[i]*-1; note[i]=note[i]+B[i]; if (random(200)>199) B[i]=B[i]*-1; s[i].setRate(44.2f*note[i]); ellipse(width/2, height/2, (note[i])/(noteLimite/width), (note[i])/(noteLimite/height) ); } } public void stop(){ sonia.stop(); super.stop(); }