You will write three functions for beats.
The idea. Two close frequencies give beats each second, and you hear the pitch . An unknown fork is or . Wax lowers the unknown fork. If the beats then get slower, it was above the known fork. If they get faster, it was below.
Your tasks.
beat_frequency, return the number of beats each second, in Hz.pitch, return the frequency you hear, in Hz.unknown_after_wax, return the frequency of the unknown fork before the wax, from the beats before and after.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…