We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi everyone,
I'm facing a problem I can't quite find a solution for, it'd be really nice if anyone had info regarding this To put it short, I'd like to use an audio output as an input for Processing, in order to generate real time graphics.
I'm trying to get the audio which comes out of my Ableton Live setup (routed directly to the outputs of my external sound card - my sound card being multi output, though I'd be happy getting only output 1 and 2, which contain the master out). However, I don't know how to get this "output array" (using either minim, javasound, or even the new Processing 3.0 sound library which doesn't have much documentation yet) I could get some kind of tool like Soundflower to go in between, and have Ableton out -> Soundflower In || Soundflower Out -> Ext out, and just have Processing get the Soundflower Input, but it's far from optimal, as this adds a bad latency (critical for a live music setup), and is not extremely reliable
I've looked at Minim, which has a setInputMixer function, but it doesn't allow me to monitor the output Actually, is this kind of audio hijacking even possible in Java, using OSX ? Could this be possible with the bright future that awaits us with Processing 3.0 and its brand new sound library ?
Thanks for every bit of info !
Martin
Answers
You can't set the audio device Minim uses as input sadly. It uses the system's default audio input device. By default, Windows usualy has two: the microphone and the stereo-mix (exact name is system dependent). If you set this last one as default, Minim will use it as the input. You'll need to figure out if this is possible with your setup.
Yeah, that's pretty bad... I want neither of those inputs (plus I'm running OSX), this is quite a big flaw when you want to use a real multi-input / multi-output sound card, and not the integrated chip Well, guess that makes it for lower level C or C++ treating the audio, and then sending the info to Processing
I don't know how this works on OSX, but I suspect there is a way to select your default sound card as well? Normally you can choose every device that is installed, including the one Ableton uses.
I am looking exactly the same. And I suppose that we could be hundred to look at this too. If someone has found a solution it would be sooo nice to share it.
I also generate visuals using sound signals and I would love to compose music having the visual response in real time.
Remi.
https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=8&cad=rja&uact=8&ved=0CGkQtwIwBw&url=http://www.youtube.com/watch?v=inD5b5R8qes&ei=UV08VOHqOeLf8AGv34HoAg&usg=AFQjCNF1PLAGkxAEUb4s7t06DHIlkWuLTQ&sig2=cfzN1BE0eCcCF6BHbSM-4w&bvm=bv.77161500,d.b2U
Worked for me :D