public static float between(float val, float min, float max) {
		return Math.max(Math.min(val, max), min);
	}
Check if value within allowed range.
@param val some value
@param min minimum value
@param max maximum value
library/src/main/java/com/cleveroad/audiovisualization/Utils.java