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∣;