unstashing
reintroducing shitty analysis code for complete rewrite. blocksize comes from DAW settings, is power of 2