lib/minim/src/ddf/minim/analysis/BeatDetect.java
/**
	 * Analyze the samples in <code>buffer</code>. This is a cumulative
	 * process, so you must call this function every frame.
	 * 
	 * @param buffer
	 *           float[]: the buffer to analyze
	 *           
	 * @related BeatDetect
	 */
Analyze the samples in buffer. This is a cumulative
process, so you must call this function every frame.

@param buffer
float[]: the buffer to analyze


Analyze the samples in buffer . This is a cumulative process so you must call this function every frame . @param buffer float [] : the buffer to analyze
public void detect(float[] buffer)
	{
		switch (algorithm)
		{
		case SOUND_ENERGY:
			sEnergy(buffer);
			break;
		case FREQ_ENERGY:
			fEnergy(buffer);
			break;
		}
	}
public void detect ( float [ ] buffer ) { switch ( algorithm ) { case SOUND_ENERGY : sEnergy ( buffer ) ; break ; case FREQ_ENERGY : fEnergy ( buffer ) ; break ; } }
Analyze the samples in <code>buffer</code>.
Analyze the samples in <code > buffer< / code > .