How do i change the gain of an audio using an equalizer i made?
조회 수: 2 (최근 30일)
이전 댓글 표시
Im trying to change the equalizer gain of some audio i have but i dont really know how to do that/what that means. This is a picture of my assignment:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/190849/image.png)
ive created a GUI with sliders that i have set up with values of 0 and max and min values of +20 and -20, respectively:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/190850/image.png)
this is the code i have so far and it works perfectly. I am able to set a lowpass filter that i will connect with the first slider wich will control it. I tried multiplying the filter by .01 and it made it softer, i multiply by 20 and it just makes the audio very loud and 'static-y' and distored. Am i doing something wrong? Thanks for all the help in advance. Pic of my code:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/190851/image.png)
댓글 수: 0
답변 (1개)
Ajey Pandey
2018년 6월 7일
You may be clipping your signal at your highest gain. Is your gain slider set to dB or to raw multiples? (Is your gain function amplifying your signal by 20db or by a factor of 20?)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulation, Tuning, and Visualization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!