View Full Version : Arduino real-time audio?

01-23-2016, 11:59 AM
Will be able to take in stereo inputs go thru a small plugin converting stereo to mid/side and then split it back out to two seperate outputs. Of course assuming the plugin is written correctly. A at a min of 44.1 16bit? Or is it simply too much to ask for this little Beastie.

01-23-2016, 02:39 PM
Yes, the Teensy audio library has a mid-side effect.


You need a Teensy 3.2 to run this, and as a practical matter, the audio shield is the only realistic way to get really good quality stereo sound.


You can use it like everything else in the library... just drag it onto the canvas, wire it up to whatever other stuff you want, export code to Arduino, and add calls to the functions to control settings as your code runs.

If you're not familiar with how the library works, there's a 48 minute tutorial that covers many of its features.


Even though the mid-side effect isn't in this video, hopefully the tutorials about things like the echo and filters will give you a solid idea of how you might use effects.

If you don't have 48 minutes to watch the whole thing, perhaps skip to 6:59 for the first intro about using the design tool, then either 16:55 for the delay effect or 19:25 for echo or 22:45 for filters. Those are the 3 parts about modifying real-time streaming sound.

01-23-2016, 02:54 PM
The library also comes with an example for this effect. First, make sure Teensy is selected in Tools > Boards.

Then open it with File > Examples > Audio > Effects > Mid_Side.

This effect was recently contributed to the library. If you have an older copy without that example, you may need to get the latest version from github.


01-24-2016, 02:20 AM
Thank you very much for a very informative response. I've got some reading/watching to do.