I'm trying to create a long piece of audio which is a collection of recorded audio clips that are, in time, merged into one large collage of sounds. I am using the Minim sound library, but at the moment I'm having a hard time getting this to work. This works exactly the same as My programming skills are fairly basic but I was thinking this would be a very easy task! I :ant it to work just exactly as the 'RecordAndPlayback' in the examples folder of Minim but to have the events triggered by clicks done autonamously.
Here's the code I have so far:
import ddf.minim.*;
Minim minim;
AudioInput in;
AudioRecorder recorder;
AudioPlayer player;
Timer timer;
class Timer {
int savedTime; // When Timer started
int totalTime; // How long Timer should last
Timer(int tempTotalTime) {
totalTime = tempTotalTime;
}
// Starting the timer
void start() {
// When the timer starts it stores the current time in milliseconds.
savedTime = millis();
}
// The function isFinished() returns true if 5,000 ms have passed.
// The work of the timer is farmed out to this method.
If anyone could simply tell me the name or the process of this type of interaction (I've searched for Node Garden etc) or could point me in the direction for a tutorial to achieve such a thing I would be most grateful!