Crossfade audio with 3.1 + audio board

Status
Not open for further replies.

ptterb

New member
Hi everyone, I'm new here!

I'm looking to swap out a museum installation I made previously that uses a raspberry pi. Basically, it's a sound board activated by arcade buttons with leds. I've looked into the audio board and library, but I can't find anything about a crossfade between 2 audio files. When a user presses another button while a sound is playing, I'd like that sound to fade out while the new one fades in. Is there a built-in function to do this? Should I just loop and manually adjust the gain of the mixer channels?

Any advice would be much appreciated. I've done a bunch of arduino work, but excited to use a teensy for the first time!

Thanks!
 
Yup, the fade effect is designed so 2 of them, controlled at the same time with the same fade duration (one fading in, the other fading out), will match each other so the combined gain of both remains 1.0.
 
Status
Not open for further replies.
Back
Top