scrolling waveform viewer using canvas