public void LogAverages(int amountOfbands) { this.amountOfBands = amountOfBands; averages = new float[amountOfbands]; whichAverage = WhichAverage.logBands; //Debug.Break(); }
public void CustomAverages(FrequencyBand[] customFrequencyBands) { this.whichAverage = WhichAverage.custom; this.customFrequencyBands = customFrequencyBands; averages = new float[customFrequencyBands.Length]; }
public void CustomAverages(FrequencyBand[] customFrequencyBands) { this.whichAverage = WhichAverage.custom; this.customFrequencyBands = customFrequencyBands; averages = new float[customFrequencyBands.Length]; }
public void LogAverages(int minBandwidth, int bandsPerOctave) { float nyq = (float)sampleRate / 2f; octaves = 1; while ((nyq /= 2) > minBandwidth) { octaves++; } avgPerOctave = bandsPerOctave; averages = new float[octaves * bandsPerOctave]; whichAverage = WhichAverage.Log; }
public void LogAverages(int minBandwidth, int bandsPerOctave) { float nyq = (float) sampleRate / 2f; octaves = 1; while ((nyq /= 2) > minBandwidth) { octaves++; } avgPerOctave = bandsPerOctave; averages = new float[octaves * bandsPerOctave]; whichAverage = WhichAverage.Log; }
public void LogAverages(int amountOfbands) { this.amountOfBands = amountOfBands; averages = new float[amountOfbands]; whichAverage = WhichAverage.logBands; //Debug.Break(); }