Question: Rewrite Program 100 so that you normalize the first second of a sound, then slowly decrease the sound in steps of 1/5 for each following
Rewrite Program 100 so that you normalize the first second of a sound, then slowly decrease the sound in steps of 1/5 for each following second. (How many samples are in a second? getSamplingRate is the number of samples per second for the given sound.)
Data from Program 100

def increaseAndDecrease (sound) : for sampleIndex in range (0,getLength (sound)/2): value = getSampleValueAt (sound, sampleIndex) setSampleValueAt(sound, sampleIndex,value * 2) for sampleIndex in range (getLength(sound)/2, getLength(sound)): value = getSampleValueAt (sound, sampleIndex) setSampleValueAt (sound, sampleIndex, value * 0.2)
Step by Step Solution
3.33 Rating (159 Votes )
There are 3 Steps involved in it
def increase AndDecrease3sound sampleRate getSamplingRa... View full answer
Get step-by-step solutions from verified subject matter experts
