Open barium3 opened 2 years ago
//Test with this code, the value of backgroundCol is always 0.0
import ddf.minim.; import ddf.minim.analysis.; import ddf.minim.effects.; import ddf.minim.signals.; import ddf.minim.spi.; import ddf.minim.ugens.;
Minim sounds; AudioInput microphone;
void setup() { size(500, 500);
sounds = new Minim (this); microphone=sounds.getLineIn(); } void draw() {
float backgroundCol = microphone.mix.level()255.010.0; background(backgroundCol, backgroundCol, backgroundCol); println(backgroundCol); }
I've got the same issue using the RecordAudioInput example on a MacBook Pro M1 using macOS 12.6.1 using the built-in microphone and Processing 4.0.1.
There is a working solution described here: https://github.com/ddf/Minim/issues/114#issuecomment-1035060524
the mac has given the processing permission in the system preferences but the processing does not respond and no error is reported