My project is related to sound, recording and playback the recording.
Every time I record a sound the sound is saved but when I try to record another sound there is not a new recording file but the second sound is saved in the first recording file.
Another thing that I want to achieve is to save the one recording file above the other (blended-merge sounds)
How can I achieve that?
This is what I have done so far:
/**
* Record Line In
* by Damien Di Fede.
*
* This sketch demonstrates how to an <code>AudioRecorder</code>
* to record audio to disk. To use this sketch you need to have
* something plugged into the line-in on your computer. Press 'r'
* to toggle recording on and off and the press 's' to save to disk.
* The recorded file will be placed in the sketch folder of
* the sketch.
*/
import ddf.minim.*;
Minim minim;
AudioInput in;
AudioRecorder recorder;
int counter;
AudioSample kick;
String filename;
void setup()
{
size(512, 200, P2D);
textMode(SCREEN);
counter = 5;
filename = "myrecording" + counter + ".wav" ;
minim = new Minim(this);
// get a stereo line-in: sample buffer length of 2048
// default sample rate is 44100, default bit depth is 16
in = minim.getLineIn(Minim.STEREO, 2048);
// create a recorder that will record from the input to the filename specified, using buffered recording
// buffered recording means that all captured audio will be written into a sample buffer
// then when save() is called, the contents of the buffer will actually be written to a file
// the file will be located in the sketch's root folder.
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);
}
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);
}