added fmin/max to melspec, fixed logamplitude