Converts hertz freq to mel
freq
double hertz_to_mel(double freq){ return 1127 * log(1 + freq / 700); }