This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static java.lang.Math.atan; | |
import static java.lang.Math.cos; | |
import static java.lang.Math.sin; | |
public class FFT4g { | |
private int[] ip; | |
private double[] w; | |
private int n; | |
FFT4g(int n) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends Activity { | |
// サンプリングレート | |
int SAMPLING_RATE = 44100; | |
// FFTのポイント数 | |
int FFT_SIZE = 4096; | |
// デシベルベースラインの設定 | |
double dB_baseline = Math.pow(2, 15) * FFT_SIZE * Math.sqrt(2); |