Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minimum width for a visualized overview? #519

Open
EZWrighter opened this issue Dec 15, 2023 · 3 comments
Open

minimum width for a visualized overview? #519

EZWrighter opened this issue Dec 15, 2023 · 3 comments

Comments

@EZWrighter
Copy link

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.

image

@chrisn
Copy link
Member

chrisn commented Dec 16, 2023

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.

@rafeautie
Copy link

rafeautie commented Mar 28, 2024

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?

@chrisn
Copy link
Member

chrisn commented Aug 16, 2024

It would have a lower resolution, I guess the more stretching is applied the worse it will look. It's worth trying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants