Skip to content

Should all tables be made "symetrical"? #280

@tomcombriat

Description

@tomcombriat

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:

  • they would be naturally centered around 0, and not around -0.5
  • negating them (ie, inverting the phase) would be easier (as of now, negating of these poses problems as -(-128) cannot be represented in int8_t, leading to an overflow.

Cons:

  • slightly less range
  • might have a very slight effect on existing sketch (this is probably very mild though).

Note that all the band_limited tables are actually already symmetric.

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions