Question: ********************PYTHON PLEASE************************** Assignment 2: Amplitude Operations on Signals Start a new cell and write a script to meet the following specifications. This assignment will have
********************PYTHON PLEASE**************************

Assignment 2: Amplitude Operations on Signals Start a new cell and write a script to meet the following specifications. This assignment will have four parts, A-C, each of which should be indicated with comments. A. Create a discrete time signal s1 that is the same length as xl and has value 1 for t=[0,0.5] and value 0.2 for t>0.5. You can use the command below where len 1 is the length of xl and n0 is the index corresponding to t=0.5 s1= - np.concatenate((np.ones(no),0.2*np.ones(len(x1)-n0)) Multiply xl with s1 to create v1. Save this signal to a wav file. 2 B. Create a discrete-time decaying ramp signal r1, that is the same length as xl. The signal should have value 1 at time 0 and linearly decay to value 0. (Hint: use numpy.arange.) Multiply xl with rl to create v2. Save this signal to a wav file. C. Read in v1 and v2 using simpleaudio and play the two different modifications together with the original, to verify that the volume of the second whistle is reduced
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
