Now that we are writing functions, make sure your work today (and all future assignments) follows our class Python style guidelines and you include function comments. Be careful of your indentation!
For this assignment you will be reading data from a text file saved_audio.txt
to create a sound file. The first line of the text file has the number of samples that make up the audio file. Every single line after is the value of a sample that needs to be added to the sound file. Use the sample code from lecture to help you accomplish this task.
create_sound_from_file
that takes one parameter called filename
. The parameter will hold the name of the text file that must be read to create the sound file.For this lab you will upload your lab14.py code file.