The objective of this mini-lab is to practice working with sound using the jes4py library.
cropSound
which crops a section of a sound and returns
just the cropped piece. Your function should take as parameters the sound, the
index to start cropping, and the number of samples to include in the
cropped sound.
Design Questions: How big do we want the resulting sound to be? Does it depend on how long the original sound is? How do we know how long the original sound is?
cropSoundByTime
that takes three parameters:
the sound, the number of seconds into the sound to start cropping, and
the number of seconds to include in the resulting sound. You should
be able to accomplish this by making a call to
the cropSound
function. The resulting function should
only be 2-3 lines long.