Changing audio inputs
in
Integration and Hardware
•
11 months ago
Hey guys, I am currently working on using Processing along with Ableton Live to create live visuals.
I have so far come across some information that told me use JACK which allows me to connect Ableton to Processing. The only problem I am having is that I cannot change the audio input of Processing so that it takes audio from output of JACK instead of from my inbuilt microphone.
Here is the code I'm using thus far...
import ddf.minim.*;
float x;
float y;
Minim minim;
AudioInput input;
void setup () {
size (320, 240);
smooth();
stroke (255, 25);
noFill ();
x = 0;
y = 20;
minim = new Minim (this);
input = minim.getLineIn (Minim.STEREO, 512);
background (0);
}
void draw () {
float dim = input.mix.level () * width;
x += input.mix.level () * 20;
ellipse (x, y, dim, dim);
if (x > width) {
x = 0;
y += 20;
}
}
Any help you guys can give would be great!
Regards
David
I have so far come across some information that told me use JACK which allows me to connect Ableton to Processing. The only problem I am having is that I cannot change the audio input of Processing so that it takes audio from output of JACK instead of from my inbuilt microphone.
Here is the code I'm using thus far...
import ddf.minim.*;
float x;
float y;
Minim minim;
AudioInput input;
void setup () {
size (320, 240);
smooth();
stroke (255, 25);
noFill ();
x = 0;
y = 20;
minim = new Minim (this);
input = minim.getLineIn (Minim.STEREO, 512);
background (0);
}
void draw () {
float dim = input.mix.level () * width;
x += input.mix.level () * 20;
ellipse (x, y, dim, dim);
if (x > width) {
x = 0;
y += 20;
}
}
Any help you guys can give would be great!
Regards
David
1