lib/minim/src/ddf/minim/analysis/BeatDetect.java
/**
	 * In frequency energy mode this returns true if a beat corresponding to the
	 * frequency range of a snare drum has been detected. This has been tuned to
	 * work well with dance / techno music and may not perform well with other
	 * styles of music. In sound energy mode this always returns false.
	 * 
	 * @return boolean: true if a snare drum beat has been detected
	 * 
	 * @example Analysis/FrequencyEnergyBeatDetection
	 * 
	 * @related BeatDetect
	 */
In frequency energy mode this returns true if a beat corresponding to the
frequency range of a snare drum has been detected. This has been tuned to
work well with dance / techno music and may not perform well with other
styles of music. In sound energy mode this always returns false.

@return boolean: true if a snare drum beat has been detected




In frequency energy mode this returns true if a beat corresponding to the frequency range of a snare drum has been detected . This has been tuned to work well with dance / techno music and may not perform well with other styles of music . In sound energy mode this always returns false . @return boolean : true if a snare drum beat has been detected
public boolean isSnare()
	{
		if (algorithm == SOUND_ENERGY)
		{
			return false;
		}
		int lower = 8 >= spect.avgSize() ? spect.avgSize() : 8;
		int upper = spect.avgSize() - 1;
		int thresh = (upper - lower) / 3 + 1;
		return isRange(lower, upper, thresh);
	}
public boolean isSnare ( ) { if ( algorithm == SOUND_ENERGY ) { return false ; } int lower = 8 >= spect . avgSize ( ) ? spect . avgSize ( ) : 8 ; int upper = spect . avgSize ( ) - 1 ; int thresh = ( upper - lower ) / 3 + 1 ; return isRange ( lower , upper , thresh ) ; }
In frequency energy mode this returns true if a beat corresponding to the
 frequency range of a snare drum has been detected.
In frequency energy mode this returns true if a beat corresponding to the frequency range of a snare drum has been detected .