lib/minim/src/ddf/minim/analysis/FourierTransform.java
/**
   * Sets the number of averages used when computing the spectrum based on the
   * minimum bandwidth for an octave and the number of bands per octave. For
   * example, with audio that has a sample rate of 44100 Hz,
   * <code>logAverages(11, 1)</code> will result in 12 averages, each
   * corresponding to an octave, the first spanning 0 to 11 Hz. To ensure that
   * each octave band is a full octave, the number of octaves is computed by
   * dividing the Nyquist frequency by two, and then the result of that by two,
   * and so on. This means that the actual bandwidth of the lowest octave may
   * not be exactly the value specified.
   * 
   * @param minBandwidth
   *          int: the minimum bandwidth used for an octave, in Hertz.
   * @param bandsPerOctave
   *          int: how many bands to split each octave into
   *
   * @example Analysis/SoundSpectrum
   * 
   * @related FFT
   */
Sets the number of averages used when computing the spectrum based on the
minimum bandwidth for an octave and the number of bands per octave. For
example, with audio that has a sample rate of 44100 Hz,
logAverages(11, 1) will result in 12 averages, each
corresponding to an octave, the first spanning 0 to 11 Hz. To ensure that
each octave band is a full octave, the number of octaves is computed by
dividing the Nyquist frequency by two, and then the result of that by two,
and so on. This means that the actual bandwidth of the lowest octave may
not be exactly the value specified.

@param minBandwidth
int: the minimum bandwidth used for an octave, in Hertz.
@param bandsPerOctave
int: how many bands to split each octave into



@related FFT
Sets the number of averages used when computing the spectrum based on the minimum bandwidth for an octave and the number of bands per octave . For example with audio that has a sample rate of 44100 Hz logAverages ( 11 1 ) will result in 12 averages each corresponding to an octave the first spanning 0 to 11 Hz . To ensure that each octave band is a full octave the number of octaves is computed by dividing the Nyquist frequency by two and then the result of that by two and so on . This means that the actual bandwidth of the lowest octave may not be exactly the value specified . @param minBandwidth int : the minimum bandwidth used for an octave in Hertz . @param bandsPerOctave int : how many bands to split each octave into @related FFT
public void logAverages(int minBandwidth, int bandsPerOctave)
  {
    float nyq = (float) sampleRate / 2f;
    octaves = 1;
    while ((nyq /= 2) > minBandwidth)
    {
      octaves++;
    }
    Minim.debug("Number of octaves = " + octaves);
    avgPerOctave = bandsPerOctave;
    averages = new float[octaves * bandsPerOctave];
    whichAverage = LOGAVG;
  }
public void logAverages ( int minBandwidth , int bandsPerOctave ) { float nyq = ( float ) sampleRate / 2f ; octaves = 1 ; while ( ( nyq /= 2 ) > minBandwidth ) { octaves ++ ; } Minim . debug ( "Number of octaves = " + octaves ) ; avgPerOctave = bandsPerOctave ; averages = new float [ octaves * bandsPerOctave ] ; whichAverage = LOGAVG ; }
Sets the number of averages used when computing the spectrum based on the
 minimum bandwidth for an octave and the number of bands per octave.
Sets the number of averages used when computing the spectrum based on the minimum bandwidth for an octave and the number of bands per octave .