How to find the frequency of a morse code (sinusoidal signal) mixed with an audio music signal from a .wav file?
10 views (last 30 days)
I have a .wav file which is a mono (1-channel) 11,025 samples per sec, 16-bits per sample which contains an audio file mixed with a morse code signal (sinusoidal wave) with unknown frequency.
I need help with writing a matlab code to determine the frequency of the sinusoidal signal and separate the morse code signal and the music signal using window filtering (fir1) and save them in two separate .wav files.
% Read project wave file
% take L-point FFT, compute magnitude, compute 20log10 of mag
% plot the 20log10 magnitude result
% FIR Filter using window method
Star Strider on 27 Nov 2022
Start with the pspectrum function to analyse the signal, using the 'spectrogram' option, or just use fft, although if the Morse signal and the music have common frequencies, fft may not be the most robust approach.
After that, a simple FIR filter is straightforward with fir1, although I usually start with kaiserord.