isaacjacobson
Well-known member
I'm In Need of Help with Audio Crossfades (Teensy 4.0 with Audio Shield Rev D)
So I'm working on a project that would cue wav files (from SD card). I'm pretty stuck in figuring out how to even begin to accomplish this, so I don't have any source code to offer yet. Here's an explanation of my project:
Because my project would have 50+ wav files that could be cued and crossfaded, I'm having a very difficult time figuring out how to accomplish this without creating 50+ 'playSdWav' & 'fade' objects in the Audio System Design Tool.
Is there another way? Could anyone offer some advice as to how I can efficiently accomplish my goal for this project without needing to create a plethora of 'playSdWav' & 'fade' objects?
Thanks so much for your time!
So I'm working on a project that would cue wav files (from SD card). I'm pretty stuck in figuring out how to even begin to accomplish this, so I don't have any source code to offer yet. Here's an explanation of my project:
- When a wav file is first cued, it would fade in from silence. (ie. fade in "1.wav")
- While that wav file is playing, if a new wav file is cued, it would then crossfade from the wav file that is currently playing to the next. (ie. crossfade from "1.wav" to "14.wav").
- Then, if a new wav file is cued, it would again cross fade from the wav file that is currently playing to the next (ie. crossfade from "14.wav" to "50.wav").
- Etc..
- If the stop button is pressed, it will fade out whatever file is currently playing and stop it. (ie. fade out "50.wav" and stop).
Because my project would have 50+ wav files that could be cued and crossfaded, I'm having a very difficult time figuring out how to accomplish this without creating 50+ 'playSdWav' & 'fade' objects in the Audio System Design Tool.
Is there another way? Could anyone offer some advice as to how I can efficiently accomplish my goal for this project without needing to create a plethora of 'playSdWav' & 'fade' objects?
Thanks so much for your time!