We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi there,
for the art project Global Sounds (http://www.picaroon.eu/work.html ) I would need 7 separated audio outputs, so that every pyramid has one speaker and plays one instrument (=one mp3). I was wondering if I could use the minim library together with an audio interface somehow? Any ideas/suggestions?
Thank you very much in advance!! Rebecca
Answers
If we had something like asio implemented for Processing, this would become easier. I'm not sure how it would work with directsound or anything other than asio really. It is most probably possible with minim though. Either way, interesting question... If you're dealing with audio files, Minim by default creates a stereo output in the AudioPlayer class. It is possible to reconfigure the AudioPlayer class and create seven individual channels. It requires a little bit of Java code but is relatively straight forward to pick up on if you know the basics of Java. An issue I think you would be dealing with here is deciding how your buffer is going to process the audio for seven speakers simultaneously in real-time. You inevitably would have to put some thought into the DAC. Basically you have to go through the classes you want and implement a surround option. The audioutils which is part of the toxiclibs library is also something you might want to play with. You might be able to use instances to solve the problem. Hope this helped!
Thanks for your reply! Actually, I resolved the problem by using 7 external USB-Sound Cards and a code based on the setOutputMixer-example.
That's the code:
Hi Picaroon, Which USB cards did you use? I found some on amazon but they are so cheap (<£2) that I sceptical whether I found the right ones. Are you using them on a mac/linux/windows? Thanks
Hey guys,
I need to some help... I would like to send audio from Max to Processing (using Minim) by SoundFlower. I need to use 4 in/out but i can set only the device and not the single outputs and inputs. Is there any possibility to set each in and out? Thank you so much
don't post questions in multiple places, it just confuses people, they don't know which one to answer.
and don't hijack other people's threads. nobody's looking at a thread last update 18 months ago.