Sometimes people think that the way to increase volume is to add a value (like 1000) to every sample. Write the function fauxIncreaseVolume(sound, increment) to add an input value increment to every sample in an input sound. Try your function with an increment of 1000. Can you hear a difference in the sound? Why or why not?

What will be an ideal response?

```
def fauxIncreaseVolume(sound, increment):
for sample in getSamples(sound):
value = getSampleValue(sample)
setSampleValue(sample ,value+increment)
play(sound)
```

You cannot hear a real difference in the sound, as we perceive volume as the difference between values, not just the numeric value of the values.

Computer Science & Information Technology

You might also like to view...

Which of the following is not true about SkyDrive?

A) Files can be added to SkyDrive by creating a new document through one of the Office Web Apps. B) When a user sends a friend a file using an instant messaging program or sends a file to another user on a file sharing network, they are performing an upload. C) SkyDrive users get a 50-GB file storage quota by default, which is a massive amount of storage, especially if you are just storing documents and spreadsheets. D) If a user were to store documents of around 25 KB each on SkyDrive, that user would be able to keep 1 million documents on his SkyDrive.

Computer Science & Information Technology

In technical documents, it is desirable to have a fair amount of white space

Indicate whether the statement is true or false

Computer Science & Information Technology