allowing changing of resolution of the waveform (how many samples per pixel)