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 library generates inaccurate beat frequencies #3

Open
palazzol opened this issue Aug 10, 2020 · 0 comments
Open

Tone library generates inaccurate beat frequencies #3

palazzol opened this issue Aug 10, 2020 · 0 comments

Comments

@palazzol
Copy link

The Tone library uses ints (in Hz) to represent frequencies to generate. The original Altman program uses fractional beat frequencies like 2.2Hz. Even though the table contains accurate floating point values for the beat frequencies, the best the current Tone library can do is round to the nearest whole number beat frequency, in Hz.

I implemented a fork which uses raw timers to get around this issue:
https://github.com/palazzol/Arduino-Brain-Machine

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

1 participant