import wave, struct class wavsound: """wavsound object collects data from a wav file and stores it as a list of integers """ def __init__(self, wav_file): self.data = []# set it as a local variable if wav_file == '': return #print(wav_file) waveFile = wave.open(wav_file, 'r') length = waveFile.getnframes() for i in range(0,length): waveData = waveFile.readframes(1) try: data = struct.unpack("