Has anyone experience with the audio board from the teensy and how to use the auto gain control of the sgtl5000? I used audiopreprocessorenable() and autovolumecontrol() and autovolumeenable() in setup with hopefully correct parameters, but I can’t recognize any difference when I adjust the volume of my audio source. Any suggestions? Or examples? Thanks, Lars
Has no one tried it??
Sorry, I’ve never tried it, but am also interested. Tried posting to the PJRC forums? https://forum.pjrc.com
Yes I’m doing this at the moment. How have you solved different volume levels in your music input for visualization?
I wouldn’t say I’ve solved it, but I’m doing some basic automatic/manual level control. I have a Teensy Audio Adapter Board, but I have not tried using it. It uses a lot of the same pins that the SmartMatrix shield uses. If you’re interested, here’s the code. It’s not pretty.
https://github.com/pixelmatix/aurora/blob/Aurora1.5/AudioLogic.h
All the speakers I use with my audio-reactive projects have their own amplifier and volume control, so I just adjust the volume on my source device (phone, computer, etc) to about half, then adjust the speakers to the desired volume. This, combined with my rudimentary level control, seems to have results that are ‘good enough’.
Thanks for your help. I will look later into the code. From the pfrc forum I got the answer, that the auto gain control is only a postprocessor. So I think I have to make something for my self maybe with the mixer and adjust the level of the audio library.
@Lars_Walpurgis were you ever able to incorporate software auto gain into your project?
No, not yet.