Arduino real-time audio?

Status
Not open for further replies.

Fingersg

New member
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.
 
Yes, the Teensy audio library has a mid-side effect.

http://www.pjrc.com/teensy/gui/?info=AudioEffectMidSide

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.

http://www.pjrc.com/store/teensy32.html
http://www.pjrc.com/store/teensy3_audio.html

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.

http://www.pjrc.com/teensy/td_libs_Audio.html

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.
 
Last edited:
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.

https://github.com/PaulStoffregen/Audio
 
Status
Not open for further replies.
Back
Top