rewrote signal viz downsampler