lib/minim/src/ddf/minim/analysis/BeatDetect.java
/**
	 * In frequency energy mode this returns true if at least
	 * <code>threshold</code> bands of the bands included in the range
	 * <code>[low, high]</code> have registered a beat. In sound energy mode
	 * this always returns false.
	 * 
	 * @param low
	 *           int: the index of the lower band
	 * @param high
	 *           int: the index of the higher band
	 * @param threshold
	 *           int: the smallest number of bands in the range
	 *           <code>[low, high]</code> that need to have registered a beat
	 *           for this to return true
	 * @return boolean: true if at least <code>threshold</code> bands of the bands
	 *         included in the range <code>[low, high]</code> have registered a
	 *         beat
	 *         
	 * @related BeatDetect
	 */
In frequency energy mode this returns true if at least
threshold bands of the bands included in the range
[low, high] have registered a beat. In sound energy mode
this always returns false.

@param low
int: the index of the lower band
@param high
int: the index of the higher band
@param threshold
int: the smallest number of bands in the range
[low, high] that need to have registered a beat
for this to return true
@return boolean: true if at least threshold bands of the bands
included in the range [low, high] have registered a
beat


In frequency energy mode this returns true if at least threshold bands of the bands included in the range [ low high ] have registered a beat . In sound energy mode this always returns false . @param low int : the index of the lower band @param high int : the index of the higher band @param threshold int : the smallest number of bands in the range [ low high ] that need to have registered a beat for this to return true @return boolean : true if at least threshold bands of the bands included in the range [ low high ] have registered a beat
public boolean isRange(int low, int high, int threshold)
	{
		if (algorithm == SOUND_ENERGY)
		{
			return false;
		}
		int num = 0;
		for (int i = low; i < high + 1; i++)
		{
			if (isOnset(i))
			{
				num++;
			}
		}
		return num >= threshold;
	}
public boolean isRange ( int low , int high , int threshold ) { if ( algorithm == SOUND_ENERGY ) { return false ; } int num = 0 ; for ( int i = low ; i < high + 1 ; i ++ ) { if ( isOnset ( i ) ) { num ++ ; } } return num >= threshold ; }
In frequency energy mode this returns true if at least
 <code>threshold</code> bands of the bands included in the range
 <code>[low, high]</code> have registered a beat.
In frequency energy mode this returns true if at least <code > threshold< / code > bands of the bands included in the range <code > [ low high ] < / code > have registered a beat .