some progress on wavelet decomposition. todo: use Hamming window in embed