Lab 11

This lab is due on Friday, November 3.

  1. Define an rsound that consists of a sequence of four tones at 400, 450, 500, and 550 hz, each played for 1 second.

  2. Define the delay-by-n function that accepts a number of frames and a sound combines the song with a copy of itself delayed by the given number of frames.

  3. Find parameters for delay-by-n such that it filters out the second and fourth notes of the earlier sequence.

  4. Find parameters for delay-by-n such that it filters out just the second note of the earlier sequence.

  5. Can you find parameters that filter out all four notes, or explain why it’s impossible?