-
Notifications
You must be signed in to change notification settings - Fork 190
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
Should all tables be made "symetrical"? #280
Comments
Not a terrible idea. The primary advantage would be if you need to invert the table. I have written about 50 sketches using Mozzi and I can't think of any that would be significantly impacted by this change. |
Sounds like a good thing to try... |
Hi again,
Edit:
|
I am confused by this comment: as far as I know, oscil accepts int8_t, not uint8_t in its constructor. See https://sensorium.github.io/Mozzi/doc/html/class_oscil.html |
That's a typo, this should read
Edited in the OP. Indeed, that does not concern a lot of these… |
@eclab Indeed, I do not know my mind shifted to: "These tables should be |
I haven't pulled yet but it appears to be correct changes. I'm not sure if doing -127 rather than -128 will matter given that they're 8-bit, but I suppose it's not unreasonable. |
I have be wondering about that for some time and #279 re-triggered this question in my mind, and this issue is to have others' opinions
Most of legacy tables of Mozzi, which are of
int8_t
have a maximum value of 127 and a minimal value of -128, taking the full range of the type.Wouldn't it preferable to have them ranging from -127 to 127?
Pros:
int8_t
, leading to an overflow.Cons:
Note that all the band_limited tables are actually already symmetric.
Any thoughts?
The text was updated successfully, but these errors were encountered: