peaks.js
peaks.js copied to clipboard
minimum width for a visualized overview?
When my data length is under 3.5 seconds the visualization behaves incorrectly. Showing the 3.5 second timeline as a minimum but only showing the waveform as a portion of that. Not displaying it as an overview at 100% of the canvas.
This is because the waveform data doesn't have enough pixels to fit the canvas width. The easiest solution is to create the waveform with a lower number of samples per pixel. Or we could change Peaks.js to stretch the waveform.
Or we could change Peaks.js to stretch the waveform.
This seems like a more robust way of handling it, although, would that make the visual wonky?