public void LogAverages(int minBandwidth, int bandsPerOctave) { float nyq = (float)sampleRate / 2f; octaves = 1; while ((nyq /= 2) > minBandwidth) { octaves++; } MinimSharp.Debug("Number of octaves = " + octaves); avgPerOctave = bandsPerOctave; averages = new float[octaves * bandsPerOctave]; whichAverage = LOGAVG; }