

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Topics To manipulate parts of a sound differently To create a sound clip To return a value from a method To use ranges in iteration
i) Type in the code for a main method that asks the user for a sound filename and sends the Sound to the increaseAndDecrease method and then plays (and/or explores) the revised sound. ii) Type in the following code in the Program window below the main method and before the last }: /* method to increase the volume of the first half of a sound and decrease the second half
iii) Test your program with different .wav files. Use sourceSound.play(); and sourceSound.explore(); to confirm that the volume is changed.
iv) Type in the following code in the Program window below the main method and before the last }: /* method to create a new sound by copying part of the current sound to a new sound