Think about what a low-pass filter does to frequencies above its cutoff.
The low-pass filter removes frequencies above 1 kHz. Since the input is 2 kHz, the output is heavily attenuated, resulting in near-zero output.
Divide the original number of samples by the downsampling factor.
Downsampling by 4 reduces the number of samples to 441,000 / 4 = 110,250.
Recall that horizontal bands show frequency presence over time.
The 500 Hz tone appears as a horizontal band from 0 to 2 seconds. After 2 seconds, the 1500 Hz tone appears as a horizontal band.
Gain must be a number, not text.
The gain parameter expects a numeric value. Using 'abc' causes a type error during simulation.
Consider methods designed specifically for noise reduction.
Spectral subtraction is a common technique to reduce white noise while preserving speech quality. Filters alone may remove speech components or be ineffective.