compute power spectrum for small selected window. It becomes slow when selecting longer windows, but it feels acceptable right now