Rewrite Program 100 so that two input values are provided to the function: the sound and a percentage of how far into the sound to go before changing from increasing to decreasing the volume.

What will be an ideal response?

```
def increaseAndDecrease2(sound, percentage):
for sampleIndex in range(0,getLength(sound)*percentage):
value = getSampleValueAt(sound ,sampleIndex)
setSampleValueAt(sound ,sampleIndex ,value * 2)
for sampleIndex in range(getLength(sound)*percentage,getLength(sound)):
value = getSampleValueAt(sound ,sampleIndex)
setSampleValueAt(sound ,sampleIndex ,value * 0.2)
```

Computer Science & Information Technology

You might also like to view...

The ________ is the center frame of the window and is where most of the work on the slides is viewed

A) pane B) tab C) panel D) workspace

Computer Science & Information Technology

How do you convert a layer to a Smart Object?

What will be an ideal response?

Computer Science & Information Technology