public static float magnitudeToDb(float squareMag) {
		if (squareMag == 0)
			return 0;
		return (float) (20 * Math.log10(squareMag));
	}
Convert square of magnitude to decibels
@param squareMag square of magnitude
@return decibels
library/src/main/java/com/cleveroad/audiovisualization/Utils.java