How to split a signal in to chunks with the help of Blackman window using Numpy python

Advertisements For a given audio signal I want it to be spitted in to 50ms chunks to perform Fourier Transform. The problem is when I use the usual split method in Numpy it adds some high frequency components due to sudden split. So to solve this I heard we have to use a proper window.… Read More How to split a signal in to chunks with the help of Blackman window using Numpy python

Is there a way to generate multiple sine waves without using loop in Python?

Advertisements I am trying to generate multiple sine waves, but I want to avoid using loops. Is there a way to do it as in MATLAB? Here is what I tried: fs =250 n = np.linspace(0,2,int(fs*2),endpoint=False) frequencies = [1,3,4,12,70] sines = np.sin(2*np.pi*frequencies*n) When I tried this code I got the following error: ValueError: operands could… Read More Is there a way to generate multiple sine waves without using loop in Python?