Thanks for your answer, before i read your message, i try something with sonia:
----------------------------------------------------
import pitaru.sonia_v2_9.*;
void setup(){
size(600,600);
Sonia.start(this);
LiveInput.start(256);
}
void draw(){
background(256,256,256);
getMeterLevel();//mostra il volume
}
void getMeterLevel(){
float meterDataRight=LiveInput.getLevel();
PFont fontA = loadFont("CourierNew36.vlw");
textFont(fontA, 36);
if(meterDataRight>=0.01&&meterDataRight<0.2){
text("word",50,50);
fill(0);
}
if(meterDataRight>=0.2&&meterDataRight<0.3){
text("Hello",200,100);
fill(0);
}
if(meterDataRight>=0.3&&meterDataRight<0.4){
text("STRong",400,300);
fill(0);
}
if(meterDataRight>=0.4){
text("CRY!!!",150,500);
fill(0);
}
}
public void stop(){
Sonia.stop();
super.stop();
}
------------------------------------------
but i don't know how i can do 2 things (i know that will be stupid... but this is my first code
):
1) how can i take on screen the word for more time? and make it disappear slowly?
2) how word can appear in random position on screen?
Thanks.