chipaudette
Well-known member
Hi All,
I'm used to using the Audio Library with my Teensy Audio Board to do real-time processing. But, how do I use the audio library for non-real-time processing?
The scenario that I need to address is that my audio processing algorithms are too slow. To figure out which parts of my algorithm are too slow, I need to be able to run the whole stack, even if it takes longer than real time. But, on my setup (with the Teensy Audio Board), the whole thing freezes if it takes longer than real time. How can I use the Audio Library without the real-time requirement imposed by the Teensy Audio Board?
Ideally, I'd do something like: (1) read audio from SD card, (2) process with my too-slow algorithms, (3) debug by watching Serial.println() to the Serial Monitor, (4) write the processed audio to the SD card to confirm that it sounds OK.
Any idea how I'd do that?
Chip
I'm used to using the Audio Library with my Teensy Audio Board to do real-time processing. But, how do I use the audio library for non-real-time processing?
The scenario that I need to address is that my audio processing algorithms are too slow. To figure out which parts of my algorithm are too slow, I need to be able to run the whole stack, even if it takes longer than real time. But, on my setup (with the Teensy Audio Board), the whole thing freezes if it takes longer than real time. How can I use the Audio Library without the real-time requirement imposed by the Teensy Audio Board?
Ideally, I'd do something like: (1) read audio from SD card, (2) process with my too-slow algorithms, (3) debug by watching Serial.println() to the Serial Monitor, (4) write the processed audio to the SD card to confirm that it sounds OK.
Any idea how I'd do that?
Chip