Blend Sounds in Processing
in
Contributed Library Questions
•
2 years ago
Hi, I m working on the following code. I can do several records, and listen to them back. But I want to listen my recordings "blended to each other". How can I do that??
import pitaru.sonia_v2_9.*;
Sample mySampleObj;
void setup(){
size(400,200);
background(0,50,0);
Sonia.start(this);
LiveInput.start();
int recTimeSec = 10;
mySampleObj = new Sample(44100*recTimeSec);
}
void draw(){
}
void keyPressed(){
if(key == 'r'){
LiveInput.startRec(mySampleObj);
print("REC");
}
if(key == 's'){
LiveInput.stopRec(mySampleObj);
print("STOP");
}
if(key == 'p'){
mySampleObj.play();
print("PLAY");
}
}
public void stop(){
Sonia.stop();
super.stop();
}
Thanx
Sample mySampleObj;
void setup(){
size(400,200);
background(0,50,0);
Sonia.start(this);
LiveInput.start();
int recTimeSec = 10;
mySampleObj = new Sample(44100*recTimeSec);
}
void draw(){
}
void keyPressed(){
if(key == 'r'){
LiveInput.startRec(mySampleObj);
print("REC");
}
if(key == 's'){
LiveInput.stopRec(mySampleObj);
print("STOP");
}
if(key == 'p'){
mySampleObj.play();
print("PLAY");
}
}
public void stop(){
Sonia.stop();
super.stop();
}
Thanx
C
1