< Back

Assignment: Extra Credit

Better Levels

Write a function true_levels(sound_1, sound_2), which takes two sound objects as parameters. Your function should produce a "leveled" version of sound_1, using the maximum value from sound_2.

In this case, you want to handle both positive and negative values. If the absolute value of the sample is greater than the maximum value from sound_2, then cap it to that maximum. It should have the same sign as the original sample.

Submission

Your work will be graded according to the course syllabus. Submit your work on the course Inquire site before your final exam on Thursday December 17th.