Altera_Forum
Honored Contributor
16 years agoInput sound and determine the amplitude/volume
Okay, so I'm using the DE2 board and I want to be able to do 2 things.
1)to either input music from a file or the input jack (blue input jack) 2)and then process it so I can determine the magnitude of the music Basically what I want is to flash an LED when the amplitude of the music is greater than x. So basically I can then make one of those sound bars or volume bars where more LEDs light up when the sound is loud, but only a few when the sound is soft. I'm a beginner at this stuff and only know like basic coding statements, and making simple code like counters, adders, and simple state machines so the more detailed you can be the better. I tried looking at some of the DE2 demos and looking online, but I couldn't figure out how to do the sound input or finding it's amplitude. Thanks.