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

Target number of points when producing JSON? #152

Closed
tremby opened this issue Oct 24, 2021 · 1 comment
Closed

Target number of points when producing JSON? #152

tremby opened this issue Oct 24, 2021 · 1 comment

Comments

@tremby
Copy link

tremby commented Oct 24, 2021

Is there a way to ask audiowaveform to produce roughly n points, when producing JSON? It doesn't need to be exact.

I know I can do this with a simple calculation ahead of time involving the duration, and passing a suitable value in to --pixels-per-second, but I'm wondering if there's either something obvious I'm missing or if it's a feature which could be added. It's a shame to need to use a separate tool to find the duration of the audio, when audiowaveform is calculating that itself anyway.

@chrisn
Copy link
Member

chrisn commented Oct 25, 2021

Thanks for raising this. At it's essentially a duplicate of #114, I'll close this and follow up in that issue.

@chrisn chrisn closed this as completed Oct 25, 2021
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