Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+9 votes
asked in CSC 305 Fall 2024 by (2.1k points)

3 Answers

+5 votes

When the filter slider moves further away from the sender's frequency, the Morse code sound should gradually fade out. This means the volume of the sound should decrease as the deviation between the sender's frequency and the filter slider value increases. You could probably implement this by using calculating a deviation
deviation=∣receiver’s filter frequency−sender’s frequency∣;

answered by (351 points)
+5 votes

The general logic here is that volume should decrease for every specific number of Hz away from receiver's frequency. I don't think the exact values were communicated so I think as long as you are doing this it's fine?

answered by (4.1k points)
+4 votes

We are using a loop that increases or decreases the pitch as the current frequency is getting higher or lower than the frequency on which the tone is played. We change the pitch by 20hz for every 1Khz difference between our frequency and the frequency of the sound played. We are not sure if this is realistic or not but that's how we implemented it for now.

answered by (1.8k points)
...