Mel filter spectrum generation (ported from 2.5).