sfenv.c: appies an amplitude envelope to a mono soundfile