Skip to contents

Apply Hann band-stop filter to spectrum (in-place)

Usage

spectrum_stop_hann_band(spectrum, fmin, fmax, smooth = 100)

Arguments

spectrum

Spectrum object (will be modified)

fmin

Low frequency cutoff (Hz)

fmax

High frequency cutoff (Hz)

smooth

Smoothing bandwidth (Hz)

Value

NULL (modifies spectrum in place)

Examples

sound <- Sound$create_tone(frequency = 150, duration = 0.5)
spectrum <- sound$to_spectrum()
spectrum_stop_hann_band(spectrum, fmin = 50, fmax = 100, smooth = 50)
# spectrum is now modified