render amplitudes like an oscilloscope in the browser given arrays of data