Ejemplo n.º 1
0
 public void LogAverages(int amountOfbands)
 {
     this.amountOfBands = amountOfBands;
     averages           = new float[amountOfbands];
     whichAverage       = WhichAverage.logBands;
     //Debug.Break();
 }
Ejemplo n.º 2
0
    public void CustomAverages(FrequencyBand[] customFrequencyBands)
    {
        this.whichAverage         = WhichAverage.custom;
        this.customFrequencyBands = customFrequencyBands;

        averages = new float[customFrequencyBands.Length];
    }
Ejemplo n.º 3
0
    public void CustomAverages(FrequencyBand[] customFrequencyBands)
    {
        this.whichAverage = WhichAverage.custom;
        this.customFrequencyBands = customFrequencyBands;

        averages = new float[customFrequencyBands.Length];
    }
Ejemplo n.º 4
0
    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;
    }
Ejemplo n.º 5
0
    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;
    }
Ejemplo n.º 6
0
 public void LogAverages(int amountOfbands)
 {
     this.amountOfBands = amountOfBands;
     averages = new float[amountOfbands];
     whichAverage = WhichAverage.logBands;
     //Debug.Break();
 }