Coding, Signal Processing, Machine Learning, AI, Artificial Intelligence.
perform a spectrogram on the music: def createA(N,input_length,hop): FH=np.dot(createF(N),hanWindow(N)) A=np.zeros(((2*input_length-1)*N,input_length*N),dtype=complex) for i in range(2*input_length-1): A[i*N:(i+1)*N,i*hop:i*hop+N]=FH plot(A) def plot(matrix): matrix_abs=np.abs(matrix) plt.figure()