Minim: How to remove audio through speakers. Involuntary feedback.
in
Core Library Questions
•
1 year ago
Hey. When using minim to analyze an audio input from the mic, I get the same input as an output automatically, which is creating a feedback, which I want, however cool it might sound, to get rid off.
I'm thinking it might be a bug, but since it's my first sketch with sound analysis, it might be something I'm doing wrong.
basically this is how I'm doing it:
I'm thinking it might be a bug, but since it's my first sketch with sound analysis, it might be something I'm doing wrong.
basically this is how I'm doing it:
- import ddf.minim.*;
- import ddf.minim.analysis.*;
- Minim minim;
- AudioInput lineIn;
- FFT fft;
- void setup() {
- //size and stuff here...
- minim = new Minim(this);
- lineIn = minim.getLineIn(Minim.STEREO, 2048);
- fft = new FFT(lineIn.bufferSize(), lineIn.sampleRate());
- //setting up my other stuff here (isn't related to the minim, other than for transformations
- //and stuff)
- }
- void draw() {
- //background and stuff here...
- fft.forward(lineIn.mix);
- scaleSize = map(fft.getBand(0), 0, 13, 0, 20); //arbitrary use of FFT
- }
- void stop() {
- lineIn.close();
minim.stop();
super.stop();
}
Do I need to do something with an AudioOutput object?
I'm using Processing 1.5.1 on a Windows 64 bit machine right now, with Minim 2.1.0 BETA.
Thx
PS: I found another thread about this, but the poor guy wasn't given an answer.. here
I'm using Processing 1.5.1 on a Windows 64 bit machine right now, with Minim 2.1.0 BETA.
Thx
PS: I found another thread about this, but the poor guy wasn't given an answer.. here
1