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

tone: Round lengths to integer number of samples #60

Merged
merged 2 commits into from Sep 21, 2020

Conversation

encukou
Copy link
Contributor

@encukou encukou commented Sep 21, 2020

I was hit by #57, and I think this is the right way to solve it.

@lordmauve
Copy link
Owner

Two of those cases use floor division. I guess they should be changed to true division if they're being rounded afterwards?

@encukou
Copy link
Contributor Author

encukou commented Sep 21, 2020

Oops, I missed those extra slashes!

Since hz might not be an integer, round works better than floor division.

@lordmauve lordmauve merged commit 51a1a9a into lordmauve:master Sep 21, 2020
@lordmauve
Copy link
Owner

Thank you!

@encukou encukou deleted the fix-tones branch September 21, 2020 11:49
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

Successfully merging this pull request may close these issues.

None yet

2 participants