SONIA
import pitaru.sonia_v2_9.*;
Sample tune;
boolean start=false;
void setup(){
size(200,200);
Sonia.start(this);
tune = new Sample("animal00_rs.wav");
tune.play();
}
void draw(){
}
void mousePressed(){
if(start==false){
start = true;
tune.play();
}else{
start=false;
tune.stop();
}
}
public void stop(){
Sonia.stop();
super.stop();
}
import pitaru.sonia_v2_9.*;
Sample tune;
boolean start=false;
void setup(){
size(200,200);
Sonia.start(this);
tune = new Sample("animal00_rs.wav");
tune.play();
}
void draw(){
}
void mousePressed(){
if(start==false){
start = true;
tune.play();
}else{
start=false;
tune.stop();
}
}
public void stop(){
Sonia.stop();
super.stop();
}
コメント
コメントを投稿