basic windowing function and fix of window position in Wave::get_bands