I have the code
import sound def rem_vocals(snd): '''Return a copy of the original sound with vocals removed. The original sound is unmodified. The number of samples in the copied sound is the same as the original file.''' new_song=sound.copy(snd) for samp in new_song: left=(sound.get_left(samp)) right=(sound.get_right(samp)) result=(left-right)/2.0 Left=sound.set_left(samp, int (result)) Right=sound.set_right(samp, int (result)) Left1=(sound.get_left(samp)) Right1=(sound.get_right(samp)) return new_song if __name__ == '__main__': song=sound.load_sound('love.wav')
Question: How do I play the copy of my sound. sound.play(song) plays the original song, not the modified one. I then tried sound.play(new_song) which invokes an error. So what do I put inside the () to play the modified song? Thanks.