public override Pair <int, int> GetBand(int i) { double logcenter = logstart_ + i * logstep_; double loglow = logcenter - centsperband_ / 2.0; double loghigh = loglow + centsperband_; var @out = new Pair <int, int>(); @out.First = (int)(SpectrogramUtils.Cent2Freq(loglow) * scale_); @out.Second = (int)(SpectrogramUtils.Cent2Freq(loghigh) * scale_); //Console.Out.WriteLine("Center freq: {0}", SpectrogramUtils.Cent2Freq(logcenter)); //Console.Out.WriteLine("Low freq: {0}, Highfreq: {1}", SpectrogramUtils.Cent2Freq(loglow), SpectrogramUtils.Cent2Freq(loghigh)); return(@out); }
public override double GetCenter(int i) { double logcenter = logstart_ + i * logstep_; return(SpectrogramUtils.Cent2Freq(logcenter) * scale_); }