Wanting to create an audio looper

Hello, world! I want to create a simple realtime audio looper. I need guidance on deciding which board to start with, or if Arduino is suitable to begin with. Of course there’s more than one way to do this. I’d like to hear from folks who have done realtime audio processing. The pros and cons to the various Arduino boards and other brands (teensy? Daisy?)
Basic desired specs: 1) selectable sample rates from about 8Khz to 88KHz
2) selectable bit depth (2 bits through 24 bits).
3) about 10 seconds of audio
4) two audio channels
5) bonus: keep the sample loop across power cycles (write and recall from/to eeprom or memory card)
Anyone done this yet? Cleanest setup? Failures to avoid? Success stories? Thanks!

I haven't done any audio processing with the Arduino but I know a bit about audio...

Is there going to be analog input?

If so, you'll need a variable anti-aliasing filter (assuming you want audio above 4kHz). And the audio needs to be filtered before the ADC.

Or you can use higher rate and then filter & down-sample in software, assuming you have enough processing power.

Of course, you'll need a 24-bit DAC, and a 24-bit ADC if there's analog input.

And if there is analog input... As you may know, most of these things can't read negative voltages so you'll have bias the input. (The bias can be filtered-out of the output with a capacitor.)

1 Like

Thanks, great questions. I should have mentioned this: Analog audio in and analog audio out. Noted about the filtering, I’m open to doing it in hardware and/or software. Looking forward to hearing the pros and cons of various setups folks have built.

An audio signal processing library is available for the Teensy 4.x, which is fast enough to be actually useful.

It's a great youtube channel to start with digital audio.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.