Welcome to CS1315. Click on the python to add comments.
This page removed for FERPA compliance
Sound Coding
Notes:
You will not need to know how to code functions for changing frequencies but must be able to recognize it if code is given
1. Write a function called quiet that takes in a sound and silences it.
2. Write a function called increaseQuarter which takes in a sound and doubles the volume of the last quarter.
3. Write a function called copyHalfOver which copies the second half of the sound onto the first half of the sound.
4. Write a function called upDown that has one parameter - a sound. The function should increase the volume of the first half of the sound and decrease the volume of the second half of the sound. Note: It doesn't matter how much the sound is increased or decreased.
5. Write a function called addNotes which takes in 2 sounds, adds them together and reverses the resulting sound. You must adjust for clipping while adding the sounds.
6. Write a function called checkREMOVEDngth which takes in a sound and prints out its length in seconds.
7. Write a function called copyOver that takes a sourceSound and a targetSound as input, then copy the sourceSound starting at 1 second and ending at 1.5 second into the targetSound starting 2 seconds into the targetSound.
Note: This is a hard one. You will not be expected to know this for the exam but some of the concepts are useful.