使用fftw對音頻進行fft及ifft

在項目中須要提取音頻中特定頻率,須要使用fft和ifft,fftw知足要求。須要注意的地方是在作ifft後要作歸一化處理,代碼以下:windows // fft.cpp : 定義控制檯應用程序的入口點。 // #include "stdafx.h" #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <math.
相關文章
相關標籤/搜索