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

how to implements a proper WaveformZoom? #34

Open
liujian-930212 opened this issue Apr 29, 2024 · 2 comments
Open

how to implements a proper WaveformZoom? #34

liujian-930212 opened this issue Apr 29, 2024 · 2 comments

Comments

@liujian-930212
Copy link

Hi there,

I was wondering how can I evaluate a proper zoom value? Sometimes, I dont need that accurate wave such as pixelsPerSecond(100). Even 2 to 3 pixelsPerSecond is enough for me. But it extracts a null waveform. Well, if the audio is long enough, it works.

Thanks

@ryanheise
Copy link
Owner

If you imagine the lowest number of oscillations per second that a human can actually hear (20 Hz), you would need more than 20 pixels per second to actually see the "wave", so 2-3 pixels per second is a bit outside the expected range of normal usage. I suppose you don't care about the wave, you only care about the amplitude? In which case are you just trying to visualize the volume of the audio?

What is the lowest pixels per second that works?

@liujian-930212
Copy link
Author

@ryanheise Thanks for the quick respond.

I was trying to figure out the lowest pixels per second because I noticed that a low pps may cause a null waveform, so I am not sure the pps I'm using is always big enough for a certain audio file.

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

2 participants