Apr-22-2019, 06:05 PM
In this assignment you will generate code to read a (short) .wav audio file into python, copy and amplitude scale it, before writing it out to a new .wave file.
1. Read a few seconds of .wav file of your choosing into a Numpy array.
2. Duplicate the first or last half of the array and concatenate it onto the end of the original array at half the amplitude.
3. Amplitude scale the whole array to √2-1
4. Plot the resulting audio array.
5. Write the array to a .wav file
Submit .py code and original .wave file
Bonus assignment grade bump:
6. Repeat 2 and 3 a user-determined number of times to produce a
decaying echo effect.
Hello!
first time posting here. I am in an intro to coding, and I was told that this would be the best way of reaching help outside of class.
We usually create the wav. file, but this time we are using an existing wav file and trying to put into an array. I am using a wav. file called "glassbreak.wav" as an example. But I do not understand how to work it through this assignment. Where do I start?
Thanks!
1. Read a few seconds of .wav file of your choosing into a Numpy array.
2. Duplicate the first or last half of the array and concatenate it onto the end of the original array at half the amplitude.
3. Amplitude scale the whole array to √2-1
4. Plot the resulting audio array.
5. Write the array to a .wav file
Submit .py code and original .wave file
Bonus assignment grade bump:
6. Repeat 2 and 3 a user-determined number of times to produce a
decaying echo effect.
Hello!
first time posting here. I am in an intro to coding, and I was told that this would be the best way of reaching help outside of class.
We usually create the wav. file, but this time we are using an existing wav file and trying to put into an array. I am using a wav. file called "glassbreak.wav" as an example. But I do not understand how to work it through this assignment. Where do I start?
Thanks!