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

SmoothWavetable #52

Open
giuliomoro opened this issue Aug 22, 2016 · 3 comments
Open

SmoothWavetable #52

giuliomoro opened this issue Aug 22, 2016 · 3 comments
Assignees

Comments

@giuliomoro
Copy link
Collaborator

giuliomoro commented Aug 22, 2016

SmoothWavetable
that makes all necessary assumptions for linear interpolation (and test they are true in the create() function):

  • table size is 2^n + 1
  • ASSERT(table[2^n] == table[0])
@giuliomoro
Copy link
Collaborator Author

7d8bade in the wavetable branch.

This provides linear interpolation which is a huge improvement over Wavetable, which truncates the index (does not even do rounding)

@giuliomoro
Copy link
Collaborator Author

Added SmoothWavetable4 9e2d503 which uses 4-point polynomial interpolation (same as PureData tabread4~)

@giuliomoro
Copy link
Collaborator Author

Also note that the current table size is limited to 2^15 by the fact that the accumulator is a 32bit signed, and 16bits are reserved for the fractional part. This is a const in the class and can be changed, potentially according to the actual table length.

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