FWIW, calculate 20*log(mag/maxmag), instead of 10*