Example #1
0
    public override Pair <int, int> get_band(int i)
    {
        double          logcenter = logstart_ + i * logstep_;
        double          loglow    = logcenter - centsperband_ / 2.0;
        double          loghigh   = loglow + centsperband_;
        Pair <int, int> @out      = new Pair <int, int>();

        @out.First  = (int)(GlobalMembersSpectrogram.cent2freq(loglow) * scale_);
        @out.Second = (int)(GlobalMembersSpectrogram.cent2freq(loghigh) * scale_);

        Console.Out.WriteLine("centerfreq: {0}", GlobalMembersSpectrogram.cent2freq(logcenter));
        Console.Out.WriteLine("lowfreq: {0}, highfreq: {1}", GlobalMembersSpectrogram.cent2freq(loglow), GlobalMembersSpectrogram.cent2freq(loghigh));
        return(@out);
    }
Example #2
0
    public override double get_center(int i)
    {
        double logcenter = logstart_ + i * logstep_;

        return(GlobalMembersSpectrogram.cent2freq(logcenter) * scale_);
    }