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

Comment: "Frequency" data is actually a stride value #20

Open
dcuny opened this issue Jan 22, 2021 · 0 comments
Open

Comment: "Frequency" data is actually a stride value #20

dcuny opened this issue Jan 22, 2021 · 0 comments

Comments

@dcuny
Copy link

dcuny commented Jan 22, 2021

The table frequencyData values are referred to in the comments frequency values, which isn't strictly true.

They're actually stride values. Per your comments in the rendering sections, the original version of SAM used a pre-calculated sine table instead of calling the sin() function.

By using a stride value, SAM is able to find the next sine value for each formant simply by adding the stride value to the table index (and, of course, wrapping at the end of the table).

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