Question: . (15 Points) A noise gate is a DSP algorithm that turns off the output when the input level (or amplitude) is below a given
. (15 Points) A noise gate is a DSP algorithm that turns off the output when the input level (or amplitude) is below a given threshold. This algorithm can be used to eliminate the noise from a microphone when no one is talking into the microphone. Write a C language function called "noiseGate" whose output is zero if the absolute value of the input is less than the threshold, and the output equals the input when the absolute value of the input is greater than or equal to the threshold. Assume that the threshold and input and output signals are in Q15 format. Note that there is a function called "abs" that computes the absolute value and its prototype is in the header file stdlib.h. The noiseGate function does not return any value. The inputs to the function are as follows (in this order): threshold -threshold value (type Int16) input-pointer to a buffer for the input signal (type pointer to Intl) e output pointer to a buffer for the output signal (type pointer to Int16) bufferSize - size of the input and output buffers (type Int16) a. Write the contents of the header file noiseGate.h: b. re the tnts of the source file nose at
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
