Try rewriting Program 100 so that you have a linear increase in volume to halfway through the

Question:

Try rewriting Program 100 so that you have a linear increase in volume to halfway through the sound, then linearly decrease the volume down to zero in the second half.


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)

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: