public static double IndexToFreq(int i, int frame_size, int sample_rate) { return (double)i * sample_rate / frame_size; }